Global Network

Why is "Typing..." Instant?

Even from 10,000 miles away, the signal arrives in a blink.
Persistent Sockets + Speed of Light.

science Try the Simulation

lightbulb The Short Answer

It’s fast because the connection between your phone and the server is already open (a persistent TCP socket). It doesn't need to "dial" or establish a handshake when you start typing. The "typing" notification is a tiny data packet that travels through fiber optic cables at about 200,000 km/s (roughly 2/3 the speed of light).

Interactive Packet Simulator

Experience the journey of a single byte.

SOCKET: OPEN
You (Sender) wifi
Hey!
dns
Erlang Cluster
Handles ~2M connections per server. Uses RAM routing (no disk writes) for speed.
SERVER NODE
Friend (Receiver) wifi
Hey!
Click "Start Typing" to trace the data packet.

Under the Hood: The Tech Stack

lan

Persistent Sockets

Unlike loading a webpage (which opens and closes connections), WhatsApp keeps a TCP socket open permanently. It's like a dedicated phone line that never hangs up, so data can flow instantly.

code

Erlang & FunXMPP

WhatsApp uses a custom binary protocol (FunXMPP). A "typing" notification is just a few bytes. The backend runs on Erlang, a language built for massive concurrency, handling millions of users per server. link

speed

The Speed of Light

Internet cables use fiber optics. Light travels through glass at roughly 200,000 km/s. Even a round trip from London to Sydney (~34,000km) only takes about 0.3 seconds physically.

Global Lag Calculator

Distance
15,989 km
Vacuum Light Time
0.053 s
Real Internet Time
0.115 s