99
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications
Yet another drawback with this direct client-to-service approach is that it makes it difficult to refactor
the contracts for those microservices. Over time developers might want to change how the system is
partitioned into services. For example, they might merge two services or split a service into two or
more services. However, if clients communicate directly with the services, performing this kind of
refactoring can break compatibility with client apps.
As mentioned in the architecture section, when designing and building a complex application based
on microservices, you might consider the use of multiple fine-grained API Gateways instead of the
simpler direct client-to-microservice communication approach.
Dostları ilə paylaş: