๐Ÿ“– Microservices Recipes: The Architect's Field Guide

July 9, 2026 ยท View on GitHub

Microservices Recipes Cover

A practical guide to building, scaling, and managing microservices architectures

As defined by Sam Newman in his foundational text Building Microservices, microservices are "small, autonomous services that work together." This definition emphasizes the dual requirements of independence and interoperability.

Featuring Adaptive Granularity Governance: The Khan Microservice Pattern

GitHub Pages License: MIT Prose: CC BY-NC-ND 4.0 Contributions Welcome


"Stop splitting, start governing." - Adaptive Granularity Governance: The Khan Microservice Pattern

Microservices Animation

๐Ÿ“‹ Table of Contents

๐Ÿ“š Front Matter


๐Ÿ“– Part I: The Sociotechnical Substrate

Focus: Aligning organization and architecture to prevent the "Distributed Monolith"

ChapterTitleDescriptionRead Time
1The Definition Wars & The Reality of SOAUnderstanding microservices lineage and avoiding SOA's mistakes15 min
2The Distributed Monolith and Anti PatternsIdentifying and preventing distributed monolith anti-patterns25 min
3Strategic Decomposition: Domain Driven DesignApplying DDD principles to determine service boundaries20 min

๐Ÿ—„๏ธ Part II: Data Architecture

Focus: Managing data consistency and transactions in distributed systems

ChapterTitleDescriptionRead Time
4The End of ACIDUnderstanding distributed data consistency challenges30 min
5Distributed Transactions (The Saga Pattern)Implementing reliable distributed transactions25 min
6The Dual Write ProblemSolving data consistency across service boundaries20 min
7Data Mesh vs. Data FabricModern approaches to distributed data management18 min

๐ŸŒ Part III: Inter Process Communication

Focus: Moving bits between services without creating latency storms

ChapterTitleDescriptionRead Time
8The Trinity of ProtocolsHTTP/REST, gRPC, and GraphQL communication patterns22 min
9The Rise of eBPF Networking and the Post Sidecar EraNext-generation service mesh and networking28 min
10Asynchronous Messaging PatternsEvent-driven architecture and messaging strategies30 min

๐ŸŽฏ Part IV: Adaptive Granularity Governance

Focus: Quantitative framework for microservices decomposition (The Khan Microservice Pattern)

ChapterTitleDescriptionRead Time
11Adaptive Granularity Governance: The Khan Microservice PatternOrigin, RVx Index, and maturity model40 min

๐Ÿงฑ Part V: Resilience Engineering & Advanced Scaling

Focus: Blast-radius control and evidence-based failure injection

ChapterTitleDescriptionRead Time
12Shuffle Sharding & Blast-Radius MinimizationProbabilistic tenant-shard assignment and collision analysis55 min
13Chaos Engineering & Evidence-Based ResilienceHypotheses, game days, and AWS FIS guardrails60 min

๐Ÿ—๏ธ Part VI: The Platform Engineering Shift

Focus: Golden paths, policy-as-code, and telemetry economics

ChapterTitleDescriptionRead Time
14Infrastructure as Code at ScaleModules, drift, Terraform/CDK/Pulumi trade-offs58 min
15Observability 2.0OpenTelemetry, X-Ray, wide events, sampling design62 min

๐Ÿค– Part VII: The AI Frontier (2026)

Focus: Probabilistic components inside deterministic architectures

ChapterTitleDescriptionRead Time
16Agentic AI ArchitecturesTool gateways, Bedrock agents, safety cases58 min
17Retrieval-Augmented Generation at ScaleHyDE, evaluation, ACL-aware corpora60 min

๐Ÿš€ Part VIII: The Migration Playbook

Focus: Monolith-first discipline and incremental replacement

ChapterTitleDescriptionRead Time
18The Modular MonolithSchema-per-module, ArchUnit, contraction economics55 min
19The Strangler Fig PatternEdge routing, data strangler, parity proofs55 min

๐Ÿ“ˆ Part IX: Organizational Maturity

Focus: KM3 operational assessment

ChapterTitleDescriptionRead Time
20The Khan Microservices Maturity Model (KM3)Stages, instrumentation, X-Ray sampling50 min

๐Ÿ“š Reference Materials

ResourceDescription
๐Ÿ“– GlossaryComprehensive definitions of microservices terms
โšก Quick ReferenceHandy reference cards for patterns and practices
๐Ÿ“š BibliographyCurated list of books, articles, and resources

๐ŸŽฏ What Makes This Book Special

Adaptive Granularity Governance: The Khan Microservice Pattern

At the heart of this book is Adaptive Granularity Governance: The Khan Microservice Pattern (formerly the Adaptive Granularity Strategy): a systematic methodology for determining optimal microservice boundaries. This adaptive framework considers your specific:

Field basis: The methodology is an original synthesis by the author, refined through professional practice. Please cite when you reuse it (CITATIONS.md).

  • Organizational maturity and team structure
  • Business domain complexity and change frequency
  • Technical constraints and operational capabilities
  • Evolutionary growth and learning patterns

"The goal is not to build the perfect architecture, but to build an architecture that can evolve toward perfection." - Viquar Khan

Key Features

โœ… Practical, Not Theoretical - Every pattern tested in production
โœ… Context-Aware Guidance - Solutions for different organizational contexts
โœ… Evolution-Focused - Architecture as a journey, not a destination
โœ… Anti-Pattern Awareness - Learn from real-world failures
โœ… Complete Framework - Design through operations coverage


๐Ÿš€ Quick Start Guide

For Beginners

  1. Start with Chapter 1: The Definition Wars
  2. Read The Preface to understand the book's philosophy
  3. Progress sequentially through Parts I โ†’ II โ†’ III

For Experienced Practitioners

  1. Review the Table of Contents above
  2. Jump to specific chapters addressing your current challenges
  3. Use Quick Reference for rapid pattern lookup

For Architects

  1. Focus on strategic chapters: Ch 2, Ch 3, Ch 7
  2. Study Adaptive Granularity Governance: The Khan Microservice Pattern (formerly Adaptive Granularity Strategy)
  3. Review Complete Book Preview for advanced topics

๐Ÿ“Š Book Statistics

MetricValue
Total Chapters20 (chapters 1-10 linked in TOC; 11-20 listed without open links)
Reading Time~4.5 hours total
Content Length236,000+ characters
Code Examples50+ practical implementations
Patterns Covered25+ architectural patterns
Case StudiesReal-world examples from industry leaders
GitHub Stars606 developers
Repository Forks228 active forks
Author Followers1,400+ on @vaquarkhan
Community ReachGlobal developer community

๐ŸŒŸ What You'll Master

๐Ÿ—๏ธ Architectural Patterns
  • Adaptive Granularity Governance: The Khan Microservice Pattern for adaptive service granularity
  • Distributed Monolith identification and prevention
  • Domain-Driven Design for service boundaries
  • Saga Pattern for distributed transactions
  • Event Sourcing and CQRS patterns
  • API Gateway and Service Mesh architectures
๐Ÿ”ง Technical Implementation
  • Microservices Communication (REST, gRPC, GraphQL)
  • Data Management strategies and consistency patterns
  • Deployment & Operations with containers and orchestration
  • Monitoring & Observability with distributed tracing
  • Security patterns and zero-trust architectures
  • Testing Strategies for distributed systems
๐ŸŽฏ Real-World Skills
  • Conway's Law and organizational design
  • Failure Mode Analysis and resilience engineering
  • Performance Optimization and scalability patterns
  • Migration Strategies from monolith to microservices
  • Team Topologies and cognitive load management
  • Platform Engineering and developer experience

๐Ÿ‘จโ€๐Ÿ’ป About the Author

Viquar Khan is a Senior Data Architect at AWS Professional Services with 20+ years of expertise in distributed systems. Creator of Adaptive Granularity Governance: The Khan Microservice Pattern, the Service Decomposition Workflow, and the Microservices Maturity Assessment (KM3). Original methodologies by the author; please cite.

Credentials

  • ๐Ÿ† JSR 368 Expert Group Member (Java Message Service 2.1)
  • ๐Ÿ“š Author of "Data Engineering with AWS Cookbook" (Packt, 2026)
  • ๐ŸŒŸ 7.5M+ developers reached on Stack Overflow
  • ๐Ÿ‘ฅ 1,400+ GitHub followers (@vaquarkhan)
  • ๐Ÿ”ง 50+ open-source microservices repositories

Connect: LinkedIn | GitHub | Amazon Author | ๐ŸŽ“ Free Mentorship


๐ŸŒ Access This Book

๐Ÿ“– Read Online

๐ŸŽ“ Academic Access

๐Ÿ’พ Download Options


๐Ÿค Community & Support

๐ŸŒŸ Support This Open Knowledge Initiative

If you find this resource valuable, please help me keep it free and accessible:

โญ Star this repository - Help others discover this work
๐Ÿด Fork the project - Build upon these methodologies
๐Ÿ“– Cite properly - Support academic recognition

Get Involved

  • ๐Ÿ› Report Issues - Found an error or have suggestions?
  • ๐Ÿ’ก Share Case Studies - Connect with the author to share real-world implementation experiences
  • ๐Ÿ“Š View Impact - See global reach: 606 stars, 228 forks, 1,400+ followers on @vaquarkhan
  • ๐Ÿ”„ See Guidelines - Learn about acceptable contributions
  • โญ Star this repo if you find it valuable!

Professional Networks

Stay Updated

  • ๐Ÿ“ข Watch this repository for updates
  • ๐Ÿ”” Follow @vaquarkhan for announcements
  • ๐Ÿ“ง Subscribe to release notifications

๐Ÿ“œ License & Usage

This book is released under the MIT License - free for personal and commercial use.

Citation

Khan, V. (2026). Microservices Recipes: The Architect's Field Guide. 
GitHub. https://github.com/vaquarkhan/microservices-recipes-a-free-gitbook

๐Ÿš€ Ready to Begin Your Journey?

Choose Your Path

Start Reading Read Preface Quick Reference


"The journey of a thousand microservices begins with a single service boundary."

Build better, more scalable systems with proven methodologies. ๐Ÿš€


How to cite

Machine-readable metadata: CITATION.cff. Full guide: CITATIONS.md.

APA:

Khan, V. (2026). Microservices recipes: The architect's field guide (Version 2.0)
[Featuring Adaptive Granularity Governance: The Khan Microservice Pattern]. GitHub.
https://github.com/vaquarkhan/microservices-recipes-a-free-gitbook

IEEE:

[1] V. Khan, Microservices Recipes: The Architect's Field Guide, ver. 2.0,
featuring Adaptive Granularity Governance: The Khan Microservice Pattern. GitHub, 2026.
[Online]. Available: https://github.com/vaquarkhan/microservices-recipes-a-free-gitbook

Copyright ยฉ 2017-2026 by Vaquar Khan.

Adaptive Granularity Governance: The Khan Microservice Pattern, the Service Decomposition Workflow, and the Microservices Maturity Assessment (KM3) are original methodologies by Vaquar Khan; please cite. No trademark is claimed at this time.

MaterialLicense
Source codeMIT
Book text, diagrams, figuresCC BY-NC-ND 4.0

Details: LICENSING.md | COPYRIGHT.md | DISCLAIMER.md | NAMING.md

Last Updated: July 9, 2026 | Original work by Vaquar Khan