Hi, I'm Stalin.

Software architect and product engineer. I design, architect and build products, and write about backend engineering, distributed systems, databases and AI.

Start here

The longer pieces, if you only read a few.

gray safety harness on focus photo
AI Engineering

The Harness Is the New Model: Why AI Agents Live or Die by Their Scaffolding

What an AI harness is, why it suddenly matters more than which model you pick, and seven habits for getting real work out of one.

9 min read
Street photograph by Stalin Pereira
Distributed Systems

Handling Duplicate Messages in Kafka Consumers

Kafka delivers at least once, and its exactly-once features stop at the edge of Kafka. Where duplicates come from, and how to build idempotent consumers with an inbox table, sane offset commits, and dead letter topics for poison pills.

8 min read
Street photograph by Stalin Pereira
Backend

Designing Idempotency Keys for Payment APIs

A lost response plus an automatic retry equals a double charge. How to design idempotency keys properly: client rules, a Postgres schema, atomic key claims, concurrent retries, crash recovery around external calls, and the edge cases.

9 min read
Street photograph by Stalin Pereira
Databases

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
Street photograph by Stalin Pereira
Backend

When to Choose gRPC Over REST: A Performance-First Approach

Where gRPC's speed actually comes from (HTTP/2, Protocol Buffers, streaming), what a typed contract buys you, and the costs tutorials skip: load balancing, debugging, browser support, and schema evolution. Ends with a clear guide on when to choose gRPC and when REST is better.

7 min read
A hand planting a seedling in sand
AI Engineering

Stop Paying for OpenAI: How to Self-Host an Enterprise-Grade RAG on Your Laptop with Ollama

Build a fully local RAG pipeline with Ollama, open embedding models, and Chroma: working Python for ingestion, retrieval, and a FastAPI service, plus the tuning, security, and cost trade-offs that decide whether self-hosting is right for you.

9 min read

Things I've built

Open-source tools I build and maintain.

All projects →
Observability

typesense-prometheus-exporter

Exposes Typesense search metrics and stats in Prometheus format, with ready-made Grafana dashboards.

  • Referenced in Typesense's official documentation
  • Per-collection metrics and server stats
  • One Docker container, configured with environment variables
311160.1k pullsv1.3.0Rust
Observability

moleculer-otel

OpenTelemetry tracing and metrics for the Moleculer microservices framework.

  • W3C trace context across services, events and streams
  • Spans record retries, cache hits, timeouts and circuit breakers
  • Works with any OTLP backend: Jaeger, Tempo, Honeycomb, SigNoz
npm v1.6.092/monthTypeScript
Developer tool

bullmq-control-dashboard

One dashboard for every BullMQ queue across many Redis servers, built on bull-board with a React UI.

  • Auto-discovers queues in each Redis connection
  • Group, rename and lock queues read-only
  • Multi-arch Docker image (amd64 + arm64)
1.7k pullsTypeScript
macOS app

zenn

A fast, native tiling window manager for macOS, inspired by i3, AeroSpace and yabai.

  • Lua configuration and event hooks
  • Virtual workspaces per monitor
  • IPC over a Unix socket, HTTP and a CLI; no SIP changes needed
Swift
CLI

process-port-check-tui

A terminal UI that lists every listening TCP port with the process behind it, and lets you kill it.

  • PID, executable path, working directory and full command line
  • Vim-style keys
  • Single binary for macOS and Linux
v1.0.0Rust
Linux app

nordvpn-gui

A desktop GUI for the NordVPN CLI on Linux: browse servers, connect, and watch the connection status.

  • Built with Tauri, Rust and Svelte
  • AppImage and .deb packages
61v1.0.0Svelte
Desktop app

auto-file-backup

Watches files and saves a backup copy every time one changes, with custom naming and locations.

  • Reviewed on Softpedia; distributed on SourceForge and CNET
v1.5C++

More on GitHub

Open-source contributions

Merged pull requests to other people's projects.

Stats synced on 16 November 2026. Everything else is on github.com/imatefx.