Files
Web_BLS_Heartbeat_Server/package.json
XuJiacheng eb94aaf92b feat: 升级心跳数据库为高吞吐日分区模型(v2)
- 新增 heartbeat 数据库与表结构文档,描述心跳明细表设计及字段约束。
- 新增 OpenSpec 符合性说明文档,指出与规范的一致点及偏差。
- 新增 Kafka 心跳数据推送说明文档,定义消息格式与推送方式。
- 更新数据库创建脚本,支持 UTF-8 编码与中文排序规则。
- 更新心跳表结构脚本,定义主表及索引,采用 ts_ms 日分区。
- 实现自动分区机制,确保按天创建分区以支持高吞吐写入。
- 添加数据库应用脚本,自动执行 SQL 文件并验证表结构。
- 添加运行时烟雾测试脚本,验证数据库连接与基本操作。
- 添加完整的烟雾测试脚本,验证数据插入与分区创建。
2026-01-12 19:53:27 +08:00

33 lines
703 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",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext .js",
"test": "mocha",
"db:apply": "node scripts/db/apply.js"
},
"dependencies": {
"kafka-node": "^5.0.0",
"pg": "^8.11.3"
},
"devDependencies": {
"vite": "^5.0.0",
"eslint": "^8.56.0",
"mocha": "^10.2.0"
},
"keywords": [
"BLS",
"heartbeat",
"kafka",
"postgresql",
"nodejs"
],
"author": "",
"license": "MIT"
}