Stream to Batch pipeline with RedisRequestQueue
The previous guide uses InMemoryRequestQueue to store the incoming requests. In production, you may want to use a persistent queue to store the incoming requests.
Redis is a popular in-memory data store with persistent storage, and it's easy to set up and use with LangBatch. This guide will show you how to set up a Redis-based RedisRequestQueue.
Replace
with