BolEnglishLearn · Play · Win
Login

🔄 System Design · System Building Blocks

🔄

Synchronous vs Asynchronous

Building BlockIntermediateModule 3

Synchronous work waits for a result; asynchronous work can continue independently.

Choose based on whether the next step needs the result immediately.

💡 In practice

Payment authorization is synchronous; sending a receipt email can be asynchronous.

🖼️ CONCEPT PICTURE
A picture to help remember Synchronous vs Asynchronous
Payment authorization is synchronous; sending a receipt email can be asynchronous.

💡 Synchronous is waiting on hold until the agent answers; asynchronous is leaving a message and getting on with your day.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

Some steps truly need their answer before anything else can happen, while others can safely run later. Choosing wrongly makes users wait for things that could have waited, or lets important checks slip by unconfirmed. Getting this choice right is the key to apps that feel fast without losing correctness.

🛠️ How to achieve it

1
Ask if the next step needs it now
If the result is required to continue, do it synchronously; if not, let it run asynchronously.
2
Keep must-have checks synchronous
Confirm things like payment or permission before telling the user they succeeded.
3
Push nice-to-haves async
Send emails, analytics and reports in the background so the user is not held up.
4
Tell the user what is pending
When work runs later, show that it is in progress so the user is not confused.

⚠️ Signs of trouble

  • •Users wait for tasks whose result they do not need yet.
  • •A critical check is done async and failures go unnoticed.
  • •The interface freezes while a slow call completes.
  • •Background work finishes but the user is never told.
⚠️ Common mistake: Running a critical confirmation asynchronously and telling the user it succeeded before it did. Keep must-have checks synchronous and only defer work the user does not need immediately.

🎯 Quick check

Score: 0/3

Three questions to test the idea.

  1. 1. How do you decide between synchronous and asynchronous?

    Answer: Whether the next step needs the result immediately

    If the result is needed to continue, do it synchronously; otherwise it can run asynchronously.

  2. 2. Which task is best done synchronously?

    Answer: Payment authorization before confirming an order

    You must know the payment succeeded before telling the user, so it has to be synchronous.

  3. 3. What is the risk of making a critical check asynchronous?

    Answer: You may tell the user it succeeded before it actually did

    Deferring a must-have check means failures can slip by after you already confirmed success.

🔑 Key terms

Synchronous
Work that waits for its result before moving on.
Asynchronous
Work that can run on its own while you continue.
Blocking
Holding everything up until a task finishes.
Background task
Work done later, off the user's request.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →