Posts

The Secret Life of AWS: The Idempotency Key (Amazon DynamoDB)

Image
  The Secret Life of AWS: The Idempotency Key (Amazon DynamoDB) How to protect your event-driven architecture from duplicate processing and retries #AWS   #DynamoDB   #Idempotency   #EventDriven Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 61 Timothy was staring at a severe customer support ticket. He looked up, his face pale, as Margaret walked into the studio. "A customer clicked 'Buy' exactly once," Timothy said, pointing at the billing dashboard. "But their credit card was charged twice. I checked the EventBridge logs. The checkout service correctly emitted a single  OrderPlaced  event. But for some reason, the downstream payment Lambda function executed twice." "Welcome to the reality of distributed systems," Margaret said, pulling up a chair. ...

The Secret Life of Azure: The Model Quantizer

Image
  The Secret Life of Azure: The Model Quantizer Fitting a massive brain into a tiny footprint #AzureAI   #Quantization   #VRAM   #ModelCompression Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 33 Timothy was staring at a "CUDA Out of Memory" error on his monitor. He had three specialized  Phi-3  students ready to go, but the GPU was full. "Margaret," Timothy said, "I’ve shrunk the intelligence, but I haven't shrunk the  size . Each of these models is like a heavy leather-bound book. They’re brilliant, but they’re too thick for the shelf. If I want to run a whole team of specialists, I need them to be thinner. Do I have to sacrifice their vocabulary just to save space?" Margaret picked up a teal marker and drew a long, complex decimal number:  0.857234...

The Secret Life of AWS: Event-Driven Architecture (Amazon EventBridge)

Image
  The Secret Life of AWS: Event-Driven Architecture (Amazon EventBridge) (Part 60 of The Secret Life of AWS) How to decouple your microservices and scale seamlessly using an event bus #AWS   #EventBridge   #CloudArchitecture   #Serverless Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 60 Timothy was reviewing the X-Ray trace map for his newly released checkout feature. The business logic was working flawlessly thanks to the AppConfig feature flag, but the performance metrics were alarming. "The checkout microservice is taking almost four seconds to execute," Timothy explained to Margaret, pointing at the latency graph. "When a customer clicks 'Buy', the Lambda function charges the credit card. Then, it makes a synchronous API call to the Inventory Service to reserve t...

The Secret Life of Claude Code: Why Small Tasks Are the Key to Working with AI

Image
  The Secret Life of Claude Code: Why Small Tasks Are the Key to Working with AI How to break down complex work so Claude Code helps you build it right, piece by piece #ClaudeCode   #CodingWithAI   #SoftwareEngineering   #SmallTasks Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 10 The rain had been falling since midmorning, and by evening it had settled into the kind of steady, unhurried rhythm. It made the library feel like the only solid place in the city. Timothy arrived shaking water from his coat, his notebook already open in his hand, a page flagged with a folded corner. Margaret was at her usual table, a fresh pot of tea steaming beside her. She glanced at the flagged page as he sat down. "You came with something specific," she said. "I came with a disaster," he ...

The Secret Life of JavaScript: Parallel Processing with Web Workers

Image
The Secret Life of JavaScript: Parallel Processing with Web Workers How to stop freezing your UI when parsing massive JSON #JavaScript   #Coding   #Frontend   #WebDev Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 26 The Freeze Timothy watched the sleek CSS loading spinner twirl smoothly on his dashboard. It was a perfect sixty frames per second. But the moment the network request for the historical analytics data completed, the spinner violently froze mid-rotation. The entire browser tab locked up. For three agonizing seconds, Timothy couldn't scroll, couldn't click, and couldn't even highlight text. Then, just as suddenly, the data populated the grid and the UI snapped back to life. "I don't understand," Timothy muttered, aggressively clicking the refresh button ...

The Secret Life of Python: deepcopy

Image
  The Secret Life of Python: deepcopy Taking control of Python's  __deepcopy__ #Python   #Coding   #Programming   #SoftwareDevelopment Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 27 Timothy was looking at a new class he had built for the Chess Club—a  TournamentSession  object. It was a complex piece of data that tracked the start time of a match and a unique "Session ID." "Margaret," Timothy said, "I'm using  deepcopy  to create a backup of a match in progress. It works perfectly now, but I have a weird problem. The 'copy' has the exact same  start_time  and  session_id  as the original. If I'm making a new version of the match, shouldn't it have its own unique ID and a new timestamp?" Margaret smiled. "You've discovered th...