Stalin Pereira

Stalin Pereira

Software architect and product engineer. Writes about backend engineering, distributed systems, databases and AI. Street photographer away from the keyboard.
11
Dec
Street photograph by Stalin Pereira

Debugging in the AI Era: AWS Q inside the IDE

The workflow shift from 'Alt-Tab to Browser' to 'Highlight Code -> Fix' within VS Code
1 min read
10
Dec
Street photograph by Stalin Pereira

Automating Database Migrations in GitHub Actions

Automating migrations safely within the pipeline
2 min read
10
Dec
Street photograph by Stalin Pereira

Collision Probability: Why 'Auto-Number' Feels Safe but Isn't

The math behind why CUIDs are safe enough for Google, and why Auto-Numbers create merge conflicts
2 min read
09
Dec
Street photograph by Stalin Pereira

Why Enterprise Devs Are Banned from Using ChatGPT

Discussing data privacy and IP leakage when pasting code into public LLMs vs using private instances like AWS Q
2 min read
08
Dec
Street photograph by Stalin Pereira

Time-Sortable IDs: The Hidden Power of ULIDs

How combining a timestamp with randomness (ULID/CUID) gives you sorting for free without a `created_at` index
2 min read
08
Dec
Street photograph by Stalin Pereira

Blue/Green Deployment Strategy on Kubernetes

Visual comparison of deployment strategies for safety
2 min read
06
Dec
Street photograph by Stalin Pereira

Amazon Q vs. ChatGPT: The Battle for 'Context'

Comparing ChatGPT's general knowledge vs. Amazon Q's ability to read your specific repository structure
2 min read
02
Dec
Street photograph by Stalin Pereira

The Distributed Nightmare of Auto-Numbers

Why auto-increment fails when you try to shard a database or merge data from multiple regions
1 min read
01
Dec
Street photograph by Stalin Pereira

Optimistic UI Requires Client-Side IDs (CUID)

Why you cannot implement instant UI updates if you have to wait for the Database to assign an ID
1 min read
30
Nov
Street photograph by Stalin Pereira

UUIDv4 is Killing Your Database Performance

Random UUIDv4 primary keys scatter inserts across your B-tree index, bloating it, thrashing the cache and inflating WAL. Here's how to measure the damage, and how UUIDv7 (RFC 9562, native in PostgreSQL 18) fixes it without giving up what made UUIDs useful.
8 min read