Topic

Distributed Systems

Distributed systems discussions covering consensus algorithms, CAP theorem, fault tolerance, and architectural patterns from developer communities.

What this topic tracks

  • Language and framework updates
  • API, architecture, and deployment patterns
  • Performance, reliability, and production lessons

Distributed Systems · 260 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

Quality IMAP, Part 2: Mailbox Concurrency

aerogramme.deuxfleurs.fr · 23 Nov

Backend · Distributed Systems · Software Architecture

Aerogramme improved IMAP mailbox concurrency correctness across client connections and distributed nodes.

Testing concurrent email additions exposed synchronization bugs, prompting a mailbox interface with connection-local state, explicit `sync`, and sequential `get`/`push_op` semantics. Because Garage lacks locks and transactions, Aerogramme relies on a convergent operation log. Garage K2V was also extended with monotonic reads, beyond read-after-write consistency, preventing values such as `UIDVALIDITY` from appearing to move backward across nodes; these changes shipped in Aerogramme 0.4 and Garage 2.4.0.

Why false sharing alignment should be 128 bytes on x64

monoid.github.io · 7 Jul

Distributed Systems · Performance · Computer Science

False sharing occurs when independent variables reside on the same cache line, causing CPUs to repeatedly fight for cache coherence.

This degrades performance significantly. Aligning data structures to cache line boundaries—often 64 or 128 bytes—mitigates this, though effectiveness varies across architectures like Skylake, Ice Lake, and Apple Silicon, highlighting the complexity of modern cache behavior.

What Functional Programmers Get Wrong About Systems

iankduncan.com · 9 Feb

Backend · Distributed Systems · Software Architecture

In this insightful piece, the author discusses how functional programming (FP) practitioners often mistake the correctness of a single program for the correctness of an entire system.

While FP provides powerful tools like static types and algebraic data types to ensure a program is well-behaved internally, these tools often fail at the boundaries of distributed systems. In production environments—which include monoliths with multiple servers or external integrations—multiple versions of code often run simultaneously. This asynchronous reality means that a program might interact with data or services from past or future versions that its local type system cannot see. This concept, known as the 'version problem,' is especially prevalent in message queues like Kafka and event-sourced architectures where historical data must be interpretable by modern code forever. The article argues that the true unit of correctness is the set of active deployments rather than any single artifact. To address this, developers should look toward schema registries, database migration linters, and version-aware infrastructure like service meshes to verify compatibility across the entire system ensemble before deploying.

Cancelation Terminology

matklad.github.io · 31 Aug

Distributed Systems · Software Architecture · Operating Systems

The article distinguishes three often-confused concepts: synchronous cancelation unwinds control flow and performs cleanup; asynchronous cancelation is a protocol where work acknowledges a cancellation request before releasing resources; graceful shutdown is an application-level pattern that stops new connections while serving existing ones.

TigerBeetle examples show why separating these concepts simplifies concurrent and crash-only systems.

Willow - Protocols for an uncertain future

fosdem.org · 8 Feb

Distributed Systems · Ethics · Open Source

The presentation by the worm-blossom collective introduces Willow, a family of publicly-funded, open source peer-to-peer protocols designed for an uncertain future.

Focusing on the local-first movement, sync engines, and CRDTs, the session explores how both centralized and decentralized systems have historically been weaponized or exploited. The talk emphasizes a proactive approach to protocol design, selecting specific architectural paths to prevent future abuse. By learning from past technological failures, Willow aims to provide a more resilient and ethical framework for data synchronization and peer-to-peer communication that remains difficult to turn against its users.

Rebuilding my home network with VLANs and 10Gbps

clintonboys.com · 6 Feb

Cybersecurity · Distributed Systems · Hardware

The author outlines a comprehensive redesign of their home network, moving from a standard ISP-provided setup to a robust, custom architecture.

Key objectives included implementing a custom OPNsense router, supporting 10Gbps speeds for future-proofing, and utilizing VLANs for enhanced security through a 'router on a stick' topology. The post details the transition to managed switches from Zyxel and MikroTik to enable frame tagging (802.1Q) and specialized network segments like IoT, Guest LAN, and DMZs. Critical lessons learned focus on avoiding configuration lockouts by maintaining dedicated management paths and careful planning using trunk links to carry multiple virtual networks over single physical cables.

Video Conferencing with Postgres

planetscale.com · 9 Mar

Database · Distributed Systems · PostgreSQL

Developer Nick Van Wiggeren demonstrated a proof-of-concept video conferencing system using PostgreSQL.

The project utilizes a SvelteKit frontend and a Node.js relay to store JPEG frames and PCM audio as binary data. By leveraging PostgreSQL logical replication, the system achieves real-time bidirectional 15fps video streaming without traditional polling or WebRTC.

An Interactive Intro to CRDTs

jakelazaroff.com · 3 Mar

Distributed Systems · Software Architecture · TypeScript

This interactive guide explains Conflict-free Replicated Data Types (CRDTs), specifically focusing on state-based implementations.

It introduces the LWWRegister and LWWMap using TypeScript, demonstrating how these structures ensure eventual convergence across distributed peers without a central server. The post includes code implementation and explores concepts like tombstones and logical clocks.

Webmentions with batteries included

blog.fabiomanganiello.com · 11 Feb

Distributed Systems · Python · Open Source

A new Python library facilitates the integration of Webmentions, a decentralized alternative to traditional commenting and federation systems like ActivityPub.

It supports FastAPI and Flask, handles automated storage, and manages incoming/outgoing mentions. By utilizing Microformats, it enables peer-to-peer sharing of semantic content without third-party services or complex infrastructure.

How I built Fluxer, a Discord-like chat app

blog.fluxer.app · 10 Feb

Distributed Systems · TypeScript · Open Source

Hampus Kraft, a Swedish software developer, has launched Fluxer, a free and open-source community chat platform (AGPLv3) aimed at providing a transparent, self-hostable alternative to Discord and Slack.

Built with TypeScript, Erlang/OTP, and Cassandra, it offers feature parity and familiar UX, focusing on privacy and community-driven development for technical users and independent organizations.

A Nix store is three functions

fzakaria.com · 11 Sept

CLI · Distributed Systems · Software Architecture

Nix binary caches require only three requests: nix-cache-info, narinfo metadata, and a compressed archive.

Because signatures validate store contents—not transport URLs—archives can be hosted on GitHub Pages, Releases, npm, Git, DNS, OCI registries, or other media. The article demonstrates publishing a complete Nix closure to npm, enabling reproducible distribution with channel-like version tags, despite duplication costs.

Radicle 1.7.0 – Daffodil

radicle.xyz · 18 Mar

Cybersecurity · Distributed Systems · Git

Radicle 1.7.0, code-named Daffodil, is a major peer-to-peer code collaboration release.

It includes critical security fixes, improved Signed References, enhanced connection-level node blocking, and broader Git reference support. This update improves SQLite I/O efficiency, resolves Windows-specific process management issues, and deprecates the 'rad fork' command in favor of standard Git push workflows.

fast-servers: an interesting pattern

geocar.sdf1.org · 28 Feb

Backend · Distributed Systems · Software Architecture

The article proposes a high-performance network-server design using epoll and kqueue instead of traditional wrappers.

By pinning worker threads to CPU cores and utilizing processor affinity, developers can achieve 100k requests/second. The approach focuses on managing file descriptors efficiently, reducing state transitions, and leveraging kernel-level scheduling for optimal concurrency and simplified software architecture.

TLA+ By Example

tlabyexample.com · 24 Feb

Distributed Systems · Testing · Computer Science

An introductory guide to TLA+, covering syntax, data structures, and model checking.

It features a practical tutorial for modeling a Bounded BlockingQueue involving producers and consumers, based on the BlockingQueue specification. This educational resource provides a hands-on approach to formal methods and system verification.

Prefer If Statements To Polymorphism

htmx.org · 21 Feb

Design Patterns · Distributed Systems · Software Architecture

Grug-oriented programming advocates for radical simplicity by favoring if statements over polymorphism, minimizing abstractions, and preferring longer methods for local clarity.

It emphasizes 'macroservices' to reduce deployment complexity, suggests an 'abstraction budget' for developers, and promotes copy-paste development over elaborate object models to maintain a maintainable, straightforward codebase.

The Next Version of Curling IO

curling.io · 12 Feb

Backend · Distributed Systems · Software Architecture

Curling IO is rebuilding its infrastructure using the Gleam programming language on the BEAM VM and switching to SQLite.

This upgrade aims for 20+ years of sustainability, focusing on AI agent APIs, high concurrency for peak registration, and type safety to ensure long-term reliability and easier developer onboarding while maintaining a seamless user experience.

The IndieWeb and Small web

christiano.dev · 25 Jan

Distributed Systems · Open Source

The IndieWeb and Small Web movements represent a growing shift away from centralized digital platforms toward personal ownership of online content.

The IndieWeb focuses on the technical standards and infrastructure necessary for users to own their domains and data through protocols like POSSE. Conversely, the Small Web is a philosophical movement emphasizing personal expression, non-commercial digital gardens, and authentic human connections over SEO and corporate metrics. While distinct, both movements share a common goal of reclaiming the internet from algorithmic feeds and data harvesting, fostering a more private and human-centric web experience.

Sneakernet

sneakernet.eu · 23 Nov

Distributed Systems

Sneakernet is a work-in-progress system for securely sending digital messages without the Internet.

Messages automatically move among Sneakernet users on a local network, then travel physically with users to recipients on another network or onward carriers. All messages are authenticated; private messages are encrypted, preventing tampering and unauthorized reading. Its general-purpose messaging supports high-latency, out-of-order applications such as sneakermail, with more apps possible. The documentation may not match the current implementation.

Where it came fromLobstersCreate a Snapbyte.dev digest and choose Distributed Systems as one of your topics.Build your digest