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

Bringing application context to full-host eBPF profiling

datadoghq.com · 1 Dec

Backend · Low-Level Programming · Observability · Performance · Software Architecture

OpenTelemetry standardized process and thread context protocols that let the OpenTelemetry eBPF Profiler connect full-host profiles to applications, requests, and traces.

Process context publishes resource attributes through a discoverable Linux memory mapping, while thread context exposes trace, span, and request attributes through a compact ELF thread-local record. The design handles fork(), multiple TLS access models, and runtime differences across Java, Python, Go, Ruby, .NET, and Node.js. Java benchmarks reduced context-update costs to 91.2 ns.

Scaling metrics queries for AI workloads with Distributed DataFusion

datadoghq.com · 30 Nov

Backend · Big Data · Observability · Performance · Software Architecture

Datadog shipped Distributed DataFusion, a distributed query engine based on Apache DataFusion and Substrait, to scale high-cardinality metrics queries for AI workloads.

It splits physical plans across workers, streams Apache Arrow batches, eliminates an unnecessary network shuffle, and hashes string tags into u64 keys. In a local benchmark, these optimizations reduced latency from 420 ms on four cores to 42.2 ms on 16 cores. Adding machines improved latency most for longer query ranges.

Why We're Doubling Down on One Codebase: Zalando's Mobile Apps on React Native

engineering.zalando.com · 29 Nov

JavaScript · Mobile · React · React Native · Software Architecture

Zalando is migrating its mobile apps to React Native and the Rendering Engine, with more than 90% of roughly 100 screens per platform migrated and one shared codebase for iOS and Android, while targeting the web.

OTA JavaScript updates arrive every 1–2 weeks, and migrated screens exceed 99.95% crash-free sessions. Profiling improved PDP p90 Meaningful Render Time by 10% on iOS and 36% on Android. The brownfield migration adds bridge costs but enables consistency, faster delivery, shared architecture, and more effective AI agents.

De-identifying text at scale: How Airbnb protects personal data in AI training

medium.com · 17 Nov

Artificial Intelligence · Cybersecurity · Machine Learning · NLP · Software Architecture

Airbnb built an on-premises text de-identification system with Presidio to remove PII from messages, reviews, and support chats before ML training.

Its Analyzer combines pattern recognizers, NER models including GLiNER, and language detection; its Anonymizer resolves overlaps and applies redaction, masking, hashing, or realistic Faker replacements. Per-run secrets keep replacements consistent within a run but unlinkable across runs. Benchmarks measure recall, precision, and throughput by entity and language, gating model deployment on de-identified data.

How we scaled metrics aggregation by moving durable state into storage

datadoghq.com · 17 Nov

Backend · Big Data · Distributed Systems · Observability · Software Architecture

Datadog scaled metrics aggregation through three generations by moving durable state from fixed consumers into storage.

The first design used static partition ownership and local RocksDB; the second added dynamic Kafka assignment with blob-backed state recovery, supporting about 10× more volume but making restoration the bottleneck. The third uses best-effort streaming while timeseries storage deduplicates, merges partial aggregates, and incorporates late data, allowing workers to resume at the live edge without restoring hours of historical state.

Choosing QuePaxa, an unusual consensus algorithm

blog.cloudflare.com · 11 Nov

Algorithms · Backend · Distributed Systems · Software Architecture · Computer Science

Cloudflare chose QuePaxa for Meerkat, an experimental global consensus service whose replicas maintain an ordered event log.

Unlike leader-dependent Raft or Paxos variants, QuePaxa uses an optional leader, randomized proposal priorities, recorder majorities, and cooperative adoption, allowing progress through latency spikes, disconnections, and leader failures without fault detection. It offers a one-round-trip leader fast path and slower fallback rounds. Global evaluations showed Meerkat continued processing requests without stalling, though throughput temporarily declined after leader failure.

Building a Multi-Agent System from Scratch: Architecture Patterns

kadhar.dev · 5 Nov

Artificial Intelligence · Design Patterns · Large Language Models · Software Architecture · AI Agents

Multi-agent systems add coordination overhead to reasoning and require deliberate architecture choices plus code-enforced guardrails.

The main patterns are pipeline for fixed, repeatable workflows; orchestrator-worker for known decomposition whose details vary by input; and blackboard for paths that emerge during discovery. Production failures include delegation loops, runaway model-call costs, concurrent write conflicts, and compounded hallucinations. Hard delegation and token/cost caps, plus human escalation, are necessary because adding agents does not ensure correctness; evaluation determines safety.

Scaling Model Evaluation at Pinterest with Ray (Part 4)

medium.com · 4 Nov

Artificial Intelligence · Big Data · Machine Learning · Performance · Software Architecture

Pinterest built a Model Evaluation platform that combines Ray and Apache Spark to compute decomposable, holistic, and group-wise metrics at scale.

A ReducibleMetric contract defines preprocessing, batch partials, and reduction; group-wise metrics preserve segments in buckets. Fusing metric computation with Ray inference removes S3 serialization and a separate cluster, overlapping CPU metrics with GPU inference. Benchmarks across 30K–3M rows and up to 300 experiments showed 25–32% lower end-to-end time and approximately linear scaling.

Introducing ModuleLens: Zooming into PyTorch Modules for Human and Agentic Engineering

medium.com · 19 Oct

Machine Learning · Performance · Python · PyTorch · Software Architecture

Pinterest built ModuleLens, a Module-First framework for isolating and reconstructing PyTorch modules from distributed production models.

ModuleTracer captures initialization arguments, inputs, outputs, weights, and metadata with hooks; ModuleRepo stores versioned artifacts in WandB Registry, and consumption tools support Jupyter, IPython, and AI agents. Engineers can run, test, profile, and benchmark modules locally without multi-GPU initialization, shortening feedback loops. Deployments support Training Analyzer, KernelAgent, and scaling ROI analysis, with planned autonomous optimization and autoresearch.

Inside Hyperdrive: How we solved a rare Hyperdrive MySQL caching bug

blog.cloudflare.com · 14 Oct

Backend · Database · Distributed Systems · MySQL · Software Architecture

Cloudflare made Hyperdrive’s MySQL support generally available after fixing reliability issues, including a rare caching bug that caused empty query results or hangs.

Hyperdrive’s Client and Endpoint could share a CDN cache while encoding MySQL responses for different negotiated capabilities, especially CLIENT_DEPRECATE_EOF; either node could read bytes in the other’s format. Cloudflare fixed this by storing canonical result bytes encoded with Hyperdrive’s capabilities, eliminating the empty-row issue and raising Client connection success to 99.99%. It also corrected UTF-8 handling with utf8mb4.

Under the hood, off the hot path: how D1 scales to millions of databases

blog.cloudflare.com · 13 Oct

Backend · Database · Distributed Systems · Software Architecture · SQLite

Cloudflare scaled D1, its managed serverless SQLite database, beyond 5.5 million databases by separating control-plane work from hot-path queries.

Each database uses a SQLite Durable Object; Workers KV provides edge routing metadata, while Hyperdrive accesses cached Postgres metadata and replicas. Queries avoid centralized components, and heartbeats repair inconsistent state. Queues and pre-aggregated Postgres tables handle storage limits, while ClickHouse and Quicksilver support analytics and row limits, enabling millions of databases and hundreds of thousands active at once.

Rewinding the exponential: How we keep hardware usage down

blog.cloudflare.com · 13 Oct

Backend · Big Data · Distributed Systems · Performance · Software Architecture

Cloudflare reduced data-pipeline backbone traffic by about 70 GB/s through schema decomposition, zstd compression, load-balanced replication, early sampling, and repeated aggregation.

Product-specific schemas cut bandwidth 35–40%, zstd reduced compressed throughput nearly 40%, and 2026 changes saved roughly 38 GB/s through load balancing, 25 GB/s through sampling, and 7+ GB/s through aggregation. Ready-Analytics receiver optimizations reclaimed about 750 CPUs and 3.5 TiB of memory, while projected 2031 data volume was halved.

Automating Data Ingestion with a RAG Flywheel

engineering.zalando.com · 11 Oct

Artificial Intelligence · Backend · Large Language Models · Software Architecture · RAG

Zalando built an LLM-powered schema-mapping system that combines AWS Bedrock, Amazon Titan Text Embeddings V2, pgvector, and human review to ingest diverse supplier data.

Cold-start predictions use target-schema definitions, while warm starts retrieve approved historical mappings through cosine similarity, approval counts, and an 0.8 threshold. Tool Use, zero temperature, and API validation constrain outputs and reject invalid mappings. The system currently achieves an 85% unchanged acceptance rate, while retaining human oversight and rebuildable history.

Thundering herd of circuit breakers

engineering.zalando.com · 7 Oct

Backend · Distributed Systems · Observability · Performance · Software Architecture

A client-side circuit breaker trapped traffic in a loop, blocking about 95% of requests for hours despite a healthy service.

A custom OpenTelemetry trace visualizer showed that half-open probes succeeded on a three-pod, under-provisioned service, but closing the breaker released a thundering herd; queues exceeded 100 ms, requests timed out, and the breaker reopened. Pre-scaling or force-closing allowed HPA capacity to catch up. CPU-based HPA missed three-second bursts, exposing limits of aggregate metrics and representative probes.

Celebrating 45 Years of Kermit with the First New C-Kermit Release in 15 Years

changelog.complete.org · 3 Aug

C · Software Architecture · Open Source

Kermit, originally designed in 1981 at Columbia University to facilitate data transfer between incompatible systems, has evolved into a versatile tool.

Now open-sourced and maintained by the community, the new C-Kermit 11 release adds modern security, IPv6 support, and extensive testing, preserving the legacy of founder Frank da Cruz while modernizing the codebase for current cross-platform utility.

I'm quite pleased by the tech architecture of my art website

klauria.tech · 20 Nov

Backend · Serverless · Software Architecture

Klauria built an art website that stays static for visitors while giving the creator a CRUD editing UI.

A Cloudflare Worker generates HTML from one JSON metadata file; responses are cached for 30 days, and every write invalidates all cached pages. The browser creates three image sizes at upload, storing them with originals in Cloudflare R2. Maps and timelines run client-side, with no database. Cloudflare’s CDN serves cached pages globally, while Astro provides integration.

Zotero 8

zotero.org · 22 Jan

Productivity · Software Architecture · Open Source

Zotero 8 marks a significant major release for the popular open-source reference management software, introducing a redesigned unified citation dialog with searchable List and Library modes.

Key enhancements include the integration of PDF, EPUB, and webpage annotations directly into the items list, support for reader themes with customizable colors, and the ability to open notes in dedicated tabs for a distraction-free environment. Additionally, version 8 brings automatic file renaming, ARM64 Linux support, and an improved Zotero Connector that features tag autocomplete and direct note entry. These refinements aim to streamline research workflows and improve cross-platform accessibility.

I Was Right About ATProto Key Management

notes.nora.codes · 25 Jan

Distributed Systems · Software Architecture

The author examines the practical challenges of achieving true decentralization within ATProto, specifically trying to host a Bluesky account on a personal PDS (Personal Data Server).

Despite using NixOS for software deployment and following available tutorials for creating a DID, the process proved undocumented and error-prone. A critical issue arose when deleting a deactivated account led to the domain being 'burned' or blacklisted by the centralized AppView. This experience reinforces the author's argument that requiring users to handle their own PKI (Public Key Infrastructure) without adequate tooling or documentation is untenable. Ultimately, the author concludes that while ATProto claims decentralization, the current reliance on Bluesky's centralized infrastructure for account verification and visibility creates a significant barrier to entry, making the network decentralized in name only for most users.

Tree-sitter vs. Language Servers

lambdaland.org · 21 Jan

Programming Languages · Software Architecture

This article explores the practical differences between Tree-sitter and the Language Server Protocol (LSP) in the context of text editors and IDEs.

Tree-sitter acts as a fast, error-tolerant parser generator ideal for robust syntax highlighting, while LSP provides a standardized way for editors to communicate with language servers for complex semantic analysis like code completion and jump-to-definition.

Golang proposal: container/: generic collection types

github.com · 28 Jul

Go · Programming Languages · Software Architecture

The Go Collections working group proposed adding standard collection data structures to Go 1.28.

The initiative introduces generic implementations for hash maps, sets, ordered maps, and heaps. It utilizes Go's generics and iterators to provide ergonomic, standard-library-level APIs while establishing abstract constraint interfaces for consistent future development and better performance.

Where it came fromHacker NewsCloudflare BlogDatadog EngineeringZalando EngineeringPinterest EngineeringLobstersCreate a Snapbyte.dev digest and choose Software Architecture as one of your topics.Build your digest