Skip to content
Ameen Abozaid
Planned lessonMID-024-L06

Demo: the same call in REST and gRPC

  • 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

implement inventory's stock check twice and compare. Prepares MID-024-LAB1.

Draft outline details

Step by step

  1. Implement GET /stock/{sku} in inventory with Spring MVC and call it from orders.
  2. Write inventory.proto; generate stubs with the build plugin.
  3. Implement the gRPC service and call it from orders with a deadline of 500 ms.
  4. Compare payload sizes and latency with a quick benchmark (note it is indicative only).
  5. Planned mistake: renumber a proto field and show the old client reading garbage; restore the number and add a new field instead.
  6. Stop inventory and compare how each client reports the failure.

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.