Grokking the Model Context Protocol (MCP)
0% completed
State Without Sessions: Handles
Suppose an early Costbook server builds a trip report in 3 calls: start a draft, add an expense, and submit the draft. The server runs as 2 instances behind a load balancer, which sends each request to either instance with equal chance. Each instance keeps its drafts in its own memory.
The first call creates the draft on one instance. The second call reaches that same instance with a chance of 1 in 2, and so does the third. Both must succeed, so the whole sequence works with a chance of 1/2 times 1/2, which is 1 in 4. Three of every four attempts end with "no draft found".
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%