Pinned Tweet
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
Completed Javascript 15 days challenges, and stayed consistent for 15 days-> lots of learning and amazing experience. Thank you, @Hiteshdotcom sir and @ChaiCodeHQ , for bringing this challenge and looking for more.
1
13
193
Finished Linux On Call labs from Chaicode Labs. It was an amazing experience with challenging tasks. Thank you, @Hiteshdotcom sir, for this amazing experience.
Invested in a yearly plan labs.chaicode.com. 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.
2
12
500
RAG doesn't kill hallucinations โ it just moves where they happen.
Poor retrieval, bad chunking, context limits, stale knowledge bases can all quietly break a RAG pipeline.
Wrote up where RAG actually fails (and when to skip it):
blogs.abhijitmone.com/where-โฆ
@ChaiCodeHQ
#GenAI #RAG #LLM
2
6
111
Ever tried listing every skill installed across your Claude Code / Cursor / Copilot setup? Yeah, neither could I.
Skill-discovery, built by Surenode โ one command, runs locally, zero config. Scans your agents' skill folders + instruction files, fingerprints them, flags suspicious patterns (env dumps, hidden payloads, prompt injection), redacts secrets before anything leaves your machine.
git clone github.com/surenode-ai/skillโฆ
cd skill-discovery && pip install .
skill-discovery --dry-run
Nothing leaves your machine unless you point it at a server. Open source, and it's the inventory layer behind Surenode's KLIN governance platform for teams.
๐ github.com/surenode-ai/skillโฆ
Class-01 of GenAi Done
Spent time breaking down how LLMs actually work, from scratch ๐ง
1๏ธโฃ Tokenisation โ text becomes numbers
2๏ธโฃ Embeddings โ numbers become meaning (vectors that capture relationships, e.g. Eiffel Tower โ Paris)
3๏ธโฃ Positional Encoding โ order matters
4๏ธโฃ Self-Attention โ tokens "talk" to each other (ICICI Bank vs River Bank โ context decides meaning)
5๏ธโฃ Transformer (encoder-decoder) โ training (backprop) vs inference
#GenAI #LLM #AIEngineering
@ChaiCodeHQ @Hiteshdotcom and @piyushgarg_dev sir for an awesome session.
1
21
375
Building a Superhuman clone for ๐ Gmail + Google Calendar.
Thank you @ChaiCodeHQ @Hiteshdotcom @piyushgarg_dev @corsairdotdev
Builder Mode On | MacBook Giveaway Hackathon #chaicode #corsair-dev
1
90
Experimenting with more mobile development, created a safe driving app which helps detect rash driving and also AI assisted feedback to improve.
@ChaiCodeHQ @surajtwt_ @Hiteshdotcom @piyushgarg_dev
@nirudhuuu sir
From Learning Mobile development to giving a production build for a client, thank you @Hiteshdotcom, @piyushgarg_dev and @surajtwt_ for the amazing mobile development cohort @ChaiCodeHQ and all TA's @nirudhuuu sir. Second Project now done right.
19
262
Built the Devsnippet application as part of a mobile developer cohort assignment. Learned new concepts regarding mobile development at @ChaiCodeHQ and using Expo. Thank you, @surajtwt_ @Hiteshdotcom @piyushgarg_dev and all the TA's @nirudhuuu for this wonderful cohort, really enjoying it.
Last session of the System Design Cohort with @ChaiCodeHQ today.
Came in confused about Kafka and consistent hashing. Leaving with a completely different way of thinking about systems โ and honestly, about learning itself.
It's weird how a cohort becomes a routine, and then suddenly it's over.
Thank you @Hiteshdotcom and @piyushgarg_dev sir for this amazing experience and also all the team at @ChaiCodeHQ and amazing TA's @nirudhuuu for making this an awesome journey.
#ChaiCode #SystemDesign
Hackathon Participiation.
Thank you @ChaiCodeHQ @Hiteshdotcom sir and @nirudhuuu for this opportunity.
2
12
201
Completed the assignment for Smart Elevator Control DB design.
@ChaiCodeHQ @nirudhuuu
#chaicode #DBDesign
16
107
AI System Design
Here's everything we covered in one session:
๐๐ผ๐๐ป๐ฑ๐ฎ๐๐ถ๐ผ๐ป๐ฎ๐น ๐๐ผ๐ป๐ฐ๐ฒ๐ฝ๐๐:
โ LLMs, NLP, Next Token Prediction
โ Transformers & Attention mechanism
โ Few-shot Prompting
๐ฅ๐๐ ๐ฃ๐ถ๐ฝ๐ฒ๐น๐ถ๐ป๐ฒ:
โ Query & Vector Embeddings
โ Semantic Search โ Chunking โ Splitting
โ HyDE, Query Retrieval
โ Corrective RAG, LLM as Judge
๐๐ผ๐ป๐๐ฒ๐
๐ ๐ ๐ฎ๐ป๐ฎ๐ด๐ฒ๐บ๐ฒ๐ป๐:
โ 128k context window + threshold at 85%
โ Summarization with 20% reduction size
โ Short-term & Long-term Memory
โ Context Threshold Manager
๐๐ฟ๐ฐ๐ต๐ถ๐๐ฒ๐ฐ๐๐๐ฟ๐ฒ ๐ฃ๐ฎ๐๐๐ฒ๐ฟ๐ป๐:
โ A2A (Agent-to-Agent)
โ AWS Bedrock & AgentCore
โ LRU Cache + CRON Jobs
โ Vector DBs: Pinecone, Qdrant, Weaviate, Chroma
โ PG Vector
Subconscious Brain AI System Design ๐ง
Thank you @Hiteshdotcom and @piyushgarg_dev sir for this amazing session and also TA's @nirudhuuu @BlazeisCoding @ChaiCodeHQ
#AISystemDesign #RAG #LLM #ChaiCode #BuildingInPublic #SystemDesign
1
6
84
Today's in System design cohort session learned about
in-depth DB Internals
๐น Why DBs? Flat files break with concurrency, crashes & partial updates. DBs fix all of that.
๐น Core components:
โ Storage Engine
โ Query Processor + Optimizer
โ Buffer Pool / Page Cache
โ Transaction Manager
โ WAL (Write Ahead Log)
โ Lock Manager
๐น ACID in one line:
All or nothing. Always valid. Isolated. Survives crashes.
๐น WAL = writes to log BEFORE touching the data page. That's how your DB survives a power cut.
๐น Connection Pooling = don't open a new connection per request. Keep a pool warm. PgBouncer does this for Postgres.
๐น Storage Engines:
โ B-Tree โ Postgres, MySQL
โ LSM Tree โ Cassandra, RocksDB, HBase
๐น Types of DBs:
Relational โ structure & joins
Document โ flexible schema
Wide-column โ high write throughput
Key-Value โ caching
Graph โ relationships at scale
Internals > buzzwords. Always.
Thank you @Hiteshdotcom and @piyushgarg_dev for this amazing session and also TA's @nirudhuuu @ChaiCodeHQ
#SystemDesign #Databases #ChaiCode
17
176
๐ Another ๐ฅ session from the System Design cohort
Tonight we went deep into AWS fundamentals:
โก Elastic IPs โ static IPs that survive reboots โ๏ธ Load Balancer types โ ALB vs NLB vs Gateway LB
๐ก๏ธ Security Groups as firewall rules for your LB ๐ฏ Target Groups + Health Checks
๐ก Amazon EventBridge for event-driven architecture ๐ฅ๏ธ VDI on Azure + how corporate setups work
From blank canvas diagrams โ live nginx running behind an actual ALB ๐ค
The best way to learn cloud is to just build it live ๐ช
#CloudComputing #SystemDesign #DevJourney #100xDeveloper
thank you @Hiteshdotcom and @piyushgarg_dev sir for this amazing session and thanks to all the TA's @nirudhuuu @ChaiCodeHQ
10
171
Completed Github Classroom js-async-oops , all synced up.
@ChaiCodeHQ @Hiteshdotcom @piyushgarg_dev sir, @nirudhuuu
1
28
141


















