Command: ./go start rabbitmq
Command: ./go start event-store
Subscribes to:
- All topics in
SUB_TOPIC
defined in thedocker-compose.yml
- Writes all messages going into
SUB_TOPIC
to postgres.
- Writes all messages going into
- Replay queue for
time = last
- Queries for
amount
events afterstart
timestamp fromexchangeTarget
. - Replays them in the defined
replayExchange
.- If
replayExchange
andexchangeTarget
are the same there will be duplicate events in the db.
- If
- Queries for
- Replay queue for
time = between
- Not implemented yet :(
- Will get events between start and end timestamps
Command: ./go start sub
Subscribes to:
- All topics in
SUB_TOPIC
defined in thedocker-compose.yml
- All topics in replay_
SUB_TOPIC
. The designated replay queue forSUB_TOPIC
Command: ./go pub [topic] [n]
Will publish to random permutation of sub-topics and values.
topic
must be a valid topic schema defined in all containers :(n
is the number of messages sent.
Command: ./go pub replay [topic] [n] [timestamp]
topic
must be a valid topic schema defined in all containers :(n
is the number of messages to replay.timestamp
is the start timestamp. Defaults to now.