{"podcast":{"title":"The Backend Engineering Show with Hussein Nasser","slug":"the-backend-engineering-show-with-hussein-nasser-847440","podcast_index_feed_id":847440,"rss_url":"https://anchor.fm/s/1eb6d14/podcast/rss","website_url":"https://database.husseinnasser.com","image_url":"https://d3t3ozftmdmh3i.cloudfront.net/production/podcast_uploaded_nologo/222061/222061-1626111277047-d82a050054721.jpg","author":"Hussein Nasser","episode_count":541,"summary":"Welcome to the Backend Engineering Show podcast with your host Hussein Nasser. If you like software engineering you’ve come to the right place. I discuss all sorts of software engineering technologies and news with specific focus on the backend. All opinions are my own. Most of my content in the podcast is an audio version of videos I post on my youtube channel here http://www.youtube.com/c/HusseinNasser-software-engineering Buy me a coffee https://www.buymeacoffee.com/hnasr 🧑‍🏫 Courses I Teach https://husseinnasser.com/courses","last_synced_at":"2026-07-11T00:20:07.790472+00:00","page_url":"https://stenobird.com/podcast/the-backend-engineering-show-with-hussein-nasser-847440"},"episode":{"title":"Cloudflare's 150ms global cache purge | Deep Dive","slug":"cloudflare-s-150ms-global-cache-purge-deep-dive","published_at":"2024-10-18T07:15:00+00:00","page_url":"https://stenobird.com/podcast/the-backend-engineering-show-with-hussein-nasser-847440/cloudflare-s-150ms-global-cache-purge-deep-dive","show_page_url":"https://stenobird.com/podcast/the-backend-engineering-show-with-hussein-nasser-847440","url":"https://podcasters.spotify.com/pod/show/hnasr/episodes/Cloudflares-150ms-global-cache-purge--Deep-Dive-e2plr0c","audio_url":"https://anchor.fm/s/1eb6d14/podcast/play/93039052/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2024-9-14%2F4d85853f-a363-a78c-3616-2646def03728.m4a","summary":"Cloudflare built a global cache purge system that runs under 150 ms. This is how they did it. Using RockDB to maintain local CDN cache, and a peer-to-peer data center distributed system and clever engineering, they went from 1.5 second purge, down to 150 ms. However, this isn’t full picture, because that 150 ms is just actually the P50. In this video I explore Clouldflare CDN work, how the old core-based centralized quicksilver, lazy purge work compared to the new coreless, decentralized active purge. In it I explore the pros and cons of both systems and give you my thoughts of this system. 0:00 Intro 4:25 From Core Base Lazy Purge to Coreless Active 12:50 CDN Basics 16:00 TTL Freshness 17:50 Purge 20:00 Core-Based Purge 24:00 Flexible Purges 26:36 Lazy Purge 30:00 Old Purge System Limitations 36:00 Coreless / Active Purge 39:00 LSM vs BTree 45:30 LSM Performance issues 48:00 How Active Purge Works 50:30 My thoughts about the new system 58:30 Summary Cloudflare blog https://blog.cloudflare.com/instant-purge/ Mentioned Videos Cloudflare blog https://blog.cloudflare.com/instant-purge/ Percentile Tail Latency Explained (95%, 99%) Monitor Backend performance with this metric https://www.youtube.com/watch?v=3JdQOExKtUY How Discord Stores Trillions of Messages | Deep Dive https://www.youtube.com/watch?v=xynXjChKkJc Fundamentals of Operating Systems Course https://os.husseinnasser.com Backend Troubleshooting Course https://performance.husseinnasser.com","meta_description":"Cloudflare built a global cache purge system that runs under 150 ms. This is how they did it. Using RockDB to maintain local CDN cache, and a peer-to-peer…","key_points":[],"chapters":[],"topics":[],"duration_seconds":3741,"processing_state":"not_requested","actions":[{"name":"request_transcript","method":"POST","url":"https://stenobird.com/v1/public/podcasts/the-backend-engineering-show-with-hussein-nasser-847440/episodes/cloudflare-s-150ms-global-cache-purge-deep-dive/transcription-requests","description":"Idempotently request low-priority transcript generation for this episode."},{"name":"read_markdown","method":"GET","url":"https://stenobird.com/podcast/the-backend-engineering-show-with-hussein-nasser-847440/cloudflare-s-150ms-global-cache-purge-deep-dive.md","description":"Read the agent-friendly Markdown representation of this episode resource."}]}}