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

What async promised and what it delivered

causality.blog · 22 Apr

Artificial Intelligence · Distributed Systems · Software Architecture

The evolution of asynchronous programming—from callbacks to promises to async/await—has effectively solved the C10K problem of resource exhaustion.

However, each successive solution has introduced new architectural complexities, most notably function coloring, ecosystem fragmentation, and disguised sequential traps. While ergonomics have improved locally for developers, the structural tax on overall system maintainability and concurrency management has grown significantly.

Rescuing old printers with an in-browser Linux VM bridged to WebUSB over USB/IP

printervention.app · 7 Apr

JavaScript · Linux · Software Architecture

George MacKerron created 'printervention.app,' a web-based tool that revives obsolete photo printers by emulating Linux in the browser.

Using v86 for x86 emulation, WebUSB for device connectivity, and a USB/IP bridge, the app enables modern systems to communicate with older hardware, allowing users to print directly from web browsers without installing native drivers.

Dune3d: A parametric 3D CAD application

github.com · 22 Mar

C++ · Software Architecture · Open Source

Dune 3D is a new open-source parametric 3D CAD application designed to address limitations in existing software like FreeCAD and Solvespace.

By leveraging the Open CASCADE geometry kernel and Solvespace's solver, it aims to provide a superior user experience for 3D-printing projects, specifically focusing on workflow efficiency and advanced geometry handling like fillets and chamfers.

Sandwich Bill of Materials

nesbitt.io · 8 Feb

Software Architecture · News · Open Source

The SBOM 1.0 (Sandwich Bill of Materials) is a satirical technical specification applying software supply chain principles to food.

It introduces machine-readable JSON manifests, ‘surl’ identifiers, and dependency resolution for sandwich ingredients. The draft addresses vulnerability scanning (CVEs), licensing (e.g., General Pickle License), and provenance to ensure reproducible, secure, and compliant lunch construction.

Carl's Required Reading

carlkolon.com · 1 Aug

Database · Programming Languages · Software Architecture

Carl provides a curated list of essential technical readings for software engineers.

The collection focuses on software design, coding practices, frontend architecture, and database management. The resources emphasize simplicity, avoiding unnecessary abstraction, and making informed decisions to ensure robust, performant, and maintainable software systems.

Th0rgal/satmux

github.com · 29 Nov

CLI · Performance · Python · Software Architecture

satmux is a zero-dependency Python 3 TCP multiplexer and HTTP/TLS relay for high-latency GEO inflight Wi-Fi.

It maintains 12 warm non-443 TCP carriers using BBR and zlib, bypasses cabin DNS and :443 middleboxes, and performs local 0-RTT stream opening plus 1-RTT ground-side DNS, TLS, redirects, and fetching. It preserves end-to-end TLS, supports SOCKS5, HTTP CONNECT, git, and gh, and reduced a measured six-origin burst from 19.13s with failures to 5.35s without failures.

GIMP Development Update

gimp.org · 16 Aug

Performance · Software Architecture · UI

GIMP reports progress toward 3.3.2 and future GIMP 3.4, highlighting a new zipped XML project format alongside continued XCF loading, Spectral Blending, expanded non-destructive editing, stronger PSD metadata and Descriptor support, native file choosers, UI and performance improvements, and bug/security fixes.

3.3.2 is not released yet; nightly builds are available, while 3.2.6 is planned.

GitHub Actions is the weakest link

nesbitt.io · 28 Apr

CI/CD · Cybersecurity · Software Architecture

GitHub Actions features like pull_request_target and mutable tag dependencies facilitate supply chain attacks, enabling credential theft and malicious code injection.

Despite documented risks, permissive platform defaults remain. Maintainers should utilize tools like zizmor, pin SHA dependencies, and define strict permissions to mitigate these threats while awaiting stronger, secure-by-default platform policy changes.

Why you shouldn't do application-level sharding

planetscale.com · 23 Nov

Backend · Database · Distributed Systems · Software Architecture

Application-level sharding turns database routing into a long-term application responsibility rather than a simple scaling change.

As a marketplace grows, resharding risks lost writes; missing shard keys require fan-out, IDs, or lookup tables; hot customers need exceptions; cross-shard transactions require sagas or two-phase commit; and schema changes, failover, and connection pools multiply operational work. A sharding layer such as Vitess or Neki handles routing and operations, though applications still own cross-shard atomic writes and shard-key choices.

Cuttlefish on Mac: Running Android’s Virtual Device Framework Natively on Apple Silicon

engineering.fb.com · 13 Nov

Android · macOS · Software Architecture · Testing

Meta’s Reality Labs ported Android’s Cuttlefish virtual-device framework to run natively on Apple silicon Macs, replacing a fragmented Goldfish/Cuttlefish workflow.

The team revived QEMU integration, made vhost-user portable to macOS, expanded QEMU’s HVF memory-region tracking, added Cocoa display interaction, and implemented arm64 build, signing, and notarization support. The unified high-fidelity platform supports Bluetooth, Wi‑Fi, cellular, 3D graphics, OTA updates, Fastboot, and snapshots, and is shared through public QEMU and Cuttlefish patches.

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.

Cyber Chaos Monkey: Staying ahead of security threats with AI agents

shopify.engineering · 12 Nov

Artificial Intelligence · Cybersecurity · Software Architecture · AI Agents

Shopify built Cyber Chaos Monkey (CCM), an AI-agent system that attacks its live production infrastructure with ephemeral test credentials to find vulnerabilities before adversaries.

Using source code, threat intelligence, reports, and deployment data, its Discovery component identifies leads and Sandbox agents test them through live requests and iterative exploitation. Tens of thousands of engagements have produced dozens of impactful findings without outages or incidents. Container isolation, credential and egress proxies, strict Rules of Engagement, and a separately aligned judge agent terminate unsafe runs.

Intelligent Delivery: Making Every Unit of Compute Serve Better Ads

engineering.fb.com · 11 Nov

Artificial Intelligence · Machine Learning · Performance · Software Architecture

Meta’s Intelligent Delivery uses ML and increasingly agentic AI to allocate scarce compute across ad requests, ranking stages, regions, hardware, and hosts for global serving efficiency.

Its 6B-sparse-parameter Resource Core Model predicts each request’s outcome, compute use, and latency impact, while hierarchical controllers optimize placement and per-request work under capacity and tail-latency constraints. The system has added ~10% ranking performance since 2017; agents contributed to ~20% of optimizations in H1 2026 and shorten iteration from months to weeks.

How we rebuilt the Shopify app in 12 weeks

shopify.engineering · 10 Nov

Artificial Intelligence · Mobile · Software Architecture · AI Agents

Shopify rebuilt its 300-plus-screen mobile app from React Native to native Swift and Kotlin in 12 weeks with 30 engineers, while agents produced most of the code.

The migration depended on shared cross-platform architecture, Helix, Reflex, remote development environments, small checkpoints, automated guardrails, agent-first review, and human approval. Results included faster launches, smaller Android binaries, substantially lower memory use, improved Android crash-free sessions, and an agent-ready codebase, while shifting bottlenecks to machines, CI, review, merging, and coordination.

How two engineer side projects became the agent taking action inside Dropbox

dropbox.tech · 5 Nov

Artificial Intelligence · Authorization · Software Architecture · AI Agents

Dropbox turned two engineer side projects into an agent that can act on users’ files in its new experience.

Daniel Reiter Horn built a sandbox for 3D modeling, while Rich Chan created a desktop interface for expense reports. Their work combined Dropbox-connected workspaces, Ubuntu software, rclone, Codex App Server API events, and permission checks enforced outside each VM. Conversation-linked version history enables review and targeted rollback, while 75% of workspaces became model-ready within 300 milliseconds.

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.

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.

Cross-store product clustering across millions of stores

shopify.engineering · 20 Oct

Artificial Intelligence · Algorithms · Machine Learning · Software Architecture

Shopify built a cross-store clustering system that groups listings for the same real-world product under a global Universal Product Identifier (UPI).

It retrieves candidate pairs with embeddings, scores them through increasingly capable L1, L2, and L3 models, then uses bounded graph components and hierarchical agglomerative clustering with a learned merge rule. Cached scores, prioritized GPU queues, intra-store evidence, and recurring retraining keep clusters precise and current across billions of listings.

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.

Where it came fromHacker NewsEngineering at MetaShopify EngineeringFly.ioLobstersPlanetScaleCreate a Snapbyte.dev digest and choose Software Architecture as one of your topics.Build your digest