How does data denormalization work with the Microservice Pattern?

前端 未结 4 463
后悔当初
后悔当初 2021-01-29 19:16

I just read an article on Microservices and PaaS Architecture. In that article, about a third of the way down, the author states (under Denormalize like Crazy):

4条回答
  •  庸人自扰
    2021-01-29 19:22

    I would see each microservice as an Object, and as like any ORM , you use those objects to pull the data and then create joins within your code and query collections, Microservices should be handled in a similar manner. The difference only here will be each Microservice shall represent one Object at a time than a complete Object Tree. An API layer should consume these services and model the data in a way it has to be presented or stored.

    Making several calls back to services for each transaction will not have an impact as each service runs in a separate container and all these calles can be executed parallely.

    @ccit-spence, I liked the approach of intersection services, but how it can be designed and consumed by other services? I believe it will create a kind of dependency for other services.

    Any comments please?

提交回复
热议问题