Code Archaeology
Author

Code Archaeology

Learn from the past to understand the present

39
Articles
0
Likes
9
Views
0
Comments
Recent Articles

Latest from Code Archaeology

39 recent articles
Code Archaeology
Code Archaeology
Aug 19, 2026 · Fundamentals

Choosing the Right Architecture Style: Why 'It Depends' Is the Only Honest Answer

This article explains why architecture style selection has no standard answer, detailing the forces driving architectural trends, the prerequisite analysis of domain, characteristics, data, cloud, organization, and processes, and the three key decisions between monolith vs distributed, data placement, and synchronous vs asynchronous communication.

architectural decision recordsarchitectural fitness functionsarchitecture quantum
0 likes · 8 min read
Choosing the Right Architecture Style: Why 'It Depends' Is the Only Honest Answer
Code Archaeology
Code Archaeology
Aug 17, 2026 · Backend Development

Microservices Architecture Explained: Patterns, Trade-offs, and Team Topologies

This article provides a comprehensive overview of microservices architecture, covering bounded contexts, service granularity, API layers, sidecar/service mesh patterns, communication styles, data topology, distributed transactions with Saga, common anti-patterns, characteristic ratings, and team topology alignment.

Team Topologiesbounded contextdatabase-per-service
0 likes · 23 min read
Microservices Architecture Explained: Patterns, Trade-offs, and Team Topologies
Code Archaeology
Code Archaeology
Aug 12, 2026 · Fundamentals

Orchestration-Driven SOA: Topology, Pitfalls, and Lessons for Modern Architects

This article dissects orchestration-driven SOA, a 1990s enterprise architecture pattern centered on a central ESB and strict service taxonomy, explaining its layered topology, how reuse led to tight coupling and bloated models, the difficulties of distributed transactions, and why its failures directly inspired modern microservices principles.

ESBSOAcoupling
0 likes · 18 min read
Orchestration-Driven SOA: Topology, Pitfalls, and Lessons for Modern Architects
Code Archaeology
Code Archaeology
Aug 10, 2026 · Fundamentals

Space-Based Architecture: Eliminating Database Bottlenecks for Infinite Scalability

This article explores space-based architecture, a pattern that replaces central databases with replicated in-memory data grids to achieve extreme scalability, detailing its components, caching strategies, data synchronization mechanisms, collision risks with quantitative formulas, and trade-offs in simplicity, testability, and cost.

data collisiondistributed cachingin-memory data grid
0 likes · 18 min read
Space-Based Architecture: Eliminating Database Bottlenecks for Infinite Scalability
Code Archaeology
Code Archaeology
Jul 30, 2026 · Fundamentals

Service-Based Architecture: A Pragmatic Middle Ground Between Monoliths and Microservices

This article explores service-based architecture as a practical distributed architecture style that offers independent deployment benefits without the complexity of microservices, covering its topology, domain services, API gateway, data topology, risks, characteristic scores, suitable scenarios, and team topology alignment.

ACID transactionsdistributed architecturedomain-driven design
0 likes · 12 min read
Service-Based Architecture: A Pragmatic Middle Ground Between Monoliths and Microservices
Code Archaeology
Code Archaeology
Jul 28, 2026 · Backend Development

How Jackson Rewrote Buffer Pooling for Java Virtual Threads

Jackson replaced its ThreadLocal-based buffer recycling with a pluggable RecyclerPool abstraction, iterated through multiple default pool implementations including a flawed LockFreePool, removed the leaky LockFreePool in 3.x, and fixed a TOCTOU race in BufferRecycler using atomic updates.

Buffer PoolingConcurrencyJackson
0 likes · 10 min read
How Jackson Rewrote Buffer Pooling for Java Virtual Threads
Code Archaeology
Code Archaeology
Jul 23, 2026 · Fundamentals

Microkernel Architecture: Core Concepts, Plug-in Patterns, and When to Use It

This article explores microkernel architecture, detailing its core system and plug-in components, registry mechanisms, risk factors, characteristic scores, suitable and unsuitable scenarios, and team topology alignments for product-based and highly customizable business systems.

core systemmicrokernel architectureplug-in architecture
0 likes · 12 min read
Microkernel Architecture: Core Concepts, Plug-in Patterns, and When to Use It
Code Archaeology
Code Archaeology
Jul 15, 2026 · Fundamentals

Modular Monolith Architecture: Structure, Communication & Team Topology Explained

This article explores modular monolith architecture, comparing monolithic vs modular structures, peer-to-peer vs mediator communication patterns, characteristic ratings (cost, simplicity, modularity, deployability, maintainability, elasticity, fault tolerance), suitable and unsuitable scenarios, and aligned team topologies based on Fundamentals of Software Architecture.

domain-driven designmediator patternmodular monolith
0 likes · 7 min read
Modular Monolith Architecture: Structure, Communication & Team Topology Explained
Code Archaeology
Code Archaeology
Jul 13, 2026 · Artificial Intelligence

Anthropic Prompt Caching Deep Dive: Breakpoints, TTL, and Cost Optimization

This article explains Anthropic's Prompt Caching mechanism including cache_control configuration, automatic vs explicit breakpoint caching, prefix hierarchy, 20-block lookback window, 4-breakpoint limit, TTL pricing (0.1x read, 1.25x/2x write), observability metrics, and Spring AI integration with code examples.

AI EngineeringAnthropicCache Control
0 likes · 11 min read
Anthropic Prompt Caching Deep Dive: Breakpoints, TTL, and Cost Optimization
Code Archaeology
Code Archaeology
Jul 8, 2026 · Fundamentals

Layered Architecture: The Default Pattern, Its Sinkhole Trap, and When to Evolve

This article explains the layered architecture style, its standard four-layer model, the trade-offs between closed and open layers including the architecture sinkhole anti-pattern, characteristic scoring for when to use or avoid it, and how it aligns with different team topologies.

architecture-patternsarchitecture-sinkholefundamentals
0 likes · 6 min read
Layered Architecture: The Default Pattern, Its Sinkhole Trap, and When to Evolve