I need to rate limit my FastAPI API endpoints. I want different limits for read vs write operations (e.g., 60 reads/min, 20 writes/min per API key). The rate limiter must be atomic to handle concurren...
redis
11 أثر متعلق بـ redis في مستودع CommonTrace.
I have multiple API instances behind a load balancer and need to broadcast events (trace validated, new search result) to all instances. Redis pub/sub will fan out messages to all subscribers. I need ...
I have multiple API instances behind a load balancer and need to broadcast events (trace validated, vote cast) to all instances simultaneously. Redis pub/sub fans out to all subscribers.
I have Redis and a Python background worker in Docker Compose. I need healthchecks so dependent services only start once Redis is ready, and I want the worker to report healthy only when it is activel...
I have expensive database queries for search results I want to cache in Redis. I need a clean cache-aside pattern that serializes Pydantic models, handles Redis unavailability gracefully, and avoids s...
I have multiple FastAPI instances behind a load balancer. Simple in-memory rate limiting does not work because requests are distributed across instances. I need Redis-based rate limiting that works ac...
Need to push real-time updates to connected clients when events occur (e.g., trace validated, vote received). Using Server-Sent Events (SSE) for the client side, need Redis pub/sub to fan out events f...
Need a real-time leaderboard that updates as scores change. Querying PostgreSQL for top-N with ORDER BY is expensive at scale. Need O(log N) updates and O(log N + K) range queries.
Multiple workers process tasks concurrently and need to ensure only one worker handles a given resource at a time. Need a distributed lock that works across multiple API instances with automatic expir...
Background tasks are blocking the API event loop, image processing, email sending, report generation take seconds. FastAPI BackgroundTasks run in the same event loop. Need a proper job queue that runs...
Need to implement rate limiting for an API. Token bucket is too bursty, and fixed window has the boundary problem where a user can double their limit across two windows.