feat: 实现Redis集成与Kafka消息处理优化
- 新增Redis集成模块,支持心跳写入与控制台日志队列 - 优化Kafka消费者实现,支持多实例与自动重连 - 改进消息处理器,支持批量处理与多层解码 - 更新数据库表结构,调整字段类型与约束 - 添加Redis与Kafka的配置项和环境变量支持 - 补充测试用例和文档说明
This commit is contained in:
@@ -10,12 +10,18 @@ export default defineConfig({
|
||||
fileName: (format) => `index.${format}.js`
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ['kafka-node', 'pg', 'openspec'],
|
||||
external: [
|
||||
'kafka-node', 'pg', 'redis',
|
||||
// Node.js core modules
|
||||
'events', 'url', 'crypto', 'util', 'net', 'tls', 'buffer', 'path',
|
||||
'node:zlib',
|
||||
// openspec is not actually used in the code, remove it
|
||||
],
|
||||
output: {
|
||||
globals: {
|
||||
'kafka-node': 'KafkaNode',
|
||||
'pg': 'Pg',
|
||||
'openspec': 'OpenSpec'
|
||||
'redis': 'Redis'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user