Topic

Backend

Track backend development news across APIs, services, databases, infrastructure, reliability, and programming languages. Snapbyte.dev collects backend stories from developer communities and turns them into ranked summaries for focused catch-up.

What this topic tracks

  • API design and service architecture
  • Databases, queues, and storage systems
  • Backend languages and framework updates
  • Performance, reliability, and deployment
  • Production engineering case studies

Backend · 351 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Throwing Out The Phonebook

fly.io · 13 Nov

Backend · DevOps · Distributed Systems · Software Architecture

Fly.io rebuilt 6PN, its private network for Fly Machines, by replacing a fleet-wide synchronized routing phonebook with lazy lookups.

Previously, every host stored hundreds of thousands of migration records in an eBPF map, creating synchronization and observability problems. The new VXLAN-based path queries Corrosion’s local SQLite for unknown addresses, installs routes, and rechecks them after moves. Hosts now typically keep 100–200 routes, enabling simpler monitoring, fail-closed validation, and intentional rerouting, though a first connection can take about one extra second.

How we migrate TBs from Heroku without logical replication

planetscale.com · 11 Nov

Backend · Database · DevOps · PostgreSQL

PlanetScale built the open-source Heroku Migrator to move standard Heroku Postgres databases with minimal downtime despite lacking logical replication.

Using Bucardo trigger-based replication, it copies the schema and data, tracks changes, verifies consistency, and enables a controlled cutover. The latest version uses staged index rebuilding, connection keepalives, and txntime indexes to prevent restarts, network stalls, and replication backlogs, increasing copy speed from roughly 60 to 300 GB/h. It also supports Postgres 18 and pg_partman.

PrivacyLib: Privacy Controls at the Data Access Boundary

engineering.fb.com · 27 Oct

Authorization · Backend · Cybersecurity · Software Architecture

Meta built PrivacyLib, a common library embedded at data-access boundaries across hundreds of systems to enforce and observe privacy requirements.

Systems integrate once, while reusable modules such as Policy Zones, Privacy Probes, and Agent Observability handle checks, telemetry, and AI-agent context. PrivacyLib covers diverse access paths, performs billions of cached checks per second, and supports simulations and staged rollouts. For internal agents, propagated session context enables monitoring and blocking unauthorized runtime data access.

What was the turning point for Postgres?

planetscale.com · 27 Oct

Backend · Database · PostgreSQL · History

Postgres became today’s default through a sequence of moments rather than one decisive event, with Heroku’s 2011 decision to make hosted Postgres effortless arguably the pivotal catalyst.

Its open governance and extensibility ensured survival; JSONB preserved relevance against MongoDB, while MySQL’s Oracle acquisition weakened its momentum. Postgres overtook MySQL in Stack Overflow’s 2023 survey (45.6% vs. 41.1%) and reached 86% of 32,955 LLM database recommendations, reinforced by cloud availability and pgvector.

SBD: We Have a Filesystem at Home

fly.io · 22 Oct

Backend · DevOps · Software Architecture · Operating Systems

Fly.io replaced Sprites’ custom JuiceFS-based storage with the Sprites Block Device (SBD), presenting object storage to Linux as an NBD block device formatted with ext4.

JuiceFS used separate metadata, disk-image, and checkpoint databases, causing inconsistency and permanent checkpoint failures during 5,000-cycle tests on 400 Sprites. SBD stores metadata with blocks in one bucket, validates reads, snapshots whole volumes, and restores by rewinding versions, improving reliability; it becomes the default filesystem, with migration instructions for older Sprites.

Behind the Scenes: Evolving Netflix’s Ads Event Pipeline for Live — Part II

netflixtechblog.com · 14 Oct

Backend · Big Data · Distributed Systems · Software Architecture

Netflix rebuilt its Ads Event Publisher as a stateful Apache Flink streaming job to support spiky Live traffic, replacing synchronous Metadata Registry writes with a Kafka-based streaming join.

The job normalizes and reroutes events, matches client telemetry with serving responses within 60 minutes, deduplicates revenue events, and uses Spark recovery for delayed arrivals. Deterministic rollout and audits achieved over 99.99% agreement, removed the ad-serving critical-path dependency, retired legacy components, and processed hundreds of thousands of events per second during load tests.

What gets TOASTed in Postgres

planetscale.com · 12 Oct

Backend · Database · Performance · PostgreSQL

Postgres TOAST activates when a row exceeds 2,032 bytes: it compresses variable-length values or moves them into a `pg_toast` table in chunks.

A 2,001-character `text` value therefore compresses with LZ4 while 2,000 characters remain uncompressed. Postgres 19 makes LZ4 the default where supported. LZ4 is generally the best choice for speed, while pglz can produce smaller repetitive JSON and better preview reads; `EXTERNAL` suits already-compressed data and random byte-range access.

TIN v1.0.6: 2-3x faster, with support for stemming

planetscale.com · 8 Oct

Backend · Database · Performance · PostgreSQL

TIN v1.0.6 adds language-specific stemming for 18 languages, supports heap-attribute tiebreakers in ranked top-k queries, and improves top-k performance without changing the index format.

Benchmarks on 150 million Stack Exchange documents show TIN outperforming ParadeDB across conjunction, disjunction, phrase, and mixed queries: default scoring delivers 3.1–5.0x higher throughput and 2.7–4.4x lower p99 latency on x86-64. Existing indexes need no rebuild for the performance update; stemming requires rebuilding.

OpenAI: Migrating to HTTPX2

github.com · 28 Aug

Backend · OpenAI · Python

The OpenAI Python SDK now uses HTTPX2 by default, replacing legacy HTTPX and certifi.

Existing API behavior remains compatible, but custom clients, transports, authentication hooks, mocks, and response types must migrate to HTTPX2. Configure operating-system CA certificates or SSL_CERT_FILE/SSL_CERT_DIR for TLS. Legacy HTTPX remains a temporary, manually installed compatibility option.

Durable queues, streams, pub/sub, and a cron scheduler – inside your SQLite file

honker.dev · 30 Apr

Backend · Database · SQLite

honker is an SQLite extension providing Postgres-style LISTEN/NOTIFY, task queues, and event streams directly within the database file.

By utilizing PRAGMA data_version for efficient event notification, it offers ACID-compliant transactions without the need for external brokers like Redis, significantly reducing operational complexity for applications using SQLite as a primary datastore.

SQLite in Production: Optimizing WAL Mode, Concurrency, and VFS Layers

micrologics.org · 29 Jul

Backend · Database · Performance

SQLite is a high-performance, low-latency alternative to traditional production databases when properly configured.

By enabling WAL mode, optimizing memory-mapped I/O, managing concurrency with busy timeouts and immediate transactions, and utilizing custom VFS layers for durability, it can handle significant production workloads efficiently on modern infrastructure.

Erlang/OTP 29.0

erlang.org · 13 May

Backend · Cybersecurity · Programming Languages

Erlang/OTP 29.0 is a major release introducing native records, multi-valued comprehensions, and improved security defaults for SSH.

It adds unsafe function warnings, updates SSL with post-quantum algorithms, and includes new testing and terminal styling modules. Several language improvements, compiler optimizations, and deprecated construct warnings prepare the ecosystem for future versions.

Show HN: Stop paying for Dropbox/Google Drive, use your own S3 bucket instead

locker.dev · 7 Apr

AWS · Backend · Cloud Computing

Locker is a self-hosted file management platform designed for power users.

It offers storage provider flexibility, including AWS S3 and Cloudflare R2, integrated search for images and PDFs, a virtual Bash shell, and role-based team collaboration. Secure by default with OAuth, it provides programmatic API access while ensuring full data ownership and cost efficiency.

rivet-dev/rivet

github.com · 5 Nov

Backend · Distributed Systems · JavaScript · Software Architecture · AI Agents

Rivet is an open-source orchestrator for agentic and other stateful workloads, built around Rivet Actors: long-lived processes combining in-memory state, SQLite, WebSockets, scheduling, and hibernation.

Actors share node processes, delivering 4.99 ms p99 cold starts and 72 KB RAM each, while durable data is stored in S3, enabling scale to billions with low storage costs. The platform includes typed SDKs, workflows, sandbox integrations, fault tolerance, and self-hosted, cloud, or BYOC deployment without databases or message buses.

Instant 1.0, a backend for AI-coded apps

instantdb.com · 9 Apr

Backend · Distributed Systems · Software Architecture

Instant is an open-source, multi-tenant backend platform designed for AI-coded apps.

It provides a real-time sync engine with offline capabilities, built-in auth, and file storage. Its architecture uses a Triple store in Postgres, an InstaQL query language, and a Clojure-based backend to manage reactive queries efficiently through a unique multi-tenant infrastructure.

The 1MB Password: Crashing Backends via Hashing Exhaustion

instatunnel.my · 10 Jan

Backend · Cybersecurity · Performance

The article explores the '1MB Password' attack, a sophisticated Denial of Service (DoS) technique that exploits the resource-intensive nature of password hashing.

While modern algorithms like Argon2id and Scrypt are designed to be slow to prevent brute-force attacks, they become a vulnerability when an attacker submits an excessively large password payload, such as a 1MB string. This forces the CPU to spend significant time and memory processing a single request, potentially crashing the backend. The author compares how different algorithms like Bcrypt (which truncates input) and Argon2 (which does not) handle this threat. To mitigate this risk, developers are advised to implement strict maximum length validators (e.g., 128 characters), use pre-hashing techniques with SHA-256, and apply rate limiting and payload size restrictions at the edge.

Caddy compatibility for zeroserve: 3x throughput and 70% lower latency

su3.io · 14 Jun

Backend · Performance · Software Architecture

zeroserve is a high-performance HTTPS server that JIT-compiles Caddyfiles into eBPF and native machine code, running on an io_uring event loop.

Benchmarks show it significantly outperforms Caddy in throughput and latency while offering extensibility through custom eBPF plugins, such as handling AWS SigV4 authentication directly within the proxy configuration.

Show HN: Mason – A lightweight Postgres read-replica, built on columnar storage

masondata.ai · 24 Nov

Backend · Database · JavaScript · Performance · PostgreSQL

Mason is an open-source, lightweight Postgres read replica that syncs selected tables and columns into DuckDB’s columnar engine while preserving Postgres SQL behavior.

A single Node.js process supports on-demand, polling, or logical-replication sync and rewrites queries for analytical workloads. Benchmarks show up to 467× faster count queries and 50× faster joins, while primary-key lookups are 2.8–6× slower. Mason also provides RBAC, row-level security, generated tables, monitoring, and MCP support for AI agents.

Do we still have to denormalize? Have your schema and search it too

paradedb.com · 13 Nov

Backend · Database · Performance · PostgreSQL · Software Architecture

ParadeDB enables fast search joins over normalized Postgres schemas, removing much of the need to denormalize into Elasticsearch.

In a StackOverflow benchmark, its columnar indexes and DataFusion executor use Rank Join, selective late materialization, tuple tagging, and index co-partitioning. They reduce a natural three-table Top-K query from about 118,000 ms in vanilla Postgres to 100–600 ms, and a facet aggregate from 35.3 seconds to 422 ms, while retaining transactional consistency and standard SQL.

The new HTTP QUERY method explained

kreya.app · 17 Jun

Backend · REST API · Software Architecture

RFC 10008 introduces the HTTP QUERY method to handle complex read-only requests.

Unlike GET, which uses bulky query parameters, or POST, which lacks safe, idempotent semantics, QUERY allows request bodies for complicated queries. While promising, widespread adoption is limited, and GET remains preferred for shareable links and simple filtering.

Where it came fromHacker NewsPlanetScaleFly.ioEngineering at MetaNetflix TechBlogRedditBuild a backend digest that filters broad engineering feeds down to the service, database, and reliability topics you care about.Build your digest