FastAPI
困难
面试题库
FastAPI
中等
FastAPI 如何集成 Celery?任务如何定义、投递与获取结果?
FastAPI
中等
BackgroundTasks 的局限性有哪些?为什么它不适合长时间任务?
FastAPI
中等
BackgroundTasks 与 Celery 的本质区别是什么?各自适用场景?
FastAPI
简单
BackgroundTasks 的基本用法是什么?它在什么时机执行?
FastAPI
困难
在流式响应中如何做错误处理与提前终止?
FastAPI
中等
WebSocket 与 REST 接口能否共用同一个 APIRouter?
FastAPI
困难
如何在 async def 视图里用 async generator 逐块产出流式数据并处理客户端断开?
FastAPI
中等
流式响应与普通响应在响应头(Content-Length、Transfer-Encoding)上有何区别?
FastAPI
中等
如何实现 SSE(text/event-stream)并与前端 EventSource 对接?
FastAPI
中等
如何用 StreamingResponse 实现流式输出?
FastAPI
中等