Backend & databases
23 posts on Backend & databases: APIs, Postgres, caching, queues and backend architecture. Practical guides by Derar Sattouf.

ISO 8601 to Unix Timestamp in JavaScript, Python, SQL and the Shell
One-line conversions between ISO 8601 strings and Unix timestamps in JavaScript, Python, PostgreSQL, MySQL, SQLite, the shell and five other languages, and the mistakes that shift results by hours or by a factor of 1,000.

FastAPI vs Ruby on Rails in 2026: Which to Pick for an API
FastAPI and Rails 8.1 compared for building an API, with the same endpoint in each: async and speed, Pydantic vs Active Record, OpenAPI docs, jobs, auth, testing and deployment.

Laravel vs Ruby on Rails in 2026: Performance, Scaling and Hiring
Laravel 13 and Rails 8.1 compared with the same feature built in each: performance, scaling, Eloquent vs Active Record, jobs, auth, testing, packages and hiring.

Multi-Tenant SaaS with PostgreSQL: Row-Level Security and Schemas
Multi-tenant PostgreSQL: shared schema vs schema vs database per tenant, RLS policies, pooling-safe context, migrations, isolation tests, and ORM integration.

Message Brokers Compared: Kafka vs RabbitMQ vs SQS/SNS vs NATS vs Redis Streams
Pick the right broker: queue vs log vs pub/sub, delivery guarantees, ordering, code for each with retries and DLQ, monitoring, cost, and migration notes.

REST vs GraphQL vs gRPC vs tRPC: Choosing an API Style in 2026
Choose between REST, GraphQL, gRPC and tRPC with a decision framework, the same feature built four ways, and notes on caching, auth, versioning and agents.

Replacing Laravel with Rust: A Practical Migration Guide for 2026
When to replace Laravel with Rust and how: decision framework, concept map, an orders example in Axum and SQLx, strangler-fig migration, auth parity and ops.

Node.js vs Bun vs Deno in 2026: Choosing a JavaScript Runtime for Servers
Node.js, Bun and Deno compared for servers: compatibility, performance, security, tooling, deployment and migration.

Rate Limiting, Idempotency Keys, Pagination and Error Contracts for APIs
Rate limiting algorithms, idempotency keys, cursor pagination, RFC 9457 errors, versioning and conventions that suit both developers and AI agents.

Durable Execution for Workflows and Long-Running AI Agents
Durable execution with Temporal and Restate: determinism, activities, retries, signals, sagas and reliable long-running AI agent loops.

Event-Driven Architecture: Outbox, Idempotency and Retries
How to build reliable event-driven systems: the transactional outbox, idempotent consumers, ordering, retries, DLQs, and schema evolution.

Caching Strategies with Redis and Valkey in 2026
Caching with Redis or Valkey: cache-aside, TTLs, invalidation, stampede protection, locks and operations.