Cursor Keep Alive

No Change
assess
First Added:May 13, 2025 Updated: July 29, 2026

Cursor keep-alive is an HTTP API pattern for incremental results from long-running work (for example, a streaming RAG query) when you cannot rely on an open WebSocket. We assess it under Technique in the garden.

Summary

Key points:

TopicNotes
StorageHot state in Redis; durable audit log optional
IdempotencySame cursor + offset returns same chunk
BackpressureClient polls with If-None-Match or since offset
ErrorsSurface terminal error on poll; do not leave cursors orphaned
SecurityOpaque, unguessable IDs; no cross-tenant cursor reuse

Origin in our writing: described for RAG query APIs in RAG Pipeline (embedding CRUD vs streaming query split).

References

Details

TopicNotes
StorageHot state in Redis; durable audit log optional
IdempotencySame cursor + offset returns same chunk
BackpressureClient polls with If-None-Match or since offset
ErrorsSurface terminal error on poll; do not leave cursors orphaned
SecurityOpaque, unguessable IDs; no cross-tenant cursor reuse

Origin in our writing: described for RAG query APIs in RAG Pipeline (embedding CRUD vs streaming query split).

References