AWS published Infinity on 23 October 2026: an Apache-2.0 Rust framework at github.com/hydro-project/infinity, part of Hydro, the AWS and UC Berkeley collaboration. The announcement calls it an early research release for feedback, not a supported product. What matters is the concurrency model: Infinity treats an agent as a stackless coroutine whose only expensive moment is the model call and whose existence between turns is a few kilobytes of conversation history. That turns “how many agents can I run” from a capacity question into a storage question.
AWS publicó Infinity el 23 de octubre de 2026: un framework en Rust bajo Apache-2.0, github.com/hydro-project/infinity, parte de Hydro, la colaboración entre AWS y UC Berkeley. El anuncio lo califica como release temprana de investigación, no como producto soportado. Lo relevante es el modelo de concurrencia: el agente es una corrutina sin pila cuyo único momento caro es la llamada al modelo; entre turnos solo queda historial. Eso convierte “cuántos agentes puedo ejecutar” en una pregunta de almacenamiento.
The Await, Not the Thread
El await, No el Hilo
In the conventional shape, an agent is a thread that blocks on a tool call. A two-second round trip holds a stack, a socket, and a slot in a connection pool for those two seconds. Multiply by tens of thousands and the arithmetic fails long before the CPU does. Infinity inverts it: a tool call is a suspension point. The runtime dispatches the call, persists the conversation, and frees the task. When the result arrives it reloads history and resumes. Nothing waits, because nothing is left to wait: an idle agent is conversation bytes, not a stack.
En la forma convencional, un agente es un hilo bloqueado en una llamada a herramienta: dos segundos de round trip retienen pila, socket y un slot del pool. Multiplica por decenas de miles y la aritmética falla mucho antes que la CPU. Infinity lo invierte: la llamada es un punto de suspensión. El runtime la despacha, persiste la conversación y libera la tarea; cuando llega el resultado, recarga el historial y reanuda. Nadie espera, porque un agente inactivo son bytes de conversación, no una pila.
A Slice Is Five Steps, One of Which Dispatches
Una rebanada son cinco pasos, uno de los cuales despacha
Execution is chunked into bounded slices. Each slice must not block, and each does five things: load history from a pluggable store, run one model completion, persist the output, dispatch at most one tool call, and end. Everything that can resume an agent — user text, tool results, timers, child-agent reports — arrives as a message on a per-thread input queue, and dequeuing one launches a slice. The one-dispatch rule keeps the boundary between running and waiting unambiguous: the runtime always knows whether a thread owns compute or owes a message.
La ejecución se divide en rebanadas acotadas, o slices. Cada una no debe bloquear y hace cinco cosas: cargar historial de un store conectable, ejecutar una completion, persistir la salida, despachar como máximo una llamada a herramienta y terminar. Todo lo que puede reanudar a un agente — texto, resultados, timers, reportes de hijos — llega como mensaje a una cola por hilo, y desencolar uno lanza una rebanada. Esa regla de un solo despacho mantiene inequívoco el límite entre ejecutar y esperar.
Agents live in an agent system: a pool of threads sharing stores, tools, and a model, arranged like actors. Each thread has a thread_id and its own queue, no shared mutable state, and communication by message passing. Same-thread messages are processed in order, one slice at a time; different threads run in parallel. In long-running mode an active thread holds a lightweight task that exits when no work remains and restarts on the next message.
Los agentes viven en un agent system: un pool de hilos que comparten stores, herramientas y modelo, al estilo de actores. Cada hilo tiene un thread_id, su propia cola y ningún estado mutable compartido; los mensajes del mismo hilo se procesan en orden, una rebanada a la vez. En modo long-running, un hilo activo mantiene una tarea ligera que termina cuando no queda trabajo y se reinicia con el siguiente mensaje.
The Memory Number, With Caveats
La cifra de memoria, con salvedades
The headline measurement is one run on a single thread of an AMD EPYC 9R14: 80,000 agents, 3.2M completions, 20 turns per agent, in-memory stores. Each turn was a ~1.2 KB streamed completion that called a tool, the result returning through the input queue, then a second completion to close the turn. Resident memory grew linearly at ~100 KB per idle agent, hence ~75,000 concurrent agents in 8 GB. These figures are vendor-run and self-reported: no independent reproduction is published, no benchmark harness ships with the post, and 100 KB is an idle agent at 20 turns of history.
La medición principal es una corrida en un solo hilo de un AMD EPYC 9R14: 80.000 agentes, 3,2M de completions, 20 turnos por agente, stores en memoria. Cada turno era una completion en streaming de ~1,2 KB que llamaba a una herramienta; el resultado volvía por la cola de entrada y una segunda completion cerraba el turno. La memoria creció de forma lineal a ~100 KB por agente inactivo: de ahí ~75.000 agentes concurrentes en 8 GB. Todo es auto-reportado por el vendor, sin reproducción independiente ni harness publicado, y 100 KB corresponde a 20 turnos.
Synthetic Tool Calls: receive_event__injected
Llamadas a herramienta sintéticas: receive_event__injected
Chat APIs assume one result per tool call. Real agents receive events: a webhook fires, a timer expires, a child agent reports. Appending a second result violates the protocol; injecting a user message misattributes authorship; putting the event in the system prompt destroys ordering. Infinity injects an assistant tool call the model never made, named receive_event__injected, followed by a matching tool result carrying the payload. Arguments preserve provenance — original_tool_name, original_tool_call_id, original_args. The runtime never advertises this tool and rejects it if the model calls it; the __injected suffix marks runtime authorship.
Las APIs de chat asumen un resultado por llamada a herramienta. Los agentes reales reciben eventos: un webhook, un timer que expira, el reporte de un hijo. Añadir un segundo resultado viola el protocolo; inyectar un mensaje de usuario atribuye mal la autoría; meter el evento en el system prompt destruye el orden. Infinity inyecta una llamada del asistente que el modelo nunca hizo, receive_event__injected, seguida de un resultado con el payload y argumentos que preservan la procedencia — original_tool_name, original_tool_call_id, original_args. El sufijo __injected marca autoría del runtime, que nunca la anuncia al modelo ni la acepta de vuelta.
spawn_thread works like a subscription: report_to_parent and the final report on close_thread arrive as synthetic events on the original call — either through a temporary child thread that inherits context, or as associative events appended to the subscribing thread. The pattern generalizes: it retrofits event-driven semantics onto APIs that only understand request and response.
spawn_thread funciona como suscripción: report_to_parent y el reporte final de close_thread llegan como eventos sintéticos sobre la llamada original — vía un hilo hijo temporal o como eventos asociativos en el hilo suscriptor. El patrón generaliza: adapta semántica event-driven a APIs que solo entienden request y response.
Step Mode: Nothing Stays Resident
Modo step: nada queda residente
Step mode removes even the assumption of a resident process: the platform invokes step once per batch of delivered messages, and nothing survives between invocations. The reference topology is an SQS FIFO queue with one MessageGroupId per thread — serialization without locks — Lambda to run a step and exit, Aurora DSQL for histories, DynamoDB for deduplication, and sleep tools via SQS delivery delays plus EventBridge Scheduler. CDK constructs are provided. The requirements are serverless orthodoxy: bounded time, no process affinity, at-least-once delivery with idempotent processing keyed by stable IDs, and turns that commit only completed output.
El modo step elimina incluso el supuesto de un proceso residente: la plataforma invoca step una vez por lote de mensajes entregados y nada sobrevive entre invocaciones. La topología de referencia es una cola SQS FIFO con un MessageGroupId por hilo — serialización sin locks —, Lambda para un step y salir, Aurora DSQL para historiales, DynamoDB para deduplicación y sleep tools vía retardos de SQS más EventBridge Scheduler, con constructs de CDK. Los requisitos son ortodoxia serverless: tiempo acotado, sin afinidad de proceso, entrega at-least-once con procesamiento idempotente y turnos que solo confirman salida completa.
Why There Is No Replay
Por qué no hay replay
The contrast with durable execution is the architectural point. Temporal, Restate, and Dapr Workflows keep an event-sourced journal and replay workflow code to rebuild state after a crash — generality paid for with replay cost and a determinism constraint over everything inside the workflow. Lambda durable functions (re:Invent 2025, 16 regions by April 2026, Go SDK GA on 15 October 2026) use the same checkpoint model: the handler re-runs from the start, skipping completed steps, suspending up to one year without compute charges.
El contraste con la ejecución durable es el punto arquitectónico. Temporal, Restate y Dapr Workflows mantienen un journal event-sourced y reproducen el código para reconstruir el estado tras una caída: generalidad que se paga con costo de replay y una restricción de determinismo. Las Lambda durable functions (re:Invent 2025, 16 regiones en abril de 2026, SDK de Go en GA el 15 de octubre de 2026) usan el mismo modelo: el handler se re-ejecuta desde el inicio, salta los pasos completados y se suspende hasta un año sin cargos.
Infinity has no replay of model calls. State is data, not a journal; a slice is one completion plus one dispatch, so nothing is re-executed and determinism is not required. The boundary is the message, not the checkpoint. That is why ~100 KB per agent is coherent: the durable artifact is the conversation, and the conversation was already what you had to store.
Infinity no hace replay de las llamadas al modelo. El estado es dato, no journal; una rebanada es una completion más un despacho, así que nada se re-ejecuta y el determinismo no hace falta. El límite es el mensaje, no el checkpoint. Por eso ~100 KB por agente es coherente: el artefacto durable es la conversación, y la conversación ya era lo que había que almacenar.
What It Does Not Solve
Lo que no resuelve
The blog carries an honest open-questions section, which the README does not. Models are trained on synchronous tool-call traces; how event count and ordering, or threaded versus associative delivery, change model decisions is unmeasured. Scheduling is arrival-order FIFO with no priorities and no fairness guarantees across threads. Compaction in large conversation trees is unstudied — summaries are indexed by history position, so a child spawned before compaction can still reconstruct inherited history. Event provenance for internet-exposed agents receiving inauthentic payloads is unresolved while staying stateless.
El post incluye una sección honesta de preguntas abiertas. Los modelos se entrenan con trazas síncronas de tool calls; cuánto alteran sus decisiones el número y el orden de los eventos, o la entrega threaded frente a la asociativa, no está medido. El scheduling es FIFO por orden de llegada, sin prioridades ni fairness entre hilos. La compactación en árboles grandes no está estudiada: los resúmenes se indexan por posición y un hijo creado antes de compactar aún reconstruye el historial heredado. La procedencia de eventos ante payloads no auténticos sigue sin resolverse.
Beyond that list: state size still grows with history, so 100 KB at 20 turns is not 100 KB at 2,000; wake latency is a queue hop plus a model call, with no warmth guarantee; and exactly-once tool effects are explicitly not provided, so every side-effecting tool needs its own idempotency key. Abandoned threads and orphaned results need garbage collection. The 80,000-agent run used in-memory stores, so durable-configuration throughput is unpublished. None of that weakens the model — it tells you what to benchmark first.
Más allá de esa lista: el estado crece con el historial, así que 100 KB con 20 turnos no son 100 KB con 2.000; despertar cuesta un salto de cola más una llamada al modelo, sin garantía de calidez; y los efectos exactly-once no se ofrecen, así que cada herramienta con efectos secundarios necesita su propia idempotency key. Los hilos abandonados y los resultados huérfanos necesitan recolección de basura, y la corrida de 80.000 agentes usó stores en memoria, así que el throughput durable no está publicado. Nada de eso invalida el modelo: indica qué medir antes de apostar.
References
Referencias
- AWS Open Source Blog. Introducing Infinity: a runtime for extreme agent concurrency. aws.amazon.com
- Hydro Project. Infinity — a Rust framework for massively concurrent agentic systems. GitHub
- Hydro Project. Infinity project site. infinity.hydro.run
- AWS. AWS Lambda durable functions. docs.aws.amazon.com
- AWS. Durable functions — basic concepts. docs.aws.amazon.com
- AWS. Durable execution SDK. docs.aws.amazon.com
- AWS. AWS Lambda durable functions Go SDK support. aws.amazon.com
- AWS. Amazon SQS FIFO queues. docs.aws.amazon.com
- AWS. Amazon Aurora DSQL. docs.aws.amazon.com
- AWS. Amazon EventBridge Scheduler. docs.aws.amazon.com
- Temporal. Temporal documentation — durable execution. docs.temporal.io
- Restate. Restate documentation. docs.restate.dev
- AWS Open Source Blog. Introducing Infinity: a runtime for extreme agent concurrency. aws.amazon.com
- Hydro Project. Infinity — un framework en Rust para sistemas agénticos masivamente concurrentes. GitHub
- Hydro Project. Sitio del proyecto Infinity. infinity.hydro.run
- AWS. AWS Lambda durable functions. docs.aws.amazon.com
- AWS. Durable functions — conceptos básicos. docs.aws.amazon.com
- AWS. Durable execution SDK. docs.aws.amazon.com
- AWS. Soporte del SDK de Go en AWS Lambda durable functions. aws.amazon.com
- AWS. Amazon SQS FIFO queues. docs.aws.amazon.com
- AWS. Amazon Aurora DSQL. docs.aws.amazon.com
- AWS. Amazon EventBridge Scheduler. docs.aws.amazon.com
- Temporal. Documentación de Temporal — ejecución durable. docs.temporal.io
- Restate. Documentación de Restate. docs.restate.dev