Disabling Garbage Collection helped Instagram save money and get better performance

  Рет қаралды 22,489

Arpit Bhayani

Arpit Bhayani

8 ай бұрын

System Design for SDE-2 and above: arpitbhayani.me/masterclass
System Design for Beginners: arpitbhayani.me/sys-design
Redis Internals: arpitbhayani.me/redis
Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters.
Sign up and get 40% off - app.codecrafters.io/join?via=...
In this video, we delved into Instagram's 2017 blog post discussing their optimization strategy of dismissing Python garbage collection. By disabling this feature, they achieved a 10% efficiency boost, translating to significant cost savings at scale. The blog highlighted Instagram's use of Django in a multiprocess mode to maximize hardware utilization, alongside techniques like "copy on write" and memory management strategies. However, their initial theory regarding ref counts on code objects was debunked through practical experimentation, emphasizing the importance of validating assumptions before implementation.
Recommended videos and playlists
If you liked this video, you will find the following videos and playlists helpful
System Design: • PostgreSQL connection ...
Designing Microservices: • Advantages of adopting...
Database Engineering: • How nested loop, hash,...
Concurrency In-depth: • How to write efficient...
Research paper dissections: • The Google File System...
Outage Dissections: • Dissecting GitHub Outa...
Hash Table Internals: • Internal Structure of ...
Bittorrent Internals: • Introduction to BitTor...
Things you will find amusing
Knowledge Base: arpitbhayani.me/knowledge-base
Bookshelf: arpitbhayani.me/bookshelf
Papershelf: arpitbhayani.me/papershelf
Other socials
I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.
LinkedIn: / arpitbhayani
Twitter: / arpit_bhayani
Weekly Newsletter: arpit.substack.com
Thank you for watching and supporting! it means a ton.
I am on a mission to bring out the best engineering stories from around the world and make you all fall in
love with engineering. If you resonate with this then follow along, I always keep it no-fluff.

Пікірлер: 25
@NabajyotiBorah-x7p
@NabajyotiBorah-x7p 2 күн бұрын
to all those managers and clients who think for just two lines of code why you need this much time and money, look here it is about the experience of the person you pay for, not code lines, because they know the internals after working for so many years how the code works
@amitrastogi1405
@amitrastogi1405 8 ай бұрын
Awesome blog and step by step approach for solving the problem. Thanks for covering this Arpit!
@LeoLeo-nx5gi
@LeoLeo-nx5gi 8 ай бұрын
This is truly amazing, and trust me if I was to read this blog alone would have just stopped it after few paras but when you explained man!!! things were so so clear. Thank you so much!!
@achyuthreddyi
@achyuthreddyi 8 ай бұрын
amazing !!!. Thank you for this series and this giving us a lot of curiosity to dig deeper into the internals
@user-xf7yg5ci3t
@user-xf7yg5ci3t 8 ай бұрын
Awesome! It was thriller movie with a lot of twists and turns! Thank you so much for the explanation!
@aniketmahangare8333
@aniketmahangare8333 7 ай бұрын
Thank you so much for covering this Arpit.
@sum1t_gupta
@sum1t_gupta 3 ай бұрын
Thanks for great work man , phenomenal explanation
@AshishKumar-qe4hq
@AshishKumar-qe4hq 8 ай бұрын
Best video ever, thanks Arpit
@zombiebaloon9166
@zombiebaloon9166 7 ай бұрын
Beautifully explained buddy
@ankit-jangid
@ankit-jangid Ай бұрын
there are really good blogs are out there. But Arpit you put efforts to explain and do deeper with all the details and in very simple way that really helps alot to engage and generate interest in engineering. as real engineering is figuring out the solutions and improvements which you deliver at best. thank you for your efforts !!
@sharinganuser1539
@sharinganuser1539 Ай бұрын
Now it makes sense...thanks a ton...I have been trying to understand that ...
@itsonmylist1247
@itsonmylist1247 8 ай бұрын
Great video would love to see a video on abstraction for writing better and maintainable code
@daegu_1
@daegu_1 8 ай бұрын
amazing. thanks for explanating
@dinakarullas4856
@dinakarullas4856 3 ай бұрын
Loved it!!!
@trendinginsaan1285
@trendinginsaan1285 5 ай бұрын
In just a couple of minutes, my brain is filled with dopamine. really respected video
@chinmayagrawal
@chinmayagrawal 8 ай бұрын
37:32 I believe sandybridge processors are the intel 2nd gen processors which were built on 32nm microarchitecture(launched in 2011) If in case anyone thinks Instagram using 12 years old CPU, then this blog is written in jan 2017, so at that time that cpus are just 6 years old
@AsliEngineering
@AsliEngineering 8 ай бұрын
Thank you Chinmay :)
@user-zs6bp4qu8j
@user-zs6bp4qu8j 8 ай бұрын
Awesome !
@sanskaragarwal582
@sanskaragarwal582 25 күн бұрын
Brilliant!
@soniamathew250
@soniamathew250 4 ай бұрын
which mic are you using? if you are fine sharing.
@NabajyotiBorah-x7p
@NabajyotiBorah-x7p 2 күн бұрын
Ok, for the f***k sake I have been working in python for 3 years and today I came to know that it only runs on a single thread, fkkkk That's why I watch your system design videos to get in in-depth understanding of the language , I hope you create more about python in future
@farhanishaq7
@farhanishaq7 Ай бұрын
Is it possible to recover deleted insta chats bro?
@AmitSharma-yb9vc
@AmitSharma-yb9vc 7 ай бұрын
Thanks for the video, I started binge watching your youtube videos. One request, Please don't use subtitles like this, I found them pretty disturbing.
@AsliEngineering
@AsliEngineering 7 ай бұрын
I have been experimenting lately and seeing what works and what doesn't.
How JunoDB is designed to be a highly secure database
12:12
Arpit Bhayani
Рет қаралды 8 М.
How LinkedIn improved their latency by 60%
10:00
Arpit Bhayani
Рет қаралды 8 М.
Climbing to 18M Subscribers 🎉
00:32
Matt Larose
Рет қаралды 36 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 26 МЛН
3 wheeler new bike fitting
00:19
Ruhul Shorts
Рет қаралды 50 МЛН
How Instagram efficiently serves HashTags ordered by count
12:18
Arpit Bhayani
Рет қаралды 13 М.
Everything you need to know about REST
26:20
Arpit Bhayani
Рет қаралды 23 М.
CAP Theorem - From the First Principles
42:42
Arpit Bhayani
Рет қаралды 22 М.
How Razorpay scaled their notification system
17:32
Arpit Bhayani
Рет қаралды 18 М.
If I were to learn a new programming language
9:26
Arpit Bhayani
Рет қаралды 21 М.
How Giphy uses CDN to serve 10 billion GIFs every day
16:33
Arpit Bhayani
Рет қаралды 10 М.
Why thread pools even exist? and how to implement them?
9:29
Arpit Bhayani
Рет қаралды 31 М.
Razorpay's Journey to Microservices w/ Arjun | Ep 1
49:48
Arpit Bhayani
Рет қаралды 53 М.
Why do databases store data in B+ trees?
29:43
Arpit Bhayani
Рет қаралды 29 М.
Google system design interview: Design Spotify (with ex-Google EM)
42:13
IGotAnOffer: Engineering
Рет қаралды 1 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 12 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,1 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30