Coder Radio

620: Cloudflare's Sunil Pai

Jun 16, 2025
Sunil Pai, Principal Systems Engineer at Cloudflare, is passionate about making programming accessible and is an active member of the React community. He shares insights on Cloudflare’s evolving infrastructure and innovative technologies. The discussion highlights durable objects in serverless applications, enhancing real-time experiences while managing data efficiently. They also touch on challenges of cloud infrastructure, optimizing database performance to reduce latency, and even dive into nostalgic memories tied to music and gaming. It's a blend of tech talk and personal storytelling!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Cloudflare's Massive JavaScript Network

  • Cloudflare runs JavaScript on a global network of 300+ cities, covering 95% of the world's population within 40-50ms latency.
  • This enables running serverless functions close to users with integrated database and caching, changing infrastructure paradigms.
INSIGHT

Durable Objects Keep State Alive

  • Durable Objects keep state in memory between requests, unlike traditional stateless serverless functions.
  • This enables building multiplayer apps and real-time experiences simply with shared state and persistent connections like WebSockets.
ADVICE

Use Durable Objects for AI Streaming

  • Use Cloudflare Workers AI bindings to connect to AI models like DeepSeq without API keys.
  • Store AI response state in durable objects to enable streaming, retries, and front-end synchronization across page refreshes.
Get the Snipd Podcast app to discover more snips from this episode
Get the app