Topic

Software Architecture

Discover software architecture discussions covering design patterns, system design, and architectural decisions. Our digest consolidates microservices, monolith patterns, and domain modeling from developer communities.

What this topic tracks

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

Software Architecture · 1,135 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

The design of littlefs

github.com · 18 Jun

C · Low-Level Programming · Software Architecture

littlefs is a file system designed for 32-bit microcontrollers, prioritizing power-loss resilience, wear leveling for SPI NOR flash, and bounded RAM/ROM usage.

It combines logging and Copy-on-Write techniques to achieve efficiency and atomicity, using CTZ skip-lists for data storage and metadata pairs for updates, ensuring reliability on memory-constrained devices.

anubhavmalhotra/r2d2-tv

github.com · 23 Oct

Software Architecture

R2D2 provides a local Home screen, private remote browser, and push-to-talk voice assistant for webOS TVs.

An aarch64 Linux host runs sandboxed Chromium, media transport, and local speech/intent models, while the TV displays streamed content, handles remote input, and captures voice. It includes pinned content-protection rules, offline tests, and firmware-specific integration tools. The reference deployment works on one TV/firmware; TV components run as root and may require risky, unsupported system-service patches.

Writing a Guix service from scratch, as a beginner

aloysberger.com · 13 Sept

DevOps · Linux · Software Architecture

A beginner’s guide to creating a custom Guix service for Caddy, a reverse proxy.

It demonstrates declarative account creation, configuration deployment through activation, G-expressions, privileged ports, and Shepherd daemon management. The article explains Guix’s composable service-extension architecture and provides a complete working implementation, while noting opportunities for future refinement and upstream contribution.

README, not

blog.yossarian.net · 16 Jul

Large Language Models · Productivity · Software Architecture

The author proposes a 'READMENOT' file convention to transparently identify machine-generated or low-quality code, referred to as 'slop.'

This marker warns humans that the project is not intended for direct reading, enabling informed choices before investing time into analyzing code developed without direct human supervision or understanding.

But what about K?

tony-zorman.com · 7 Apr

C · Programming Languages · Software Architecture

The article explores the source code of ksimple, a compact K programming language interpreter.

It analyzes the C implementation, focusing on memory layout, reference counting, and the pervasive use of macros. The author highlights how the code, fitting on a single screen, uses a unique, compact design to handle array processing, verbs, and REPL functionality.

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.

Two Kinds of SQL Query Builders

mechanicalrabbit.github.io · 29 Sept

Database · Programming Languages · Software Architecture

The article distinguishes data-oriented and syntax-oriented SQL query builders.

Syntax-oriented tools incrementally populate a SQL syntax tree, making them easy to implement and order-insensitive but constrained by SQL’s rigid grammar. Data-oriented tools model data-processing pipelines; FunSQL combines this flexibility with comprehensive SQL coverage, supporting complex features such as recursive queries, lateral joins, and window functions.

If I release it, you won’t get the same experience I get

notes.highlysuspect.agency · 26 Aug

Java · Software Architecture · Testing

While refactoring Minecraft mod build tooling, the author created jardiff, a semantic comparison tool that normalizes JSON, disassembles class files, recursively inspects archives, and applies Myers diff.

Keeping its source in the editor enables immediate, domain-specific customization—such as ignoring class-version changes—without anticipating configuration flags or DSLs. Packaging it as a binary would freeze that flexibility.

SQLite for Everything

joecode.com · 19 Aug

Database · Software Architecture · SQL

The article argues that SQLite can replace many specialized systems—search engines, document stores, queues, caches, vector databases, time-series platforms, file storage, graph databases, and microservices—for workloads limited to one writer and one machine.

Its stability, portability, transactional consistency, low operational overhead, and performance make simplicity a powerful default, though PostgreSQL or specialized systems remain necessary at larger scales.

The (Petty) Reason We Didn't End Up Using jj

blog.gradle.org · 6 Jul

Git · Productivity · Software Architecture

The team attempted to adopt the Jujutsu (jj) version control system but reverted to Git.

The blocker was jj's lack of support for .gitattributes, causing phantom file changes in Gradle projects due to inconsistent line endings in gradlew.bat. Until proper EOL support is implemented, they are sticking with git worktree for managing parallel workflows.

How we used Quint to find over 10 bugs in SQLite while hardening Turso

turso.tech · 18 May

Software Architecture · SQLite · Testing

Turso continues to push reliability by integrating formal methods with Quint.

By modeling the SQLite C API, they successfully uncovered over 10 bugs in SQLite itself. This approach complements their existing deterministic simulation testing, proving that even highly mature software like SQLite can benefit from advanced formal verification techniques to ensure robustness.

Debloat your async Rust

tweedegolf.nl · 13 Apr

Performance · Rust · Software Architecture

Async Rust simplifies concurrent programming but can lead to significant resource overhead known as 'async bloat.'

This occurs when complex state machines are generated unnecessarily. Developers can minimize this by avoiding unnecessary async functions, using manual future implementations for pass-through logic, restructuring code to consolidate await points, and passing references instead of moving large variables.

Packaging 128 languages with Nix

invariant.club · 2 Apr

Linux · Software Architecture · Open Source

The author successfully used Nix to package the famous 'quine-relay,' a project executing 128 programming languages in a cycle.

Despite initial challenges with reproducing the original Docker-based build, Nix provided a reproducible, declarative solution. This experience highlights the power of Nix for complex dependency management, patching, and the benefits of open-source software for long-term maintainability.

A Guide to vim.pack (Neovim built-in plugin manager)

echasnovski.com · 13 Mar

Git · Software Architecture · Open Source

Neovim 0.12 introduces vim.pack, a built-in Lua-based plugin manager.

This guide explains how to manage external Git repositories using vim.pack.add(), update them via vim.pack.update(), and utilize lockfiles for state synchronization. It also provides strategies for lazy loading, migration from other managers like lazy.nvim, and establishing automated plugin hooks using autocommands.

If It Quacks Like a Package Manager

nesbitt.io · 8 Mar

Cybersecurity · DevOps · Software Architecture

Tools like GitHub Actions, Ansible, and Terraform have evolved into functional package managers by adopting transitive dependency trees.

However, many lack essential security features like lockfiles, integrity verification, and constraint solvers. This gap creates significant supply chain risks, as seen in recent malicious attacks exploiting mutable tags and unpinned dependencies across these automation ecosystems.

SPA vs. Hypermedia: Real-World Performance Under Load

zweiundeins.gmbh · 6 Mar

Productivity · Software Architecture · Business

This analysis discusses the economic advantages of architectural simplicity.

Deep dependency trees and complex frameworks increase cognitive load, development costs, and maintenance risks. By adopting server-authoritative architectures with fewer dependencies, teams improve velocity, reduce hosting expenses, and ensure long-term stability while delivering better user performance on lower hardware specifications.

One page of async Rust

dotat.at · 16 Feb

Programming Languages · Rust · Software Architecture

The author explores Rust's lower-level async mechanics by building a minimal virtual-time simulation.

By bypassing high-level crates, they demonstrate how to implement a custom Task wrapper, use Pin for self-referential futures, and leverage RawWaker to communicate commands like fake sleep to an executor loop, resulting in a lightweight, boilerplate-free state machine.

Workledger - An offline first engineering notebook

about.workledger.org · 12 Feb

Generative AI · Productivity · Software Architecture

A local-first engineering notebook designed for privacy-conscious developers.

It features time-stamped entries, BlockNote integration, and Excalidraw diagrams, all stored in IndexedDB. Key features include full-text search, bidirectional linking, and AI-powered thinking frameworks via Ollama or Hugging Face, ensuring data remains secure and portable without cloud synchronization.

My experience with vibe coding

haskellforall.com · 2 Feb

Artificial Intelligence · Linux · Software Architecture

The author explores the limitations of 'vibe coding'—a term for relying on AI-generated code snippets and high-level prompts—by attempting to solve a Nix build failure using Claude Code.

Despite being pro-AI, the author finds the tool's output to be poor software engineering. Claude's initial solution included hardcoded Nix store paths and fragile hacks that undermined reproducibility and maintainability. While the AI successfully identified a path error, its implementation was brittle compared to idiomatic Nix practices. The author argues that vibe coding often misses the mark for professional engineering, as it produces 'throwaway code' that fails under expert scrutiny or fails to scale. The session ultimately ended when the tool reached its token limit without producing a valid, sustainable fix, highlighting that AI currently struggles with the complex logical dependencies and best practices required in non-trivial software development.

Where it came fromLobstersHacker NewsCreate a Snapbyte.dev digest and choose Software Architecture as one of your topics.Build your digest