Grokking Microservices Design Patterns
0% completed
Advantages of API Gateway Pattern
Without a gateway, every client has to know the address of every service, call each one separately, and handle each one's data format and errors. That work grows every time a service is added. The API Gateway takes it off the client.
Here are the problems it solves, and how.
1. Complex interactions. In a large system many services talk to each other and to clients. If every client calls every service directly, the number of connections grows quickly. The gateway becomes the one point clients talk to, so a client has one connection instead of many.
**2. Inconsistent service calls
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Abdul Ahad
· 2 years ago
- A client sending an HTTP request with JSON data can have it translated by the API gateway to a gRPC request understood by the backend service.
- A backend service returning data in XML format can have it translated by the API gateway to JSON before sending it back to the client.
Show 1 reply
Reading Progress
0%