42
CHAPTER 3 | Architecting container and microservice-based applications
actions impact maintenance because they cause breaking changes to the client apps due to the
direct reference to the internal microservices from the client apps.
Client apps need to be
updated frequently, making the solution harder to evolve.
•
Too many round trips
: A single page/screen in the client app might require several calls to
multiple services. That approach can result in multiple network round trips
between the client
and the server, adding significant latency. Aggregation handled in an intermediate level could
improve the performance and user experience for the client app.
•
Security issues
:
Without a gateway, all
the microservices must be exposed to the “external
world”, making the attack surface larger than if you hide internal microservices that aren’t
directly used by the client apps. The smaller the attack surface is, the more secure your
application can be.
•
Dostları ilə paylaş: