mirror of
https://github.com/rnvm9wjdtj-bot/myaps_api.git
synced 2026-06-02 05:54:40 +00:00
78269d8d74
实现功能: - Prometheus指标暴露(/metrics端点) - 背压控制(主动限流机制) - 事件去重(Redis+文件降级) - 配置热更新(审计日志) - 主备故障转移(心跳检测) - 分布式锁安全降级 - 连接池监控(泄漏检测) - 重试策略优化(指数退避) 新增接口: - GET /metrics, /health, /binlog/status - GET /binlog/backpressure/status - POST /binlog/config/update, GET /binlog/config/audit - GET /binlog/dedup/stats - GET /binlog/failover/status 测试覆盖: - 单元测试71个,全部通过 - 压测验证:吞吐量499事件/秒,达标率99.91%
28 lines
477 B
Plaintext
28 lines
477 B
Plaintext
fastapi>=0.110.0
|
|
uvicorn[standard]>=0.29.0
|
|
websockets>=16.0
|
|
tortoise-orm>=1.1.7
|
|
pydantic>=2.0.0
|
|
aiomysql>=0.2.0
|
|
asyncpg>=0.29.0
|
|
python-dotenv>=1.0.0
|
|
requests>=2.32.5
|
|
tomlkit>=0.13.3
|
|
apscheduler>=3.11.1
|
|
pandas>=2.3.3
|
|
mysql_replication>=1.0.9
|
|
qrcode>=7.4.2
|
|
pillow>=10.4.0
|
|
python-barcode>=0.15.1
|
|
python-multipart>=0.0.20
|
|
xlrd>=2.0.2
|
|
openpyxl>=3.1.5
|
|
pycryptodome>=3.23.0
|
|
aiohttp
|
|
httpx
|
|
httpx[http2]
|
|
psutil>=7.2.2
|
|
redis>=7.0.0
|
|
gunicorn>=25.3.0
|
|
loguru>=0.7.0
|
|
prometheus-client>=0.16.0 |