Was trying out ChatGPT Codex 5.6.
First prompt asking to make some minor change in a migration file and it just deleted the whole local db 😭. All my test data is just gone now 😭😭😭
@deep7sr It just dropped my whole dev database and didn’t even bother to ask me before running a destructive command 😭
I had so much test data and all are gonr in a moment 😭
RCB is the 3rd team to defend a title. Rajat Patidar is the only captain to achieve it after Dhoni and Rohit. He is probably gonna be the next biggest contender for captaincy in the national team.
Dude just came and won RCB the trophy they were striving for 18 long years, that’s also twice straight! Deserves a lot of appreciation.
#ipl #rcbvgt #ipl2026
Today I read the following topics:-
Message queues: A durable component, stored in memory useful for enabling asynchronous communication. Let’s take example of YouTube video processing. When we upload a video, it has to be processed for chunking and partitioning which is a long running process, and can’t happen synchronously in a single http request. Message queues solve this problem by allowing producers to submit video processing requests, that is saved in memory and consumed by the worker on demand. Producers can return immediately without waiting for completion and consumers can process on demand without overwhelming the server in burst traffic.
Logging: With growing users apps should keep a logs of errors that help in debugging. We can keep logs per server or aggregator logs from multiple places into one single place.
Metrics: Apps should monitor important metrics for better business insights and to understand the system health. Some of the important metrics are:
- host level metrics: CPU, Memory, Disk I/0.
- Aggregated metrics: Performance of entire db or cache tier.
- Business metrics: Daily active users, user retention and revenue.
Automation: With growing users and complex architecture it is recommended to automate the build, test and deploy processes for smooth and fast deployment.
I think I have ruined my account, I was doing good but was unable to figure out what I should post. Should have kept shit posting atleast to keep it alive.
Here is what I learnt yesterday,
Cache: A temporary memory placed in front of database to store expensive, redundant database query results, to speed up consecutive db reads. Cache is like RAM, volatile. The complex thing about caching is maintaining consistency with db and deciding most suitable cache eviction policy.
CDN: A group of servers distributed across different geographical locations to distribute static content like media files, HTML, CSS, JS files across locations with speed. This sits in front of the origin server and caches data. One of the most challenging task is to invalidate or update this cache properly.
Stateless web tier: Engineers need to ensure apps as much stateless as possible. So all the stateful concerns e.g. Auth should be taken out of the app and should be saved in a separate db or cache. Stateless systems do not require sticky sessions that enables auto scaling where we can automatically spawn new servers when the app faces more load.
I am getting started with the book System Design Interview by Alex Xu (v1).
Today I learned about Horizontal scaling vs Vertical scaling, Load balancers, and Database replication.
Vertical Scaling (scale up): Upgrading the specs of your server. It’s less complex but limited by the maximum CPU/RAM a single system can have. Single point of failure.
Horizontal Scaling (scale out): Using multiple servers instead of one large server. Easy to scale, no limit on CPU/Memory, on-demand scaling, and more resilient since a fault in one system does not take down everything. The setup is complex though.
Load balancers: With horizontal scaling, we need a mechanism to distribute incoming requests evenly across servers. Load balancers serve this purpose.
Database replication: With more traffic, our DB servers will hit bottlenecks. We distribute across multiple servers, but maintaining consistency is challenging. The solution is a single master node handling all mutating queries and multiple slave nodes serving reads while syncing with the master. This is complex—what if the master fails? We need to promote a slave to master. I need deep knowledge on this.
If you read till here, like and follow. Thanks and good night 😴
I think one good and sustainable way for me to stay regular and consistent on X is learning in public. This way, I will learn and grow alongside my account and connect with great people.
I'm getting started with system design and will keep posting what I learn.
If you're into tech, let’s connect ✌️