Just finished a system design session on Caching & Distributed Systems π₯ β here's the full breakdown in a thread π§΅
1/ Why cache at all?
If a computation takes 30-40s, you cache the result. Next time someone asks β it's instant. That's the entire idea.
2/ Redis vs Postgres
Redis = RAM β blazing fast, limited size
Postgres = Disk β slower, persistent, large
Pick based on your use case β not hype.
3/ Cache HIT vs MISS
HIT β serve from Redis β
MISS β fetch from DB β update Redis β serve
This pattern = Read-Through Cache
4/ TTL is your best friend
Set expiry on every cache key.
24hrs for slow-changing data.
5min for real-time data.
No TTL = stale data forever π
5/ Eviction Policy: LRU
When storage is full, kick out the Least Recently Used item.
This is how Redis stays lean under pressure.
6/ Consistent Hashing π
Distributed cache across 3+ nodes?
Use a hash ring.
hash(key) % n β determines the partition
Add/remove a node? Only a fraction of keys move. Not all.
7/ Infrastructure ladder:
Data Center β Hypervisor (Proxmox)
β VMs β VPS β Cloud (AWS/Azure/GCP)
More abstraction = less control but less headache.
Thank you @piyushgarg_dev sir for the awesome session and we missed you today @Hiteshdotcom sir and thank you all the TA's @nirudhuuu@ChaiCodeHQ
#SystemDesign #Redis #Caching #DistributedSystems #ChaiCode #BackendEngineering
Finished Linux On Call labs from Chaicode Labs. It was an amazing experience with challenging tasks. Thank you, @Hiteshdotcom sir, for this amazing experience.
You can now build custom themes for Claude Code on desktop with mods! Change the colors, add an animated background, and make it your own.
Just tell Claude how you want it to look, or get started quickly with the theme-examples plugin. We'd love to see what you make!
12 Hrs Diwali Study Challenge β 12/12 hrs β
ANDDD WE DID IT!! 12 hours completed! ππͺπ»
The final stretch was mostly about revisiting Java concepts and solving Java Chailabs. Like some tasks took quite a while to crack but learnt alot while applying the concepts.
A little update about 12 hours: The first 8 hours went by with alot of energy but after that my patience was running out. So I switched to solving labs.
And that's a wrap!! Started Diwali with a 12-hour challenge and actually completed it!π₯Ή
A big Shout Out to @Hiteshdotcom Sir and @ChaiCodeHQ team for building a community where everything is in one place structured courses, no worrying about roadmaps, hands on practice with ChaiLabs and TAs who make it easy to reach out whenever we're stuck and this truly helped me alot like I didn't even wasted a single moment in thinking from where should I study, what to practice or do I even feel confident with concepts after studying!! If you are not a part of ChaiCode community you surely missing alot!!β€οΈβ€οΈ
Happy Diwali once again to everyone and Thank you So much for supporting through out 12hrs!!β¨πͺ
@ChaiCodeHQ@Hiteshdotcom@nirudhuuu@piyushgarg_dev@yntpdotme@surajtwt_@wjshubham@BlazeisCoding@devwithjay@sameerbhagtani
12 Hrs Diwali Study Challenge β 9/12 hrs β
Another 3 hours done! I studied YT CNS series of @wjshubham Sir and a little Python practice.
What I learned:
- HTTP protocol, its stateless nature and how client-server communication works.
- Evolution of HTTP: 0.9, 1.0, 1.1 and 2.0.
- HTTP headers, request-response structure, Host header and ETag.
- Persistent connections, pipelining and Head-of-Line Blocking in HTTP/1.0
- HTTP/2 concepts like multiplexing, stream IDs and server push.
- Also solved a Python lab on list, dictionary and set comprehensions. How to distinguish between dictionary and set comprehensions.
It's really exciting to understand the under hood of sending a simple HTTP request over internet!!π€
Just 3 more hours to go! Let's see how the final stretch goes and mostly I will solve the Chailabs! πͺπ»ππ»
@ChaiCodeHQ@Hiteshdotcom@nirudhuuu@wjshubham@piyushgarg_dev@yntpdotme@BlazeisCoding@devwithjay
12Hrs Diwali Study Challenge - 3/12 hrs β
First 3 hours done! Started with Java basics and setup.
I had studied Java back in my first year and used to code everything manually on VS Code. But setting things up with IntelliJ IDEA was such a relief! π
Covered the first 10 videos:
- What is a programming language & how it runs
- JDK, JRE, JVM
- Keywords, variables and Data Types(int, long, double, boolean, char, string)
- Type conversion (widening & casting)
- Operators(Arithmatic, Comparison, Logical) and user input
- "print()" vs "println()"
- Comments and variable naming
It's been a while since I studied Java, so revisiting these basics with practical knowledge explanation is building concepts more strongly. Also, studying this early in the morning hits differently! π€
So far, really enjoying @nirudhuuu Sir's teaching. On to the next 3 hours! π
@ChaiCodeHQ@Hiteshdotcom@piyushgarg_dev@yntpdotme
Happy Diwali to Everyone! Wishing you all lots of happiness, good health and success!! πͺβ¨
I've challenged myself this Diwali to study for 12 hours!!! Not sure how it's going to go, but I'm genuinely curious to see how much I can push myself!!π€π»ππ»
Starting the day with @nirudhuuu Sir's Java Course.π€
Let's see how this Diwali goes and I will keep updating!!!
Once again Happiest Diwalii!! π
@ChaiCodeHQ@Hiteshdotcom@piyushgarg_dev@yntpdotme@surajtwt_@BlazeisCoding@devwithjay
Invested in a yearly plan https://t.co/qdFpNtF5j2. I was experimenting with this last week, and I believe it will enhance my learning experience. Thank you, @Hiteshdotcom sir, again for this amazing product.
Enjoying labs, having fun and learning in the process. Though my trial will expire tomorrow, waiting for pricing, so that I can subscribe also. So that I can continue learning and practising further.
Again, thank you @Hiteshdotcom sir and @ChaiCodeHQ for these amazing labs.
Thank you, @ChaiCodeHQ@Hiteshdotcom sir, for the early access. Excited to get started. The chapters and the tasks all look awesome and are great for learning and building.
@Hiteshdotcom@ChaiCodeHQ First, try it in easy mode, then move to hard mode; the platform is very smooth. Plus, integrating an AI API key gives it more freedom, too.
Spending time with @mannupaaji gives you such thought process.
BTW, found the inspiration right here on twitter via @shadcn tweet. It was a good component and it's modified version fits right here.