Skip to content
Ameen Abozaid
Planned lessonMID-035-L06

Demo: one entry point for four services

  • Lesson 6 of 6
  • Mid-level
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

  1. Add a gateway service to Compose with routes for catalog, orders, inventory, and payments.
  2. Call GET localhost:8080/api/products and see it routed to catalog; show the headers added.
  3. Add JWT validation; call orders without a token and get 401.
  4. Add the rate-limit filter from MID-034.
  5. Planned mistake: leave the services' ports published in Compose. Call localhost:8083 directly and bypass the gateway. Fix: remove published ports so only the gateway is reachable, and make services validate tokens too.
  6. Verify the correlation id header flows to all services.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.