Files
Web_BLS_Heartbeat_Server/package.json
XuJiacheng c0cdc9ea66 feat: 更新 Kafka 配置和数据库管理逻辑
- 在 .env.example 中添加 Kafka 配置项:KAFKA_FETCH_MAX_BYTES, KAFKA_FETCH_MIN_BYTES, KAFKA_FETCH_MAX_WAIT_MS。
- 删除 room_status_sync 提案及相关文档。
- 删除 fix_uint64_overflow 提案及相关文档。
- 更新数据库管理器以支持使用 COPY 语句进行高效数据写入,替换批量 INSERT 逻辑。
- 实现心跳数据的整数溢出处理,确保无效数据被持久化到 heartbeat_events_errors 表。
- 更新处理器规范,确保心跳数据成功写入历史表后触发 room_status 同步。
- 添加新文档,描述新的分区方法案例。
- 归档旧的提案和规范文档以保持项目整洁。
2026-03-03 18:22:12 +08:00

38 lines
853 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "web-bls-heartbeat-server",
"version": "1.0.0",
"description": "BLS心跳接收端用于处理Kafka队列数据并写入PostgreSQL数据库",
"type": "module",
"main": "dist/index.js",
"scripts": {
"dev": "vite",
"start": "node src/index.js",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext .js",
"test": "mocha",
"db:apply": "node scripts/db/apply.js",
"kafka:decode": "node scripts/kafka/decodeMessage.js"
},
"dependencies": {
"kafka-node": "^5.0.0",
"pg": "^8.11.3",
"pg-copy-streams": "^7.0.0",
"redis": "^4.7.1"
},
"devDependencies": {
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"vite": "^5.0.0"
},
"keywords": [
"BLS",
"heartbeat",
"kafka",
"postgresql",
"nodejs"
],
"author": "",
"license": "MIT"
}