liveBook · Manning

Scalability

As explained in Build AI-Enhanced Web Apps

Scalability is the ability of a system to maintain acceptable operation as workload, data volume, or user demand increases.

Scalability is the ability of a web application to keep operating as traffic and workload grow. For an AI application, plan beyond the app server: infrastructure capacity, resource allocation, load balancing, databases, and external services all affect whether a traffic spike becomes downtime. section 1.2.1 section 9.6.1

Choose production measures according to expected load:

  • Below 10,000 requests per day, establish uptime and response-time monitoring, error tracking, essential security, daily backups, and a way to add application instances. section 9.6.2
  • At 10,000–100,000 requests per day, strengthen the infrastructure; a CDN can distribute static assets and reduce geographic latency. Check whether the hosting provider already supplies one. section 9.6.2
  • Configure production databases and services such as authentication and rate limiting alongside the application. Vercel offers a streamlined Next.js deployment path; growing demands may eventually require moving some components elsewhere. section 9.6.1

Document-processing workload

In a RAG application that accepts uploaded PDFs and DOCX files, parsing documents and creating vector embeddings can be heavy work. Moving those tasks to background workers or serverless functions can improve responsiveness, scalability, and fault tolerance. Rate limits and upload quotas also help restrict excessive upload attempts. section 11.2.2 section 11.4

How Build AI-Enhanced Web Apps covers it

How deep it goes
Provides traffic-based deployment checks and workload mitigations, but does not specify capacity calculations or a complete scaling implementation.
Examples
Uses request-per-day deployment tiers and uploaded-document parsing and embedding as concrete workload examples.
What you can do after
Operate/configure it by matching deployment checks to expected traffic and moving heavy document work off the request path.
How it connects
Connects scalability to load balancing, horizontal scaling, CDNs, monitoring, rate limiting, and background processing.

Also explained in

Compare how 27 books explain scalability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI-Enhanced Web Apps. The section links point to the parts of the book it draws on.