Software Architecture Patterns, Antipatterns, and Pitfalls: Understanding Qualitative Trade-Offs

Software Architecture Patterns, Antipatterns, and Pitfalls: Understanding Qualitative Trade-Offs

Sale price  Rs. 1,150.00 Regular price  Rs. 1,275.00
Skip to product information
Software Architecture Patterns, Antipatterns, and Pitfalls: Understanding Qualitative Trade-Offs

Software Architecture Patterns, Antipatterns, and Pitfalls: Understanding Qualitative Trade-Offs

By: Mark Richards, Neal Ford, Raju Gandhi |  Publisher: Shroff/O'Reilly |  Year: 2026

ISBN: 9789368083139

MRP: Rs. 1,275.00

You Pay: Rs. 1,150.00

You save: Rs. 125.00 ( 10% )

MRP: Rs. 1,275.00

You Pay: Rs. 1,150.00

You save: Rs. 125.00 ( 10% )

Usually ships in 3-5 days

Reward points: 11 points

⚠️ Ships only in Bangladesh, Bhutan, India, Maldives, Nepal, Sri Lanka, and the United Republic of Tanzania.

🌍 Available Worldwide

The E-Book is delivered digitally worldwide within 24 hours.

🌍 Ships Worldwide

The Combo includes the US imported edition, delivered worldwide.

Have a question about this book? Chat on WhatsApp or Email us

We usually reply within business hours.

Description

As software systems grow in complexity and scale, choosing the right architectural pattern is critical to meeting performance, agility, and operational demands. In this book, Mark Richards, Neal Ford, and Raju Gandhi detail modern software architecture patterns and the antipatterns and pitfalls to avoid. Unique star-chart ratings for each pattern let you see at a glance how well it supports architectural capabilities such as scalability, resilience, and maintainability. You'll learn which patterns apply to different contexts, such as microservices or event-driven architectures, and how to evaluate trade-offs to select the right pattern for your system's needs.

Architects, software developers, and technical leaders will find new insights and tools for AI use, governance, and aligning architecture with domain and business needs.

  • Understand the core principles, strengths, and limitations of key architecture patterns and the antipatterns to avoid
  • Select and apply appropriate architecture patterns based on business and technical requirements
  • Analyze and compare architectural trade-offs to make informed decisions about how patterns affect capabilities
  • Use metrics and fitness functions to modernize governance
  • Design cohesive, resilient, and evolvable systems using proven patterns and modern industry practices

 

About the Author

Mark Richards is an experienced, hands-on software architect involved in the architecture, design, and implementation of microservices architectures and other distributed systems in a variety of technologies. He has been in the software industry since 1983 and has significant experience and expertise in application, integration, and enterprise architecture. Mark is the founder of DeveloperToArchitect.com, a free website devoted to helping developers in the journey to becoming a software architect. In addition to hands-on consulting, Mark has authored numerous technical books and videos, including his two latest books Fundamentals of Software Architecture and Software Architecture: The Hard Parts that he co-authored with Neal Ford. Mark has spoken at hundreds of conferences and user groups around the world on a variety of enterprise-related technical topics.

Neal Ford is a director, software architect, and meme wrangler at Thoughtworks, a software company and a community of passionate, purpose-led individuals who think disruptively to deliver technology to address the toughest challenges, all while seeking to revolutionize the IT industry and create positive social change. He's an internationally recognized expert on software development and delivery, especially in the intersection of Agile engineering techniques and software architecture. Neal's authored several books, a number of magazine articles, and dozens of video presentations (including a video on improving technical presentations) and spoken at hundreds of developer conferences worldwide. His topics of interest include software architecture, continuous delivery, functional programming, and cutting-edge software innovations. Check out his website, Nealford.com.

Raju Gandhi is the founder of DefMacro Software as well as a consultant, author, teacher, and speaker at conferences around the world. As a software developer and teacher, he believes in keeping things simple, preferring to understand and explain the "why" as opposed to the "how." Raju blogs at LooselyTyped.com and lives in Ohio with his wife, Michelle, their three children, Mason, Micah, and Delphine, and furry family members Buddy, Skye, and Princess Zara. Find his contact information at Rajugandhi.com. He's always looking to make new friends.
Table of Contents


Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
1. Introduction: Fundamental Patterns and Antipatterns…with Some Pitfalls. . . . . . . . . 1
Styles Versus Patterns 2
Architecture Patterns Versus Design Patterns 4
Antipatterns 5
Pitfalls 5
The Pattern, Antipattern, Pitfall Spectrum 5
How Is This Book Different from Other Patterns Books? 6
Qualitative Analysis 8
Building Qualitative Analysis 10
Building Quantitative Analysis 12
How to Use Chapter 2, “Capability and Context Cross-Reference” 12
Common Definitions 13
2. Capability and Context Cross-Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Patterns by Capability 16
Adaptability 16
Agility 18
Atomicity 19
Auditability 19
Availability 20
Bandwidth Usage 21
Cost 21
Data Consistency 22
Data Integrity 23
Debuggability 24
Deployability 25
v
Domain Alignment 25
Elasticity 26
Error Handling 27
Evolvability 28
Fault Tolerance 28
Flexibility 29
Initial Time to Market 30
Maintainability 30
Message Processing Order 31
Modularity 31
Performance 32
Responsiveness 33
Reusability 34
Scalability 34
Simplicity 35
Testability 37
Throughput 37
Workflow 38
Patterns by Context 39
Agentic Code Generation 39
Architectural Styles 39
Caching 40
Contracts 40
Data 40
Decision Making 41
Event-Driven Architecture 41
Event Granularity 42
High-Volume Processing 42
Integration Architecture 42
Iterative Architecture 43
Layered Architecture 43
Message-Based Architectures 43
Microservices 44
Modularity 45
Monolithic Architectures 45
Multiple User Interfaces 46
Service Granularity 46
Workflow 46
3. Ambulance Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
How Do I Prioritize My Messages? 50
Applying the Pattern 52
vi | Table of Contents
Trade-Offs 55
Pros 55
Cons 55
Comparison Chart 56
Influences 57
How to Govern This Pattern 57
Related Patterns, Antipatterns, and Pitfalls 58
4. Architecture by Implication Antipattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
When Do I Need an Architecture? 60
Why Is This an Antipattern? 60
How to Avoid This Antipattern 64
Trade-Offs 64
Pros 64
Cons 65
Comparison Chart 65
Influences 70
Am I in This Antipattern? 70
Related Patterns, Antipatterns, and Pitfalls 71
5. Architecture Sinkhole Antipattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
When Should I Open Layers in a Layered Architecture? 73
Why Is This an Antipattern? 74
How to Avoid This Antipattern 75
Opening Layers 75
Consider a Different Architecture Style 76
Trade-Offs 76
Pros 76
Cons 77
Comparison Chart 77
Influences 79
Am I in This Antipattern? 79
Related Patterns, Antipatterns, and Pitfalls 79
6. Async Chain of Persistence Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
How Do I Prevent Message Loss? 81
Event-Driven Versus Message-Based Systems 81
Where Messages Can Get Lost 83
Applying the Pattern 86
Message Persistence 87
Client Acknowledgement Mode 88
Synchronous Send 89
Table of Contents | vii
Last Participant Support 90
Conflicting Patterns 91
Trade-Offs 91
Pros 91
Cons 92
Comparison Chart 93
Influences 95
How to Govern This Pattern 97
Related Patterns, Antipatterns, and Pitfalls 98
7. Backend for Frontend Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
How Can I Support Multiple User-Interface Types? 101
Applying the Pattern 104
BFF Granularity 105
The Place for Specialized Data Query Languages 107
Trade-Offs 108
Pros 108
Cons 108
Comparison Chart 109
Influences 113
How to Govern This Pattern 114
Related Patterns, Antipatterns, and Pitfalls 115
8. Cache Aside Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
How Do I Improve Both Performance and Scalability? 117
Applying the Pattern 117
Reads 118
Writes/Updates 120
The Cache Is Not in the Critical Path 122
Handling Cache Failures 122
Write-Around Caching Pattern Variant 123
Trade-Offs 124
Pros 124
Cons 124
Comparison Chart 125
Influences 127
Caching Topologies 127
Caching Topology Comparison 129
How to Govern This Pattern 131
Related Patterns, Antipatterns, and Pitfalls 131
viii | Table of Contents
9. Choreography Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
How Should I Manage My Workflows? 133
Applying the Pattern 134
What Happens When Everything Works 134
What Happens When an Error Occurs? 135
Implementing the Pattern 137
Trade-Offs 138
Pros 138
Cons 138
Comparison Chart 139
Influences 142
Communication (Synchronous Versus Asynchronous) 143
Atomicity (Data Consistency and Integrity) 146
Architecture Quantum 150
How to Govern This Pattern 151
Governing Communication 151
Cumulative Responsibility 151
Related Patterns, Antipatterns, and Pitfalls 152
10. Command Query Responsibility Segregation (CQRS) Pattern. . . . . . . . . . . . . . . . . . . . . 153
How Can I Optimize My Data for Reads and Writes? 154
Applying the Pattern 155
Implementing the Pattern 156
Single Service for Both Command and Query 156
Separate Services for Command and Query 156
Trade-Offs 159
Pros 159
Cons 159
Comparison Chart 160
Influences 164
Team Topologies 164
How to Govern This Pattern 164
Related Patterns, Antipatterns, and Pitfalls 165
11. Compensating Updates Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
How Do I Roll Back a Distributed Transaction? 167
Applying the Pattern 168
What Happens When Everything Works Correctly? 168
Compensating Update Failures 170
Implementing the Pattern 170
Trade-Offs 173
Pros 174
Table of Contents | ix
Cons 174
Comparison Chart 174
Influences 176
How to Govern This Pattern 176
Failure to Achieve the Compensating Update 176
What Level of Consistency Is Proper? 178
Related Patterns, Antipatterns, and Pitfalls 178
12. Contextual Events Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
How Many Events Should I Trigger from a Single Service? 179
Applying the Pattern 182
Trade-Offs 185
Pros 185
Cons 185
Comparison Chart 186
Influences 187
How to Govern This Pattern 188
Related Patterns, Antipatterns, and Pitfalls 188
13. Cross-Cutting State Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
How Should I Manage My Workflow State? 191
Applying the Pattern 193
Trade-Offs 195
Pros 195
Cons 196
Comparison Chart 196
Influences 198
How to Govern This Pattern 198
Related Patterns, Antipatterns, and Pitfalls 198
14. Data-Based Event Contract Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
How Much Data Should I Include in the Event Payload? 199
Applying the Pattern 200
Trade-Offs 203
Pros 203
Cons 204
Comparison Chart 206
Influences 208
How to Govern This Pattern 208
Related Patterns, Antipatterns, and Pitfalls 209
x | Table of Contents
15. Domain-Broker Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
How Many Brokers Should I Have in My Distributed Architecture? 211
Applying the Pattern 213
Implementing the Pattern 215
Trade-Offs 217
Pros 217
Cons 218
Comparison Chart 218
Influences 220
Architecture Quantum 220
Workflow State 221
How to Govern This Pattern 221
Related Patterns, Antipatterns, and Pitfalls 222
16. Event Sourcing Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Should I Capture My Data as an Event Stream? 223
Applying the Pattern 225
Identifying Events and Aggregates 226
Domain Events 227
Event Store Structure 227
Reading Events 228
Writing Events 229
Handling Concurrency 235
Schema Evolution 237
Trade-Offs 240
Pros 240
Cons 240
Comparison Chart 241
Influences 244
Consistency Model and Atomicity 244
Event Volume and Scale 244
Architecture Quantum 245
How to Govern This Pattern 246
Related Patterns, Antipatterns, and Pitfalls 247
17. Explicit Workflow State Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
How Should I Manage My Workflow State? 249
Applying the Pattern 251
Trade-Offs 254
Pros 254
Cons 254
Comparison Chart 255
Table of Contents | xi
Influences 257
How to Govern This Pattern 258
Related Patterns, Antipatterns, and Pitfalls 258
18. Extensible Events Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Should I Trigger an Event If No One Is Listening for It (Yet)? 259
Applying the Pattern 261
Trade-Offs 262
Pros 262
Cons 262
Comparison Chart 263
Influences 264
How to Govern This Pattern 264
Related Patterns, Antipatterns, and Pitfalls 265
19. Front Controller Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
How Do I Handle Mediation Without an Explicit Orchestrator? 267
Applying the Pattern 268
Trade-Offs 271
Pros 271
Cons 271
Comparison Chart 271
Influences 274
How to Govern This Pattern 274
Related Patterns, Antipatterns, and Pitfalls 275
20. Frozen Caveman Pitfall. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Should I Only Base My Decisions on Past Experiences? 278
Why Is This a Pitfall? 279
How to Avoid This Pitfall 279
Developing a Personal Radar 282
Trade-Offs 283
Pros 284
Cons 284
Comparison Chart 284
Influences 287
Related Patterns, Antipatterns, and Pitfalls 287
21. Grains of Sand Pitfall. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Are My Services Too Small? 289
Why Is This a Pitfall? 290
How to Avoid This Pitfall 295
xii | Table of Contents
Granularity Disintegrators 295
Granularity integrators 299
Trade-Offs 300
Pros 300
Cons 301
Comparison Chart 301
Influences 302
Related Patterns, Antipatterns, and Pitfalls 303
22. Implicit Workflow State Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
How Should I Manage My Workflow State? 305
Applying the Pattern 307
Trade-Offs 310
Pros 310
Cons 310
Comparison Chart 311
Influences 313
How to Govern This Pattern 314
Related Patterns, Antipatterns, and Pitfalls 314
23. Key-Based Event Contract Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
How Much Data Should I Include in the Event Payload? 317
Applying the Pattern 318
Data Access Considerations 319
Anemic Events 320
Trade-Offs 321
Pros 321
Cons 322
Comparison Chart 323
Influences 325
Monolithic Database Topology 326
Domain-Based Database Topology 326
Database-Per-Service Database Topology 328
How to Govern This Pattern 328
Related Patterns, Antipatterns, and Pitfalls 330
24. Microservice All the Things Pitfall. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Should I Make Everything a Microservice? 332
Why Is This a Pitfall? 334
How to Avoid This Pitfall 336
Trade-Offs 339
Pros 339
Table of Contents | xiii
Cons 339
Comparison Chart 340
Influences 341
Related Patterns, Antipatterns, and Pitfalls 341
25. Multi-Broker Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
How Can I Improve Message Throughput and Capacity? 343
Applying the Pattern 344
Trade-Offs 346
Pros 346
Cons 346
Comparison Chart 347
Influences 348
How to Govern This Pattern 348
Related Patterns, Antipatterns, and Pitfalls 349
26. Nexus Architecture Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
How Do I Manage Cross-Cutting Concerns? 351
Service Mesh and Sidecar 353
Data Mesh and Cooperative Quantum 355
Agentic Mesh, LLMs, and MCP 357
Nexus Architecture 359
Aspect-Oriented Architecture? 359
Applying the Pattern 362
Trade-Offs 363
Pros 363
Cons 364
Comparison Chart 364
Influences 367
How to Govern This Pattern 368
Related Patterns, Antipatterns, and Pitfalls 370
27. Orchestration Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
How Should I Manage My Workflows? 371
Applying the Pattern 373
The Case Where Everything Works 373
The Case Where Something Breaks 374
Hybrids 375
Implementing the Pattern 376
Trade-Offs 377
Pros 377
Cons 377
xiv | Table of Contents
Comparison Chart 378
Influences 381
Communication (Synchronous Versus Asynchronous) 382
Atomicity (Data Consistency and Integrity) 385
Architecture Quantum 388
How to Govern This Pattern 389
Intraservice Communication 389
Granularity 389
Related Patterns, Antipatterns, and Pitfalls 390
28. Overcentralization Antipattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
When Should I Use Global Coupling? 391
Why Is This an Antipattern? 393
How to Avoid This Antipattern 393
Trade-Offs 394
Pros 394
Cons 394
Comparison Chart 394
Influences 397
Am I in This Antipattern? 397
Related Patterns, Antipatterns, and Pitfalls 398
29. Read-Through/Write-Through Cache Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
When Using Caching, How Do I Optimize Data Consistency? 400
Applying the Pattern 400
Implementing the Pattern 400
Reads 400
Writes/Updates 403
Things of Note 405
Write-Behind Cache Pattern Variant 408
Trade-Offs 409
Pros 409
Cons 410
Comparison Chart 410
Influences 411
Caching Topology Comparison 413
How to Govern This Pattern 414
Related Patterns, Antipatterns, and Pitfalls 415
30. Service Sharding Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
How Should I Implement Atomicity in My Distributed Architectures? 417
Applying the Pattern 419

Book Details
Author Mark Richards, Neal Ford, Raju Gandhi
Publisher Shroff/O'Reilly
ISBN-13 9789368083139
Year 2026
Pages 580
Binding Paperback
Edition First
Country of Origin India

You may also like