Replying to Avatar Luxas

Great question. Since nosflare uses Workers, it will connect to a worker that’s closest to your IP’s location and establish the websocket connection from there. It then carries through to the regional durable object and further down to a read replica with the database that’s also regionally available. This should make the entire round trip connection occur within the closest proximity of each user. The only part it wouldn’t would be writing to the database (which would still only be marginal overhead of a few tens of milliseconds, but still spread through the respective regional durable object) or if an event is older than 3 months it would pull from the R2 bucket. Let me know if you have any further questions!

Avatar
Derek Ross 4mo ago

Damn. That's way more than I was expecting to learn.

Reply to this note

Please Login to reply.

Discussion

No replies yet.