feat: 落地聊天记录异步持久化基础设施
- 新增 chatlog 模块、AnalyticalDB 公共层与 common-mq Redis Streams 实现 - 建立 Redis 热态、MySQL 热数据、AnalyticalDB 历史查询与同步链路 - 收紧聊天记录幂等、摘要时序与持久化失败语义
This commit is contained in:
@@ -14,5 +14,47 @@ spring:
|
||||
password: ${REDIS_PASSWORD:123456}
|
||||
|
||||
easyflow:
|
||||
chat:
|
||||
cache:
|
||||
session-list-ttl: 300s
|
||||
session-summary-ttl: 600s
|
||||
session-tail-ttl: 1800s
|
||||
tail-size: 50
|
||||
sync:
|
||||
enabled: true
|
||||
batch-size: 500
|
||||
fixed-delay: 30000
|
||||
repair-lookback-days: 3
|
||||
retention-months: 3
|
||||
mq:
|
||||
enabled: true
|
||||
type: redis
|
||||
redis:
|
||||
database: 1
|
||||
stream-prefix: easyflow:mq
|
||||
chat-persist-shard-count: 4
|
||||
consumer-batch-size: 200
|
||||
consumer-block-timeout: 2000ms
|
||||
pending-claim-idle: 60000ms
|
||||
max-retry: 16
|
||||
analytical-db:
|
||||
enabled: true
|
||||
url: ${EASYFLOW_ANALYTICAL_DB_URL:jdbc:clickhouse://127.0.0.1:8123/easyflow?jdbc_ignore_unsupported_values=true&socket_timeout=30000&compress=false&ssl=false}
|
||||
username: ${EASYFLOW_ANALYTICAL_DB_USERNAME:default}
|
||||
password: ${EASYFLOW_ANALYTICAL_DB_PASSWORD:}
|
||||
driver-class-name: com.clickhouse.jdbc.ClickHouseDriver
|
||||
pool:
|
||||
max-pool-size: 10
|
||||
min-idle: 1
|
||||
connection-timeout: 5000
|
||||
validation-timeout: 3000
|
||||
idle-timeout: 600000
|
||||
max-lifetime: 1800000
|
||||
flyway:
|
||||
analytical-db:
|
||||
locations: classpath:db/migration/analyticaldb
|
||||
table: flyway_schema_history_analytical_db
|
||||
baseline-on-migrate: false
|
||||
validate-on-migrate: true
|
||||
storage:
|
||||
type: xFileStorage
|
||||
|
||||
Reference in New Issue
Block a user