Caching Overview and Hardware episode artwork

EPISODE · Aug 12, 2016 · 1H 35M

Caching Overview and Hardware

from Coding Blocks

In this episode we give a general overview of caching, where it's used, why it's used, and what the differences in hardware implementations mean in terms we can understand.  This will be foundational to understanding caching at a software level in an upcoming episode.  There's also something about the number 37 that may be the most important number to remember...ever... Podcast News You can see all the show notes in their original form by visiting: http://www.codingblocks.net/episode45 Thanks for your patience, we had a couple of rough audio situations - and we appreciate you sticking with us! iTunes Reviews Hedgehog, Thiagoramos.ai, Btn1992, Jonajonlee, UndeadCodemonkey, zmckinnon, hillsidecruzr, Dibjibjub, ddurose Stitcher Reviews pchtsp, rafaelh, CK142, TheMiddleMan124, LocalJoost 60 TB SSD!!! https://www.engadget.com/2016/08/09/seagate-60tb-ssd/ Samsung 950 Pro M.2 PCI SSD Samsung 950 PRO Series - 512GB PCIe NVMe http://amzn.to/2b0adZt Full Review http://www.anandtech.com/show/9702/samsung-950-pro-ssd-review-256gb-512gb Ready Player One (fiction book) http://amzn.to/2aPaCi3 Ready Player One - Amazing Audio Book Clean Code episodes coming soon + book giveaway - Stay Tuned! Caching: Turtles all the way down Turtles all the way down??? https://en.wikipedia.org/wiki/Turtles_all_the_way_down Storing a subset of information for faster retrieval The hit ratio dramatically increases as the cache size increases Think about a simple web request… Browser cache DNS cache ISP caching CDN Whatever your application is doing (redis, framework, database, etc) PLUS whatever the various computers are doing Why don't we cache everything? Fast is expensive! Cache Invalidation is hard! Caching at the hardware level Interactive Cache Visualization Latency Numbers Every Programmer Should Know https://gist.github.com/jboner/2841832 Relative Memory Access Interactive Demo http://www.overbyte.com.au/misc/Lesson3/CacheFun.html Caching is a strategy that computers use going all the way down to the processor L1 .5ns As quick as a it gets, how long it takes light to travel 6" Managed by the CPU itself, no assembly available! L2 7ns 14 x slower than L1 L3 / L4 / Scratch etc Main Memory Have numbers for a "reference" and a 1mb sequential read 100ns - 250,000ns 14 - 35,714 x slower than L2 200 - 500,000 x slower than L1 Network Sending is quick, there are numbers for that In general, a lot of variability here Same datacenter 500,000 ns 2 x slower than Main Memory 1 million times slower than L1 SSD Wait, network faster than the hd??? Yes, but no 1mb sequential 1 million ns 2 x slower than Network 2 million x slower than L1 Spinning Disk Get your employer to get you an ssd! 1mb sequential read 20 million ns 20 x slower than SSD 40 million x slower than L1 Internet Rough gauge of internet speeds Highly variable (CDN + ISP caching, for example), but gives you a sense of scale 150 million ns 7.5 x slower than spinning disk 300 million times slower than L1 In more relatable terms. 1 second for L1 Cache 5 days for memory 11 days for data center 23 days for SSD 15 months for HD Almost 10 years for internet! Think about how those numbers cache RAM / Application cache Local Hard drive Network storage Cache Server DB Summary Hope we gave you a good idea of the importance and scale of caching in computing at the hardware level Things we didn't talk about coming in a future episode: Application / Software caching and caching algorithms Resources we Like Latency Numbers Every Programmer Should Know https://gist.github.com/jboner/2841832 How L1 and L2 caching work http://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why-theyre-an-essential-part-of-modern-chips Relative Memory Access Interactive Demo http://www.overbyte.com.au/misc/Lesson3/CacheFun.html Miscellaneous Michael's Favorite Meetup Ever The Atlanta JavaScript Meetup http://www.meetup.com/AtlantaJavaScript/events/222696324/?a=cr1_grp&rv=cr1 Hacking Interviews with: Nick Larsen - http://cultureofdevelopment.com/ Sam Lawrence - http://www.samelawrence.com/ Tip of the Week Algorithms to Live By Joe: Algorithms to Live By There's something about the number 37%... http://amzn.to/2aX1iJk Michael: Use Sublime to replace \n with an actual new line by turning on RegEx search and replace. Or in Michael's case, replace with actual \n\t characters. http://stackoverflow.com/questions/20515670/replace-n-with-actual-new-line-in-sublime-text Allen: Collaborative Markdown Editor - What?! http://www.hackmd.io  

Episode metadata supplied by the publisher feed · Published Aug 12, 2016

NOW PLAYING

Caching Overview and Hardware

0:00 1:35:44

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

API Intersection Stoplight Building a successful API requires more than just coding. It starts with collaborative design, focuses on creating a great developer experience, and ends with getting your company on board, maintaining consistency, and maximizing your API’s profitability.In the API Intersection, you’ll learn from experienced API practitioners who transformed their organizations, and get tangible advice to build quality APIs with collaborative API-first design.Jason Harmon brings over a decade of industry-recognized REST API experience to discuss topics around API design, governance, identity/auth versioning, and more.They’ll answer listener questions, and discuss best practices on API design (definition, modeling, grammar), Governance (multi-team design, reviewing new API’s), Platform Transformation (culture, internal education, versioning) and more.They’ll also chat with experienced API practitioners from a wide array of industries to draw out practical takeaways and insights you can use.H Unshamed & Unchained: Carving Space For Self-Healing & Habit Transformation Danny Poelman Welcome to "Unshamed & Unchained: Carving Space For Self-Healing & Habit Transformation", the podcast where we break the chains of shame and societal expectations to create a safe space for self-healing, habit transformation, and personal growth. Hosted by a seasoned life coach, Danny Poelman DDS, with years of hands-on experience, this podcast is your guide to reclaiming your voice, embracing your story, and living life on your terms.In each episode, we dive deep into the topics that matter most to you—whether it's:-breaking free from unwanted habits like pornography-excessive people-pleasing-healing from past trauma-recovering from narcissistic abuse or religious/relational trauma-anxiety/depression-money mindset blocks-overcoming limiting beliefsWe’re not afraid to talk about the things that are often considered taboo, because we believe that through honest, unfiltered conversations, real transformation happens.You’ll hear real Khanyisa Keke TV Khanyisa Keke On Khanyisa Keke TV, developers can learn and improve their Android for Kotlin Development skills. On this podcast, programmers can learn Android for Kotlin coding from scratch, improve their existing programming skills, get tips, be kept up to date with all the latest happenings and get access to free resources. Powered by Firstory Hosting The Triathlon Mental Performance Podcast Neil Edge This podcast is for you if you are a Triathlete that is interested in learning about tools and strategies to overcome challenges and to utilize the power of your mind to race faster.I'm an experienced Triathlon Mental Performance Coach working with both Age Groupers and Pros.Episodes will cover the following and more.How to improve your mental toughnessRemoving the possibility of panic attacks in open water Removing the fear of fast descents on your bike -Removing mental blocks to improve your race times Completely remove performance anxiety (you don't have to just cope with it)4 weeks to race day - Strategies to  arrive at your a-race feeling calm and confident, with race day mental strategiesI will also talk about specific tools that you can use to ensure that you race faster.<b

Frequently Asked Questions

How long is this episode of Coding Blocks?

This episode is 1 hour and 35 minutes long.

When was this Coding Blocks episode published?

This episode was published on August 12, 2016.

What is this episode about?

In this episode we give a general overview of caching, where it's used, why it's used, and what the differences in hardware implementations mean in terms we can understand.  This will be foundational to understanding caching at a software level in...

Can I download this Coding Blocks episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!