Ajit Singh
  • About Me
  • Videos
  • Explainers
  • Tag Cloud
  • Dev Weekly
Navbar avatar

Code Chronicles


Advanced engineering concepts explained through code, diagrams, and real-world examples
💡

Explainers

Short, practical explanations of software engineering concepts with real examples and code samples.

📰

Dev News Hub

Stay updated with the latest trends, updates, and insights from the software development world.

Hash Collisions: The Hidden Performance Killer in Your Code

Why your O(1) lookup just became O(n), and what you can do about it

Posted on October 6, 2025

December 28th, 2011. Web servers across the internet started crashing. PHP, Java, Python, Ruby applications all fell like dominos. The culprit? A few carefully crafted HTTP POST requests with specific parameter names. [Read More]
Tags: data-structures

Why JWT Replaced Sessions: Building Auth That Scales

How stateless tokens solved the scaling problem that broke every session-based system

Posted on October 2, 2025

Your app just hit production. 10,000 users are logged in. Your server stores session data for each one in memory. Traffic doubles. Then triples. The server runs out of memory. Users get logged out randomly. You add more servers, but now sessions don’t sync across them. [Read More]
Tags: security

How Kafka Works: The Engine Behind Real-Time Data Pipelines

Inside LinkedIn's log that changed how we think about messaging systems

Posted on October 1, 2025

Your company just launched a new feature. Within seconds, millions of events start flooding in: user clicks, purchases, page views, API calls. Traditional databases are choking. Message queues are dropping data. Your monitoring dashboard shows error rates climbing. [Read More]
Tags: distributed-systems

Kubernetes Architecture: The Operating System for the Cloud

How Google's container orchestrator became the backbone of modern software deployment

Posted on September 30, 2025

Six months ago, you had one web app on one server. Today, you have 50 microservices that need to scale independently, find each other, and handle failures gracefully. Your deployment process went from “upload via FTP” to “run this 200 line script and pray.” [Read More]
Tags: system-design devops

How Meta Achieves 99.99999999% Cache Consistency

Inside the architecture that keeps 3 billion users in sync

Posted on September 22, 2025

When you like a friend’s photo on Facebook, that like appears instantly across all their devices, to all their friends, and in all the places that photo appears on the platform. Behind this simple action lies one of the most sophisticated distributed cache consistency systems ever built. [Read More]
Tags: system-design

How Slack Built a System That Handles 10+ Billion Messages

Inside the architecture that powers real-time communication for millions

Posted on September 19, 2025

You send a message in Slack, and within milliseconds, it appears on your colleague’s screen across the globe. Behind this simple action lies one of the most sophisticated real-time messaging systems ever built. [Read More]
Tags: system-design

Paxos: The Democracy of Distributed Systems

How a simple voting algorithm keeps distributed systems in agreement

Posted on September 18, 2025

Imagine you’re running a bank with branches in New York, London, and Tokyo. A customer has $1500 in their account. At the exact same moment, they walk into the New York branch asking to withdraw $1000, try to withdraw $1000 through the London ATM, and attempt another $1000 withdrawal via... [Read More]
Tags: distributed-systems
  • Older Posts →

Explore All Posts

WhatsApp's Scaling Secrets: A Deep Dive into System Design and Architecture

WhatsApp's Scaling Secrets: A Deep Dive into System Design and Architecture

Prompt Engineering Basics for Software Developers

Prompt Engineering Basics for Software Developers

Taming Pipeline Chaos: How I Used GitLab APIs and GPT to Analyze Thousands of Failures and Boost Stability

Taming Pipeline Chaos: How I Used GitLab APIs and GPT to Analyze Thousands of Failures and Boost Stability

Github Actions for Android

Github Actions for Android

Offline Mode Of Android Apps

Offline Mode Of Android Apps

Why your android application needs awareness api

Why your android application needs awareness api

Hash Collisions: The Hidden Performance Killer in Your Code

Hash Collisions: The Hidden Performance Killer in Your Code

Why JWT Replaced Sessions: Building Auth That Scales

Why JWT Replaced Sessions: Building Auth That Scales

How Kafka Works: The Engine Behind Real-Time Data Pipelines

How Kafka Works: The Engine Behind Real-Time Data Pipelines

Kubernetes Architecture: The Operating System for the Cloud

Kubernetes Architecture: The Operating System for the Cloud

How Meta Achieves 99.99999999% Cache Consistency

How Meta Achieves 99.99999999% Cache Consistency

How Slack Built a System That Handles 10+ Billion Messages

How Slack Built a System That Handles 10+ Billion Messages

Paxos: The Democracy of Distributed Systems

Paxos: The Democracy of Distributed Systems

Write-Ahead Log: The Golden Rule of Durable Systems

Write-Ahead Log: The Golden Rule of Durable Systems

Building Distributed Counters for High-Traffic Systems

Building Distributed Counters for High-Traffic Systems

How Stripe Prevents Double Payments

How Stripe Prevents Double Payments

From Manual Testing to Automated Excellence: GitHub Actions

From Manual Testing to Automated Excellence: GitHub Actions

55 Million Requests Per Second: Inside Cloudflare's Magic

55 Million Requests Per Second: Inside Cloudflare's Magic

How Uber Finds Nearby Drivers at 1 Million Requests per Second

How Uber Finds Nearby Drivers at 1 Million Requests per Second

From Panic to Performance: A Guide to Grafana k6 Load Testing

From Panic to Performance: A Guide to Grafana k6 Load Testing

Git Command Line Basics: Essential Commands for Software Developers

Git Command Line Basics: Essential Commands for Software Developers

How to Exclude a Single Module from `sbt test` in a Multi-Module Scala Project

How to Exclude a Single Module from `sbt test` in a Multi-Module Scala Project

Pairing matrix for agile teams

Pairing matrix for agile teams

How to integrate GraphQL with Sitecore using JSS

How to integrate GraphQL with Sitecore using JSS

Flutter under the hood

Flutter under the hood

Monitoring individual queue in sidekiq

Monitoring individual queue in sidekiq

Why aren’t you using binstubs yet?

Why aren’t you using binstubs yet?

My upcoming talk in DroidConUK

My upcoming talk in DroidConUK

Integrating Sherlock with android apps

Integrating Sherlock with android apps

Java custom annotations

Java custom annotations

Prevent push on red build with the help of gocd_pre_push

Prevent push on red build with the help of gocd_pre_push

Conway's Game Of Life

Conway's Game Of Life

Notify when android device network status changes

Notify when android device network status changes

Observer Design Pattern

Observer Design Pattern

Filter Design Pattern

Filter Design Pattern

Ruby gem to fetch information from gocd as rich models

Ruby gem to fetch information from gocd as rich models

Android Data Binding

Android Data Binding

Android Custom Animations

Android Custom Animations

shell_session_update: command not found

shell_session_update: command not found

Android Draggable View

Android Draggable View

Android UI Design And Styling

Android UI Design And Styling

GIT revert multiple commits

GIT revert multiple commits

apkToJava - Gem to convert apk file to java code

apkToJava - Gem to convert apk file to java code

Android Padding vs Margin

Android Padding vs Margin

Android UI for beginners

Android UI for beginners

Decorator Design Pattern

Decorator Design Pattern

Junit Rules Vs Setup and TearDown

Junit Rules Vs Setup and TearDown

Android Build Process

Android Build Process

What happens when android screen rotates?

What happens when android screen rotates?

Is ruby monkey patching evil?

Is ruby monkey patching evil?

Android Instrumentation Testing Using Espresso

Android Instrumentation Testing Using Espresso

Testing Android Database

Testing Android Database

MVP in android

MVP in android

Gradient color in android

Gradient color in android

Tool to execute commands in multiple directories

Tool to execute commands in multiple directories

Writing a new programming language

Writing a new programming language

Print custom messages after executing git commands

Print custom messages after executing git commands

Cool tips for vim users

Cool tips for vim users

Schedule local notification in android

Schedule local notification in android

Add album cover to mp3 file

Add album cover to mp3 file

MediaMagic: Convert any media file into encoded string or vice-versa

MediaMagic: Convert any media file into encoded string or vice-versa

Closure in Ruby

Closure in Ruby

Android with sqlite database

Android with sqlite database

Basic configuration of VIM

Basic configuration of VIM

nokogiri ERROR Failed to build gem native extension on MAC

nokogiri ERROR Failed to build gem native extension on MAC

Cucumber and calabash for android app testing

Cucumber and calabash for android app testing

Vim modes - normal, insert and visual

Vim modes - normal, insert and visual

Set up automation using cucumber and capybara

Set up automation using cucumber and capybara

Instrumentation testing of list view

Instrumentation testing of list view

  • RSS
  • Email me
  • GitHub
  • Twitter
  • LinkedIn
  • StackOverflow
  • Instagram
  • YouTube

Ajit Singh  •  2025  •  www.singhajit.com  •  PDF Tools Hub

Theme by beautiful-jekyll