最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Creating long polling requests in django or fastapi - Stack Overflow

programmeradmin2浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Yes! You can implement long polling with Redis in a non-blocking way using FastAPI with async Redis (aioredis) or Django with Django Channels.

发布评论

评论列表(0)

  1. 暂无评论