Skip to content
Module
Module 3 of 6Lesson 2 of 2~17 min

Wait or process later, synchronous and asynchronous

Choosing between a synchronous call and a message queue directly shapes what users experience when a service slows down. You learn to decide step by step along a user journey, anticipate delays, duplicates and failures, and describe in the spec the in-between states the interface must display.

Lesson objective

By the end of this lesson, you will be able to decide, for each step of a journey, whether it should be processed while the user waits or handed to a message queue, to anticipate duplicates, delays and failures, and to specify what the user sees in the meantime.

Topics covered

  • synchronous vs asynchronous
  • message queue
  • event-driven architecture
  • eventual consistency
  • background processing

In the glossary

Full glossary

Where it fits

Structuring the system

Should the system be split up, and when should you wait for a response rather than process later?

Lessons in this module

  1. Monolith, modular monolith or microservices
  2. Wait or process later, synchronous and asynchronous (this lesson)

What you will learn in this module

This lesson is part of the course Read and challenge a technical architecture

  • Compare monolith, modular monolith and microservices, then synchronous calls and asynchronous processing, based on the team, the load and the consequences for the user.