Inside the edge: how a message crosses every region
Jonah Reyes
Software engineer
When you call publish, a lot happens in very little time. Here is the path a message takes through Relay.
1. Accept at the nearest edge
The SDK connects to the closest of our edge regions. The message is accepted, validated and given an order within its channel.
2. Fan out
Each region that has subscribers for the channel receives one copy. From there it is delivered to every local connection.
3. Store
In parallel, the message is written to history so late joiners can catch up and search it later.
The result is global fast global delivery.