backend redesign
This commit is contained in:
29
flink/src/main/resources/topics-dev.yaml
Normal file
29
flink/src/main/resources/topics-dev.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
topics:
|
||||
# Realtime and historical OHLC data (protobuf encoded)
|
||||
# Individual OHLC messages for realtime data
|
||||
# OHLCBatch messages for historical data (with metadata)
|
||||
- name: market-ohlc
|
||||
partitions: 3
|
||||
replication: 1
|
||||
config:
|
||||
retention.ms: 86400000 # 24 hours
|
||||
compression.type: snappy
|
||||
cleanup.policy: delete
|
||||
|
||||
# Realtime tick data (protobuf encoded)
|
||||
- name: market-tick
|
||||
partitions: 3
|
||||
replication: 1
|
||||
config:
|
||||
retention.ms: 3600000 # 1 hour
|
||||
compression.type: snappy
|
||||
cleanup.policy: delete
|
||||
|
||||
# Order execution events
|
||||
- name: order-event
|
||||
partitions: 2
|
||||
replication: 1
|
||||
config:
|
||||
retention.ms: 2592000000 # 30 days
|
||||
compression.type: snappy
|
||||
cleanup.policy: delete
|
||||
Reference in New Issue
Block a user