Grokking Microservices Design Patterns
0% completed
API Gateway Pattern: An Example
The last lesson listed what an API gateway does. This lesson builds one, and the code runs.
The system is a library with three services. The catalogue service answers searches and imports. The user service holds profiles and loans. The inventory service tracks copies on the shelf. A client never calls those services. It calls the gateway.
What the Gateway Adds
Routing on its own would make the gateway a thin pass-through. These are the parts that make it worth running.
- Routing: match the request path to the service that owns it. 2
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%