chaoge 78269d8d74 新增: binlog监听器高可用增强模块
实现功能:
- 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%
2026-05-22 07:08:49 +08:00
2026-05-10 21:43:32 +08:00
2026-05-22 00:23:30 +08:00
2026-05-22 00:23:30 +08:00
2026-05-20 19:37:26 +08:00
2026-05-21 21:47:19 +08:00
2026-05-10 23:26:56 +08:00
2026-05-13 17:16:49 +08:00
2026-05-22 00:23:30 +08:00
2026-05-13 00:23:41 +08:00
2026-05-10 23:26:56 +08:00
2026-05-20 22:26:08 +08:00
2025-10-23 11:15:25 +08:00

MyAPS FastAPI Project

A simple FastAPI project template with a Python virtual environment.

Project Structure

myaps_fastapi/
├── venv/              # Python virtual environment
├── main.py            # Main FastAPI application
├── requirements.txt   # Project dependencies
├── .gitignore         # Git ignore file
└── README.md          # Project documentation

Getting Started

1. Activate the Virtual Environment

Windows:

venv\Scripts\activate

macOS/Linux:

source venv/bin/activate

2. Install Dependencies

pip install -r requirements.txt

3. Run the FastAPI Server

uvicorn main:app --reload

4. Access the API

API Endpoints

  • GET / - Root endpoint with welcome message
  • GET /api/info - Project information

Features

  • FastAPI framework for high-performance API development
  • Automatic interactive API documentation
  • Python virtual environment for dependency isolation
  • Git integration with proper ignore rules

Requirements

  • Python 3.7+","}}}
S
Description
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,到期日0830
Readme 6.2 MiB
Languages
JavaScript 59.5%
Python 33.5%
HTML 3.7%
CSS 1.1%
Shell 0.8%
Other 1.4%