Skip to content
Courses/Local MLOps and model deployment/Queues, rate limits, and cache

Queues, rate limits, and cache

Models are slow and expensive compared to a normal function. If several people use them at once, you need queues, limits, retries, and cache before you get a nasty surprise.

  • Separate interactive requests from heavy jobs.
  • Apply rate limits per user, team, or tenant.
  • Use cache without breaking security or data freshness.

What goes in a queue and what doesn't

  • Interactive: chat, autocomplete, actions the user expects on screen.
  • Queue: summarize 100 PDFs, generate audio, process videos, evaluate many prompts.
  • Scheduled: reindex documents, recalculate embeddings, run nightly evals.

Conceptual rate limits

Terminal
limites:
  usuario_gratis:
    requests_minuto: 10
    tokens_dia: 20000
  equipo_interno:
    requests_minuto: 60
    tokens_dia: 500000
  trabajos_pesados:
    concurrencia: 2
    reintentos: 1
    timeout_segundos: 300

Responsible caching

  • Cache public responses or repeated questions without private data.
  • Do not cache responses with personal data without explicit design.
  • Include model, prompt version, and permissions in the cache key.
  • Invalidate cache when documents or policies change.
Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue