Synchronous replication
1. Application sends a write.
2. Primary saves the data.
3. Primary waits for replica confirmation.
4. Application receives success.
Advantages:
- Stronger durability guarantees.
- Lower risk of losing acknowledged writes.
Disadvantages:
- Higher write latency.
- If replicas are unavailable, writes may block.
4
Asynchronous replication
1. Application sends a write.
2. Primary saves the data.
3. Primary immediately responds success.
4. Replication happens afterward.
Advantages:
- Faster writes.
= Lower latency.
- Less dependency on replica availability.
Disadvantage:
- If the primary crashes before replication completes, recent writes can be lost.
1
32
Multi-leader replication :
Multiple databases can accept writes independently.
Example:
US users write to the US database.
Indian users write to the India database.
Changes replicate between both databases.
Advantages:
- Lower write latency across regions.
- Multiple regions can accept writes.
- Better regional availability.
Disadvantages:
- Conflicting writes can happen.
- Conflict resolution becomes complicated.
- Last-write-wins (LWW) can silently overwrite valid data.
1
1
57
The quality of an AI agent depends heavily on how its tools are designed.
A tool isn't just a function that an LLM calls. It's an interface the model must understand, select, invoke, and recover from when something goes wrong.
56
The Magic Library: Understanding Neural Networks
An important concept in AI, explained through a short story.
Once upon a time, in a small village, there lived a curious girl named Maya.
Maya loved identifying flowers. She could recognize roses, sunflowers, and tulips just by looking at them.
One day, her grandfather gave her a magical machine.
"This machine can learn to recognize flowers," he said. "But you must teach it first."
The learning begins
Maya showed the machine 100 pictures of flowers.
She told it which pictures contained roses.
She showed it pictures of sunflowers.
She also showed it pictures of tulips.
At first, the machine made many mistakes.
It called roses tulips and sunflowers roses!
But every time it made a mistake, Maya showed it the correct answer.
Slowly, the machine started recognizing patterns:
Roses often have layered petals.
Sunflowers have large central discs.
Tulips have distinctive cup-shaped flowers.
After seeing thousands of examples, the machine became very good at recognizing flowers.
The big discovery
Maya realized something amazing:
The machine wasn't simply memorizing every picture. It was learning patterns from examples.
Her grandfather smiled.
"That's the basic idea behind a Neural Network!"
Neural networks are AI systems loosely inspired by the human brain. They contain interconnected mathematical units that process information and learn patterns from data.
What did Maya actually learn?
Story element AI concept
Flower pictures -> Training data
Teaching correct answers -> Supervised learning
Machine's mistakes -> Prediction errors
Correcting mistakes -> Adjusting weights
Recognizing flowers -> Prediction
56
Indian CEO's after realizing they are not going to get "Honeytrapped", as they never invested in any R&D ...
50
The programmer who accidentally created Linux 🐧
In 1991, a 21-year-old Finnish computer science student named Linus Torvalds wanted to build a better operating system for his personal computer.
He wasn't trying to build something that would change the world.
He posted a message on an internet forum saying he was creating a free operating system as a hobby.
One of his famous lines was:
"I'm doing a (free) operating system (just a hobby, won't be big and professional like GNU)."
That little hobby became Linux.
Today, Linux powers:
Most of the world's supercomputers.
Much of the internet's server infrastructure.
Android devices.
Cloud platforms.
Countless development environments.
The lesson?
Sometimes the technology that changes the world starts as a side project by someone who has absolutely no idea how big it will become.
60
The person who introduced the modern AI vision (1950):
Alan Turing
In 1950, Turing published a famous research paper called Computing Machinery and Intelligence.
He asked a revolutionary question:
"Can machines think?"
He proposed an experiment called the Turing Test.
The idea was simple:
A human talks to another human and a computer through text.
The human doesn't know which one is the computer.
If the computer can communicate so convincingly that the person cannot reliably distinguish it from the human, it demonstrates human-like conversational intelligence.
This became one of the foundations of modern AI.
57
You must be hearing the term "Honeypot" frequently. Let me explain it.
Honeypot is a security decoy designed to attract suspicious activity.
Helps security teams detect and analyze attacks.
Can run as a container, virtual machine, or standalone service.
39










