πŸ“– Microservices Recipes

The Architect’s Field Guide

Book Cover

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 Β© 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.

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

Microservices Transformation

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

  1. Start with Chapter 1
  2. Read the Preface
  3. Progress through Parts I β†’ IX

⚑ For Experienced Practitioners

  1. Review the Table of Contents below
  2. Jump to specific challenge areas
  3. Use Quick Reference

πŸ—οΈ For Architects

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

πŸ“‹ Table of Contents

πŸ“š Front Matter


πŸ“– 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