Demo: one entry point for four services
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
put Shop behind one gateway. Prepares MID-035-LAB1.
Draft outline details
Step by step
- Add a
gatewayservice to Compose with routes forcatalog,orders,inventory, andpayments. - Call
GET localhost:8080/api/productsand see it routed tocatalog; show the headers added. - Add JWT validation; call
orderswithout a token and get401. - Add the rate-limit filter from MID-034.
- Planned mistake: leave the services' ports published in Compose. Call
localhost:8083directly and bypass the gateway. Fix: remove published ports so only the gateway is reachable, and make services validate tokens too. - Verify the correlation id header flows to all services.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.