liveBook · Manning

Scalability

As explained in Generative AI in Action

Scalability is the ability of a system to accommodate increasing workloads, users, or traffic while maintaining acceptable operation.

Scalability is the ability of a GenAI application to handle changing demand while maintaining acceptable performance. Moving from a proof of concept to production means planning for more users, traffic spikes, and the resources needed to serve them reliably—not just making the model work once. section 10.2.2 section 11.0

Treat scaling as an application-wide design and operating task:

  • Distribute requests with load balancing and adjust capacity with auto-scaling. Consider asynchronous processing or queues for intensive tasks and peak workloads. section 10.2.2 section 10.5.1
  • Test throughput and latency under stress, then monitor real usage. Caching frequently requested information and managing token usage can reduce computational load; quotas or rate limits can contain usage spikes and cost. section 11.5.1
  • Choose deployment infrastructure against capacity, availability, cost, and data requirements. Cloud services offer flexible capacity; on-premise hosting offers more control but may scale more slowly; hybrid deployment adds management complexity. section 11.2

A growing enterprise Q&A service

In a retrieval-augmented generation (RAG) service, adding documents enlarges the retrieval index and increases compute and storage needs, especially with dense retrieval. More simultaneous questions also put pressure on request handling and response times. Keep the index efficient and current, parallelize requests where appropriate, manage retries, and monitor where delays or errors arise—retrieval and generation can fail for different reasons. Scaling an outdated index will not make its answers relevant. section 7.6

A scalable deployment still has limits: model APIs impose quotas, and added capacity carries cost. Use monitoring and operational controls to check that performance, reliability, security, and compliance remain acceptable as demand changes. section 10.2.2 section 11.4

How Generative AI in Action covers it

How deep it goes
Provides deployment and operational measures, including load balancing, auto-scaling, stress testing, and monitoring, without specifying capacity thresholds.
Examples
Uses growing RAG indexes and model-routing architecture to illustrate increasing data volumes and demand spikes.
What it assumes
Assumes a GenAI application using models or model APIs; introduces scaling through architecture and operations rather than model internals.
What you can do after
Operate/configure it through deployment selection, load balancing, auto-scaling, monitoring, and performance optimization.
How it connects
Connects scalability to retrieval-augmented generation, orchestration, caching, latency, rate limiting, and observability.

Also explained in

Compare how 27 books explain scalability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.