How Everyday Apps Work · PRACTICAL GUIDE

What Happens When You Send a WhatsApp Message?

Follow a WhatsApp message from your phone through routing, delivery, offline queues and status acknowledgements.

HANDBOOK JOURNEYByte 1 of 5View all Bytes
FAMILIAR SCENARIO

A parcel with a delivery receipt

You hand a parcel to a courier. They accept it, carry it to the recipient, and report delivery. If nobody is home, it waits for another attempt.

01Hand over
02Route
03Wait or deliver
04Confirm

Connect the idea: Sent, delivered and read describe different events in a message journey.

EVERYDAY APPS HANDBOOK 01

What you will learn

Trace a message from sending through routing, offline delivery and acknowledgements.

MESSAGE JOURNEY

One tap. Four visible states.

DELIVERED
Your phoneEncrypt + send
→
Message serviceRoute or queue
→
RecipientReceive locally
→
AcknowledgementUpdate the ticks
If the recipient is offline, the message waits safely instead of disappearing.

Your message’s journey

This Byte starts with a simple question: what actually happens when you send a WhatsApp message? An app many people use every day is a practical way to understand queues, storage and delivery states before those terms appear in a system-design discussion.

A note before we start: WhatsApp's exact internal architecture isn't fully public. What follows is an illustrative model — a reasonable, widely-referenced simplification of how a messaging app like this could work, useful for building intuition, not a claim about WhatsApp's precise current systems.


A message to a friend

PaisaWise is interviewing backend engineering candidates, and Meena sits in on one round out of curiosity. The interviewer asks: "Walk me through what happens when you send a WhatsApp message." Meena is puzzled afterward: "That's such an odd question for a fintech role — why does that come up so often?" Karthik laughs: "Because it's not really about WhatsApp. It's testing whether you can reason about a system — what happens when things go right, and what happens when they don't."


What the ticks actually mean

Think about the button you tap to send a WhatsApp message. From where you're sitting, it feels instant — the message just appears on the other side. But that one tap sets off a small journey: your message has to leave your phone, reach WhatsApp's servers, figure out where the recipient is, get to them (or wait if it can't), and let you know what happened at each step.

That journey — send, route, deliver, confirm, and handle the cases where something isn't straightforward, like the recipient being offline — is the same shape as almost any real-world messaging or notification system. Learning to trace it for an app you already use every day is a low-stakes way to build the habit of asking "okay, but what actually happens in between?" — a habit that matters far beyond WhatsApp.


From send to delivery

A simplified flow for what happens when you send a message to someone who's online:

  1. You tap Send
  2. Message leaves your phone, reaches a WhatsApp server
  3. Server figures out the recipient is currently connected
  4. Server forwards the message to the recipient's device
  5. Recipient's phone confirms it arrived
  6. You see the tick status update

When the recipient is offline, the flow branches:

  1. You tap Send
  2. Message leaves your phone, reaches a WhatsApp server
  3. Server checks: is the recipient currently connected? No.
  4. Message is held ("queued") on the server, waiting
  5. Recipient's phone reconnects later
  6. Server delivers the held message
  7. Recipient's phone confirms it arrived
  8. You see the tick status update, now that delivery happened

This "hold onto something until the receiving side is ready" pattern is often called a queue — a very common building block anywhere a sender and a receiver aren't guaranteed to be active at the same moment.

What the tick marks are commonly understood to represent:

  • One grey tick: your message reached WhatsApp's server, but hasn't reached the recipient's device yet — often because they're offline.
  • Two grey ticks: the message reached the recipient's device (delivered), even if they haven't opened the chat.
  • Two blue ticks: the recipient opened the chat and the message was displayed on their screen — this shows it was seen, not that it was read carefully or understood.

Choose what happens next

INTERACTIVE JOURNEY

Follow the message

SENT
Send

The phone submits an encrypted message.

1 / 4
INTERACTIVE SYSTEM DECISION

The recipient goes offline

CHOOSE

Your message reaches the service, but the recipient disconnects. What should happen next?

Why it matters: A queue separates the sender’s timing from the receiver’s availability.0 / 1

A design exercise, instead of a code snippet:

Sketch out, in the same style as the earlier section, what you think happens when you send a message to someone whose phone is completely switched off for three days, and they only turn it back on afterward. Where does your message sit during those three days? What has to happen the moment their phone reconnects?


What changes for millions of messages

Engineering accounts of WhatsApp's systems that are widely cited in the industry describe a scale of roughly 40 billion messages handled daily, reportedly run historically by a strikingly small backend team — often cited as around 50 engineers, with fewer than a dozen focused specifically on core messaging infrastructure. These accounts describe the backend as built on Erlang, a programming language designed for exactly this kind of problem: managing huge numbers of independent, lightweight "conversations" happening at once, so that one user's connection doesn't block or slow down another's. It's worth repeating: these are commonly-cited illustrative figures from third-party engineering write-ups, not an official architecture disclosure from WhatsApp itself — but the underlying pattern (small teams can run massive scale when the system design fits the problem) is a useful lesson regardless of the exact numbers.


When delivery is delayed

  1. Assuming a single grey tick always means "they're ignoring me" or "they've blocked me" — as covered in the earlier section, it typically just means the message hasn't reached their device yet; WhatsApp is reportedly designed so that offline and blocked look identical, precisely to keep blocking private.
  2. Assuming messages travel directly from one phone to another — in this illustrative model, messages are routed through a server in between (a "store-and-forward" pattern), not sent phone-to-phone directly, even though the content itself is end-to-end encrypted so the server can't read it.
  3. Treating "delivered" and "read" as the same thing — double grey ticks and blue ticks answer two different questions (did it arrive vs. was it displayed); conflating them leads to wrong conclusions about what the other person actually knows.
  4. Assuming everything about a messaging app's actual internals is publicly documented — as this byte states upfront, this is an illustrative model built from public write-ups and reasonable inference, not confirmed internal architecture.

How teams use this model

For a backend developer, the useful skill is not memorising WhatsApp internals. It is recognising the reusable pattern: accept work, hold it safely when the receiver is unavailable, and confirm delivery only after the next system has accepted it. The same reasoning applies to notifications, email delivery, background jobs and device synchronisation.


What you see and what the system knows

What You See as a UserWhat's Likely Happening Underneath (Illustrative)
Tap Send, message "just appears" for the other personMessage routes through a server, which forwards it if the recipient is online
Message sits at one grey tickMessage is queued on the server, waiting for the recipient to reconnect
Message shows two grey ticksServer confirms the message reached the recipient's device
Message shows blue ticksRecipient opened the chat and the message was displayed on-screen

Try tracing a group message

Using the flow above, sketch what you think happens when you send one message to a WhatsApp group of 50 people, where 10 of them are currently offline. What has to happen differently compared to a one-to-one message?


What to remember

  • Tracing a familiar app's flow — send, route, deliver, confirm, handle the exceptions — builds the same reasoning habit that system design interviews test for.
  • This byte presents an illustrative model, not WhatsApp's confirmed internal architecture, since the exact current systems aren't fully public.
  • A queue is the common pattern for "hold this until the receiving side is ready" — it shows up whenever sender and receiver aren't guaranteed to be active at the same time.
  • Delivery (reached the device) and read (displayed on screen) are two different confirmations, commonly represented by grey ticks and blue ticks respectively.
  • Messages in this model route through a server rather than going directly phone-to-phone, even when the content itself is encrypted so the server can't read it.
  • Offline delivery is a normal operating condition, not an unusual exception.
  • A status indicator should represent a precise event, such as accepted, delivered or displayed.
  • The next learning step is to sketch the same flow for a group message and identify what must fan out.

Questions learners ask

Q1: Is this byte describing WhatsApp's exact, confirmed internal architecture? No — it's an illustrative model built from public engineering write-ups and reasonable simplification, useful for building intuition, not a confirmed technical disclosure.

Q2: What commonly explains why a message sits at a single grey tick for a long time? The recipient's device likely isn't currently connected, so the message is queued on the server waiting for them to reconnect — though WhatsApp reportedly makes this look identical to being blocked, to keep blocking private.

Q3: Do messages travel directly from one phone to another in this model? No — in this illustrative model, they route through a server in between, even though the message content itself is end-to-end encrypted.

Check your understanding

5-QUESTION KNOWLEDGE CHECK

Prove the mental model

1 / 5

What should protect a message while the recipient is offline?

Choose one answer to continue

Primary sources

  • WhatsApp Security — public explanation of end-to-end encryption and message protection.
  • ByteByteGo — introductory messaging-system design patterns, including queues and delivery states.

Next byte: What Happens When You Complete a UPI Payment — same "trace the flow" habit, applied to money instead of messages.