π Microservices Recipes
The Architectβs Field Guide

Featuring Adaptive Granularity Governance: The Khan Microservice Pattern
by Viquar Khan
Version 2.0 - Adaptive Granularity Governance Edition (January 2026)
Start reading β Β· Preface Β· Author
π Copyright & Publication Information
Copyright Β© 2017-2026 by Vaquar Khan. Dual license: MIT for code; CC BY-NC-ND 4.0 for book prose, diagrams, and figures. See LICENSING.md.
Publication Details
- Title: Microservices Recipes: The Architectβs Field Guide
- Author: Vaquar Khan
- First Edition: January 2017
- Second Edition: January 2026 (Adaptive Granularity Governance: The Khan Microservice Pattern Edition)
- Publisher: Open Source (GitHub)
- Code license: MIT
- Prose and figures: CC BY-NC-ND 4.0
- Repository: https://github.com/vaquarkhan/microservices-recipes-a-free-gitbook
Original Methodologies (please cite)
The following are original methodologies by Vaquar Khan. No trademark is claimed at this time:
- Adaptive Granularity Governance: The Khan Microservice Pattern (formerly Adaptive Granularity Strategy)
- Service Decomposition Workflow
- Microservices Maturity Assessment (KM3)
Citation Requirement
When referencing this work, please use proper academic citation. See Citations Guide for complete formatting guidelines.
Legal Notice
This work is protected by copyright law. Unauthorized reproduction, distribution, or transmission of any part of this work without permission is prohibited. For permissions beyond the scope of the MIT License, contact the author.
π View Complete Legal Disclaimer
π Academic & Research Access
π Complete 20-Chapter Edition
This open-source edition includes all 20 chapters. Additional academic licensing and citation guidance remain available for students, faculty, and researchers.
| π§ Request Academic Access / Mentorship | π View Citations Guide | π Version History |
π― FREE 1:1 Mentorship Available
Get personal guidance from the author: π
Book FREE session with Viquar Khan
Career advice, architecture guidance, and research support - completely free!
π From Monolith to Microservices

Visualizing the transformation journey with Adaptive Granularity Governance: The Khan Microservice Pattern
π― What Youβll Master
β
Adaptive Granularity Governance: The Khan Microservice Pattern for optimal service boundaries
β
Distributed Systems design and implementation
β
Anti-Pattern Prevention and failure analysis
β
Real-World Patterns from industry leaders
β
Production-Ready code examples and recipes
π Book Statistics
| Metric | Value |
|---|---|
| Chapters | 20 comprehensive chapters |
| Read Time | ~15 hours total |
| Code Examples | 50+ practical implementations |
| Patterns | 25+ architectural patterns |
| Difficulty | Intermediate β Advanced β Expert |
π Quick Start
π° For Beginners
- Start with Chapter 1
- Read the Preface
- Progress through Parts I β IX
β‘ For Experienced Practitioners
- Review the Table of Contents below
- Jump to specific challenge areas
- Use Quick Reference
ποΈ For Architects
- Focus on strategic chapters (2, 3, 7)
- Study Adaptive Granularity Governance: The Khan Microservice Pattern
- Review Complete Book Preview
π Table of Contents
π Front Matter
- π Preface - The Architectβs Mandate
- π¨βπ» About the Author - Viquar Khan & Adaptive Granularity Governance: The Khan Microservice Pattern
- π Free Mentorship - 1:1 Sessions with Viquar Khan
- π Free Academic Access - Complete 20-Chapter Edition for Students & Researchers
- π Citations Guide - How to Cite This Work Properly
- π Version History - Release Lineage & Evolution
- π Copyright Notice - Complete Copyright & Legal Information
- βοΈ Disclaimer - Copyright & Legal Notice
- π€ Contributing - How to Contribute
π Part I: The Sociotechnical Substrate
Focus: Aligning organization and architecture to prevent the βDistributed Monolithβ
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 1 | The Definition Wars & The Reality of SOA | π 15 min | π― Intermediate |
| Chapter 2 | The Distributed Monolith and Anti Patterns | π 25 min | π― Advanced |
| Chapter 3 | Strategic Decomposition: Domain Driven Design | π 20 min | π― Advanced |
ποΈ Part II: Data Architecture
Focus: Managing data consistency and transactions in distributed systems
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 4 | The End of ACID | π 30 min | π― Expert |
| Chapter 5 | Distributed Transactions (The Saga Pattern) | π 25 min | π― Expert |
| Chapter 6 | The Dual Write Problem | π 20 min | π― Advanced |
| Chapter 7 | Data Mesh vs. Data Fabric | π 18 min | π― Advanced |
π Part III: Inter Process Communication
Focus: Moving bits between services without creating latency storms
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 8 | The Trinity of Protocols | π 22 min | π― Advanced |
| Chapter 9 | The Rise of eBPF Networking and the Post Sidecar Era | π 28 min | π― Expert |
| Chapter 10 | Asynchronous Messaging Patterns | π 30 min | π― Expert |
π― Part IV: Adaptive Granularity Governance: The Khan Microservice Pattern
Focus: Quantitative framework for microservices decomposition
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 11 | Adaptive Granularity Governance: The Khan Microservice Pattern - Origin, Metrics, and Maturity Model | π 45 min | π― Expert |
π§± Part V: Resilience Engineering & Advanced Scaling
Focus: Blast-radius control and evidence-based resilience
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 12 | Shuffle Sharding & Blast-Radius Minimization | π 55 min | π― Expert |
| Chapter 13 | Chaos Engineering & Evidence-Based Resilience | π 60 min | π― Expert |
ποΈ Part VI: The Platform Engineering Shift
Focus: Infrastructure APIs, telemetry, and cost-aware observability
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 14 | Infrastructure as Code at Scale | π 58 min | π― Expert |
| Chapter 15 | Observability 2.0: Telemetry, Causality, and Cost | π 62 min | π― Expert |
π€ Part VII: The AI Frontier (2026)
Focus: Agentic systems and retrieval at production scale
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 16 | Agentic AI Architectures in Deterministic Systems | π 58 min | π― Expert |
| Chapter 17 | Retrieval-Augmented Generation at Scale | π 60 min | π― Expert |
π Part VIII: The Migration Playbook
Focus: Evolutionary paths from monolith to services
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 18 | The Modular Monolith | π 55 min | π― Expert |
| Chapter 19 | The Strangler Fig Pattern | π 55 min | π― Expert |
π Part IX: Organizational Maturity
Focus: Assessing and governing microservices excellence
| Chapter | Title | Read Time | Difficulty |
|---|---|---|---|
| Chapter 20 | The Khan Microservices Maturity Model (KM3) | π 50 min | π― Expert |
π Reference Materials
| Resource | Description |
|---|---|
| π Glossary | Comprehensive definitions of microservices terms |
| β‘ Quick Reference | Handy reference cards for patterns and practices |
| π Bibliography | Curated list of books, articles, and resources |
π― What Makes This Book Special
Adaptive Granularity Governance: The Khan Microservice Pattern for Adaptive Granularity
At the heart of this book is Adaptive Granularity Governance: The Khan Microservice Pattern: a systematic approach to determining optimal microservice boundaries. Unlike rigid methodologies, it adapts to your specific:
- 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
π¨βπ» 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, Service Decomposition Workflow, and Microservices Maturity Assessment.
π Free Mentorship Available
Book a FREE 1:1 mentorship session with Viquar Khan:
π
Schedule on ADPList
| Connect: LinkedIn | GitHub | Amazon Author |
π€ Community & Support
π Support This Open Knowledge Initiative
If you find this resource valuable:
β 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
- π See Guidelines - Learn about acceptable contributions
Ready to Begin Your Journey?
Choose Your Path:
π Start Reading - Chapter 1
π Read Preface
β‘ Quick Reference
Last Updated: February 11, 2026 | Original work by Viquar Khan