Creating long polling requests in django or fastapi
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?
Yes! You can implement long polling with Redis in a non-blocking way using FastAPI with async Redis (aioredis) or Django with Django Channels.