Leanpub Header

Skip to main content

Production-Grade Agentic Al

From brittle workflows to deployable autonomous systems

Most AI systems fail in production. They chain prompts together and call it "agentic". They collapse under real-world pressure.

The gap isn't the technology – it's missing infrastructure.

This book bridges that gap. Learn the architecture patterns and infrastructure to build autonomous AI systems that work at scale. Master what distinguishes real agents from chatbots with tools. Deploy with confidence.

Stop building demos. Start shipping production agentic AI.

Minimum price

$29.99

$49.99

You pay

$49.99

Author earns

$39.99
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
About

About

About the Book

┌─────────────────────────────────────────────────────────────────┐
│ EARLY ACCESS PRICING                                            │░░
│                                                                 │░░
│ This comprehensive book is being written in public.             │░░
│                                                                 │░░
│ Oct 10 - Oct 24: $4.99+ (Founder Tier)                          │░░
│ Oct 25 - Nov 7: $9.99+ (Early Access)                           │░░
│ Nov 8 - Nov 21: $14.99+ (Pre-Launch)                            │░░
│                                                                 │░░
│ → Nov 22 - Dec 5: $49.99 (Launch Period) ← YOU ARE HERE         │░░
│                                                                 │░░
│ Dec 6+: $69.99 (Standard Price)                                 │░░
└─────────────────────────────────────────────────────────────────┘░░
  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Prefer a Hard Copy?

Get the Kindle or Paperback from Amazon.

* Paperback buyers: Email me the receipt to get the PDF+Kindle.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

About the book

Most AI systems today fail in production. They chain prompts together and call it "agentic". They rely on a dozen stitched-together tools. They collapse under real-world pressure. The gap between demo and production remains enormous, not because the technology isn't ready, but because the infrastructure doesn't exist.

This book bridges that gap.

It provides a comprehensive guide to the architecture, design principles, and infrastructure patterns needed to build autonomous AI systems that actually work in production. Moving beyond vendor-specific tutorials and framework documentation, you'll understand the universal principles that make agentic systems reliable, observable, and deployable at scale.

What You'll Learn

Foundation: Understanding True Agency

  • The three pillars that distinguish autonomous agents from chatbots with tools
  • Why most "agentic" systems are just brittle prompt chains
  • The architectural decisions that enable real autonomy

Memory Systems That Scale

  • Multi-tier memory architecture: working, episodic, and semantic
  • Production-ready semantic search with vector databases
  • Memory lifecycle management and retrieval strategies
  • Handling context windows and memory pruning

Intelligent Orchestration

  • Goal decomposition and task planning that adapts to complexity
  • Multi-agent coordination patterns and communication protocols
  • Failure handling, retries, and graceful degradation
  • Loop detection and infinite recursion prevention

Production Observability

  • Reasoning transparency: understanding what agents are thinking
  • Cost attribution across agent interactions and model calls
  • Audit trails for compliance and debugging
  • Performance monitoring and bottleneck identification

Deployment at Scale

  • Declarative configuration for reproducible deployments
  • Automatic failover and circuit breakers
  • Horizontal scaling patterns for agent workloads
  • Resource management and rate limiting

Multi-Model Infrastructure

  • Avoiding vendor lock-in through abstraction layers
  • Intelligent routing based on task complexity and cost
  • Fallback strategies when primary models fail
  • Testing across multiple model providers

From Theory to Practice

  • Real-world production examples and case studies
  • Common failure modes and how to prevent them
  • Performance optimization techniques
  • Cost management strategies for production deployments

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Who This Book Is For

This book is for engineers, architects, and technical leads building AI systems beyond the prototype stage. Whether you're scaling an existing agent system or starting fresh, you'll gain the patterns and practices needed to build reliable autonomous AI infrastructure.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

About the Author

Ran Aroussi is a self-taught software engineer with 30+ years of experience building production systems – from ad-serving engines delivering 3 billion ads daily to creating yfinance, one of the world's most widely adopted data libraries (10M+ monthly users).

Frustrated by the gap between AI demos and production reality, he wrote this book for engineers tired of hype and ready to build infrastructure that actually works at scale.

Ran has led engineering teams across finance, ad-tech, data infrastructure, and AI deployment. He's built production systems that handle billions of requests, managed distributed teams, and architected infrastructure that scales. This book distills decades of experience into practical patterns for building AI systems that work in the real world.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Author

About the Author

Ran Aroussi

Helping people work smarter. CTO as a Service @ automaze.io.

Ran Aroussi, a 30+ year tech veteran, entrepreneur, and founder of Automaze. His open-source libraries receive 10M+ downloads monthly. Ran led engineering teams across finance, data infrastructure, and AI deployment, and has extensive experience building production systems that scale.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub