Cover of Software Architecture Patterns, Antipatterns, and Pitfalls

Books · October 2026

Software Architecture Patterns, Antipatterns, and Pitfalls

Understanding Trade-Offs

Authors
Mark Richards, Neal Ford, Raju Gandhi
Publisher
O'Reilly Media
ISBN
979-8341663909

Get the book

Cloud-native development, real-time applications, and AI-enabled services all raise the stakes on choosing the right architecture pattern. This book catalogs the patterns that matter most in modern systems, and just as importantly, the antipatterns and pitfalls that undermine them.

We distinguish two kinds of trouble. An antipattern looks like a good idea at first and only reveals its costs later. A pitfall is a bad idea from the start. Knowing both is how architects learn from other people's hard-won experience instead of their own.

Every entry includes metadata (context, plus the architectural capabilities it improves and degrades) and a star rating across characteristics such as scalability, resilience, and maintainability, so you can compare options on the trade-offs that matter for your system.

What you'll learn

  • The core principles, strengths, and limitations of key architecture patterns, and the antipatterns to avoid
  • How to select and apply patterns based on business and technical requirements
  • How to analyze trade-offs and their effect on architectural capabilities
  • How to use metrics and fitness functions to modernize architecture governance
  • How to build your own pattern analysis for patterns not covered in the book

Table of Contents

  1. Introduction: Fundamental Patterns and Antipatterns…with Some Pitfalls
  2. Capability and Context Cross-Reference
  3. Ambulance Pattern
  4. Architecture by Implication Antipattern
  5. Architecture Sinkhole Antipattern
  6. Async Chain of Persistence Pattern
  7. Backend for Frontend Pattern
  8. Cache Aside Pattern
  9. Choreography Pattern
  10. Command Query Responsibility Segregation (CQRS) Pattern
  11. Compensating Updates Pattern
  12. Contextual Events Pattern
  13. Cross-Cutting State Pattern
  14. Data-Based Event Contract Pattern
  15. Domain-Broker Pattern
  16. Event Sourcing Pattern
  17. Explicit Workflow State Pattern
  18. Extensible Events Pattern
  19. Front Controller Pattern
  20. Frozen Caveman Pitfall
  21. Grains of Sand Pitfall
  22. Implicit Workflow State Pattern
  23. Key-Based Event Contract Pattern
  24. Microservice All the Things Pitfall
  25. Multi-Broker Pattern
  26. Nexus Architecture Pattern
  27. Orchestration Pattern
  28. Overcentralization Antipattern
  29. Read-Through/Write-Through Cache Pattern
  30. Service Sharding Pattern
  31. Stamp Coupling Antipattern
  32. Stovepipe Architecture Antipattern
  33. Supervisor Consumer Pattern
  34. Thread Delegate Pattern
  35. Workflow Event Pattern
  36. Build Your Own Pattern Analysis
  37. Fundamental Definitions