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

Which Design Doc Did a Human Write?

refactoringenglish.com · 25 Mar

Artificial Intelligence · Career · Software Architecture

Michael Lynch compared a manually written software design document with two AI-generated versions.

He analyzed reader feedback to identify indicators of human authorship, finding that personal anecdotes, unique technological choices, and structural nuance distinguished human work, while AI output was characterized by excessive bloat, generic best practices, and a lack of depth regarding complex project trade-offs.

Guideline: Rust Style

epage.github.io · 23 Mar

Programming Languages · Rust · Software Architecture

This guide provides best practices for structuring Rust projects, files, and functions.

It emphasizes writing code as technical communication for reviewers and future maintainers, prioritizing readability through consistent layout, clear abstractions, and logical grouping. Key recommendations include using specific module naming conventions, organizing imports and items by visibility, and separating business logic from side effects.

When perfection is table stakes

lukeplant.me.uk · 16 Mar

Productivity · Software Architecture · UX

Rewriting software requires maintaining 100% feature parity with the legacy system to avoid user frustration.

Users often ignore new features if core functionality regresses. A successful replacement is often one the user doesn’t notice, or one that offers significant, obvious improvements that justify the learning curve. Manage expectations and prioritize user empathy to handle inevitable negative initial feedback.

Some Data Should Be Code

borretti.me · 31 Jan

DevOps · Python · Software Architecture

The author explores the limitations of static data formats like Makefiles, CloudFormation YAML, and GitHub Actions, arguing that they often reach an 'abstraction ceiling' where manual rule creation becomes repetitive and difficult to maintain.

While Make uses pattern matching, it lacks the flexibility for complex tasks, leading developers to use external scripts to generate Makefiles. The article highlights solutions like 'doit' for builds and AWS CDK for infrastructure, which allow developers to use full programming languages to dynamically generate build graphs and resources. This approach provides native access to loops, conditionals, and type safety, moving away from poorly-designed domain-specific languages embedded in static data. The author advocates for platforms to embrace code-driven generation from the start to ensure scalability and developer productivity.

XMPP and metadata

blog.mathieui.net · 6 Jan

Cybersecurity · Software Architecture · Open Source

In this technical analysis of XMPP and metadata, the author explores the privacy implications of decentralized messaging protocols.

The summary highlights how metadata, often defined as 'data about data' like timestamps and sender-receiver identities, remains vulnerable in federated systems. The post details various threat vectors, including server-side compromises and network-level eavesdropping, particularly for small or single-user servers where traffic correlation is easier. It evaluates current XMPP architectural weaknesses such as cleartext rosters, bookmarks, and room participant lists. Comparative insights are provided on other protocols like Signal, Matrix, and SimpleX, emphasizing their different approaches to data retention and onion routing. The author concludes by suggesting potential remediations for XMPP, such as random padding, induced delivery delays to thwart stream correlation, and the adoption of Stanza Content Encryption for better end-to-end privacy.

An old-new take on argument parsing in Rust

jmmv.dev · 31 Jul

CLI · Rust · Software Architecture

The author introduces 'getoptsargs', a small, Unix-style framework for Rust that extends the classic 'getopts' crate.

It provides an end-to-end structure for consistent command-line application development—handling metadata, options, and positional arguments—to ensure tools feel native to Unix environments without the overhead or design choices of more popular alternatives like 'clap'.

OpenMW 0.51.0 Released

openmw.org · 19 Jun

Programming Languages · Software Architecture · Open Source

OpenMW has released version 0.51.0, updating its open-source game engine.

Key improvements include new scripting API features for creating magic effects, terrain vertex painting in the editor, and numerous engine fixes. The release enhances Lua scripting, addresses gamepad navigation, and resolves various graphical and stability issues to better support the Morrowind community.

End-to-end encrypted relays for OCapN

spritely.institute · 15 Oct

Cybersecurity · Encryption · Software Architecture

Goblins’ next release will include a federated, end-to-end encrypted relay for OCapN, solving connectivity across NATs without exposing messages to relay operators.

It composes the existing stateless, federated prelay with a Noise netlayer using the XK handshake, X25519, AES-GCM, and SHA256 for peer authentication and encrypted sessions. Spritely also built a Guile Noise library supporting Hoot and the Guile VM. Specifications, tests, and a Guix service are planned to enable broader implementations and deployment.

Reinventing issue tracking: Local-first and Git-native

blog.manganin.dev · 15 Sept

CLI · Git · Software Architecture

Manganin’s devlog explores storing issue data in Git without treating it like a relational database.

In-tree files caused branch and rebasing problems; special refs improved separation but harmed local ergonomics. The final design uses a hidden sister repository with transparent issue files, cloneable separately and navigable through familiar tools such as FZF and Neovim.

Guix: creating a package from a binary

aloysberger.com · 13 Jul

DevOps · Linux · Software Architecture

This guide explains how to package a pre-compiled binary for GNU Guix.

By creating a custom package record using the 'copy-build-system', users can easily install third-party software like Caddy when official sources are unavailable or overly complex to compile, ensuring reproducible and manageable software deployment within the Guix ecosystem.

Page weight matters

nh3.dev · 9 Jul

HTML · Performance · Software Architecture

Modern web pages have become unnecessarily bloated, prioritizing complex frameworks and excessive JavaScript over performance and user respect.

By returning to static HTML and CSS, developers can build faster, more accessible sites. Successful examples like McMaster-Carr demonstrate that performance-oriented, minimalist design improves user experience and business outcomes, proving that craftsmanship remains essential in the digital age.

nix-build in under 100 lines

fzakaria.com · 21 Jun

Go · Linux · Software Architecture

Farid Zakaria demystifies the Nix build process by reimplementing it in under 100 lines of Go.

He demonstrates that a derivation is simply a build plan, and 'realizing' it involves recursively building dependencies, setting a clean environment, and executing the builder to produce a specified /nix/store path, stripping away the perceived magic.

RFC 10008: The HTTP QUERY Method

blainsmith.com · 17 Jun

Go · REST API · Software Architecture

RFC 10008 introduces the HTTP QUERY method, solving a long-standing issue for APIs.

Unlike GET or POST, QUERY accepts a request body while remaining safe, idempotent, and cacheable. This enables native CDN and proxy caching for RPC-style operations, significantly improving performance and simplifying development for developers using Go and Rust.

De‐bloating Javascript

github.com · 17 May

JavaScript · Software Architecture · Open Source

The author critiques JavaScript for its bloated syntax and massive dependency chains.

To address these inefficiencies in the browser, they introduce LispE, a lightweight WASM-based Lisp interpreter. LispE provides over 450 built-in functions, simplifying development by replacing multiple external libraries while maintaining seamless interoperability with JavaScript via a compact, auditable binary.

SQL: Incorrect by Construction

chreke.com · 10 May

Database · Software Architecture · SQL

SQL and relational databases often suffer from concurrency bugs like atomicity issues, TOCTOU, and deadlocks.

While techniques like transactions and explicit locking solve these problems, they increase complexity. The author advocates for a database system that prioritizes correctness by default, inspired by Rust’s fearless concurrency model, to ensure safer data handling.

Rewriting a 20-year-old Python library

b-list.org · 23 Mar

Python · Software Architecture · Open Source

A developer discusses the extensive rewrite of the twenty-year-old Python Akismet library.

The update introduces async/await support, replaces the outdated class design with separate Sync and Async clients, adopts HTTPX for networking, and utilizes enums for better spam classification. The rewrite emphasizes improved testing, type hinting, and calendar versioning to ensure long-term maintainability and performance.

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.

Parse, Don’t Validate AKA Some C Safety Tips

lelanthran.com · 22 Feb

Cybersecurity · C · Software Architecture

This guide explains the 'Parse, Don't Validate' technique in C to enhance software security.

By converting untrusted input into opaque types at system boundaries, developers can leverage C's type safety to prevent logic errors, parameter swapping, and common vulnerabilities, ensuring that internal functions only process pre-verified, structured data.

Testing can be fun, actually

giacomocavalieri.me · 8 Feb

Rust · Software Architecture · Testing

The article explores snapshot testing as a highly effective yet underrated technique for improving the software testing experience.

Testing is often viewed as tedious and error-prone, particularly when maintaining verbose assertions. Snapshot testing addresses this by automatically managing expected values; instead of manual hard-coding, developers review and approve the output generated by their functions. The author highlights real-world applications including CLI help text, complex compiler data structures in Rust, and visual mathematical plots for animations. A key takeaway is the importance of 'intentional' snapshots—formatting output into human-readable strings to make verification intuitive. While powerful, the author advises using descriptive titles, keeping snapshots small, and avoiding over-application where simple unit tests suffice. Ultimately, snapshot testing is presented as a way to focus on writing code rather than managing fragile assertions.

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