Skip to content
EduVerse

You’re reading the free preview.Unlock every conversation for €2.99

FreeFree previewChapter 8

Chapter 8 · Free preview

Beyond Request-Response

When Waiting Becomes the Problem

Illustration from the book

What you will understand

  • Explain the difference between synchronous and asynchronous processing
  • Describe when to use a message broker instead of direct API calls
  • Explain the difference between a queue and a topic
  • Describe caching strategies and know when to invalidate the cache
  • Explain what idempotency is and why it matters in message processing

Written by EduVerse for this preview; the slides below are the book’s own words.

Slides from the chapter

Each slide is a passage from the book with the figure or listing it talks about. Swipe, use the arrow keys or the buttons.

Slide 1 of 4

Beyond Request-Response

p. 181

Conversation from The Software Realm, Decoded

Chapter 8 · Beyond Request-Response · p. 181

The Senior developer, from the book cover

Senior developer

The email takes 2 seconds because it calls an external SMTP server. Does the user really need to wait for it?

Peter, from the book cover

Peter

No... the email can arrive a few seconds or even minutes later. But how do I send it without waiting?

The Senior developer, from the book cover

Senior developer

This is where asynchronous systems come in. Instead of doing the work yourself, you announce ’Order Placed’ to a message broker. Other services listen for that announcement and handle their tasks in the background.

What the book shows with it

Figure from The Software Realm, Decoded

Chapter 8 · Beyond Request-Response · p. 181

Senior developer looks at the flow:

Inspect
FigureFrom the book, p. 181
Try it interactively: Placing an order: synchronous or asynchronous

Explore this figure

Pick one to highlight it and read what the book says about it.

Other labels in the figure (8)
Description

Flow diagram: from User clicks 'Place Order', arrows lead top to bottom through 'Save to Database (50ms)', a red 'Send Email (2000ms)' step marked 'SLOW!', 'Update Inventory (100ms)' and 'Return Response'. A note beside it reads 'Problem: User waits 2,150ms. Everything is sequential.'

Description written by EduVerse; the figure itself is from the book.

Slide 1 of 4

Try it yourself

A simulation built by EduVerse around this chapter. It runs in your browser; nothing is sent anywhere.

Full book

The full chapter

This preview shows 7 of the chapter’s 43 passages. The full chapter has:

  • 8 sections
  • 22 conversations
  • 22 figures and tables
  • 1 What They Say boxes
  • 7 knowledge-check questions
Sections in this chapter
  1. 8.1Synchronous vs. Asynchronous: The Core Difference
  2. 8.2Message Brokers: When Services Stop Calling Each Other
  3. 8.3Queues vs. Topics: Two Delivery Patterns
  4. 8.4Kafka vs. RabbitMQ: Recording vs. Mailbox
  5. 8.5Redis: The Speed Layer
  6. 8.6Idempotency: Handling Duplicate Messages
  7. 8.7Failure Handling: When Things Break
  8. 8.8Peter's Takeaways