Skip to content
Hacker News · AI· agustin018·· 22 days agoSelectedAI score67

开源项目 FastAPI-stream-lease 发布:基于 Redis 限制并发 SSE 与 LLM 流连接数

FastAPI-stream-lease – Limit concurrent SSE/LLM streams instead of req/min

Not yet translated; shown in Chinese.

AI guide

开源库 FastAPI-stream-lease 正式发布,用于在 FastAPI 和 Starlette 服务中通过 Redis 控制并发活跃的 SSE、LLM token 流和 WebSocket 连接数。

Why it matters

针对长连接流式响应无法用传统频率限制计量的痛点,该方案提供了直接可落地的分布式并发流控制思路与高可用配置参考。

Source:Hacker News · AI · github.com