44
CHAPTER 3 | Architecting container and microservice-based applications
Figure 4-13.1. Using multiple custom API Gateways
Figure 4-13.1 shows API Gateways that are segregated by client type; one for mobile clients and one
for web clients. A traditional web app connects to an MVC microservice that uses the web API
Gateway. The example depicts a simplified architecture with multiple fine-grained API Gateways. In
this case, the boundaries identified for each API Gateway are based purely on the “Backend for
Frontend” (
BFF
) pattern, hence based just on the API needed per client app. But in larger applications
you should also go further and create other API Gateways based on business boundaries as a second
design pivot.
Dostları ilə paylaş: