I wanted to build long polling requests in django or fastapi.
I want to use redis for it. I will listen to some key in redis.
and when something updates i will return changed result as soon as some change happens in my db to client.
But my server accepts many requests at the same time. Is there any way to build non blocking version of it?
I wanted to build long polling requests in django or fastapi.
I want to use redis for it. I will listen to some key in redis.
and when something updates i will return changed result as soon as some change happens in my db to client.
But my server accepts many requests at the same time. Is there any way to build non blocking version of it?
Share Improve this question asked Feb 10 at 16:03 Shukurullox KomiljonovShukurullox Komiljonov 192 silver badges6 bronze badges1 Answer
Reset to default 0Yes! You can implement long polling with Redis in a non-blocking way using FastAPI with async Redis (aioredis) or Django with Django Channels.