API gateway
Another useful design pattern is API gateway or API aggregation. In a typical cloud-based enterprise application, there are various sub-services, such as accounting, authentication, user profile, and messaging. In fact, the trend of backend design is that the runtime of each service is getting more lightweight. People use the term microservice to refer to such a lightweight runtime. Each microservice performs a small task and many different microservice runtimes work together to deliver a complete solution.
For a client, it means that each may have to make multiple calls to various backend services to complete a fairly complex job. It is obviously not very desirable due to the chattiness between the client and server.
API gateway ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access