-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from tradewelltech/32-rely-on-end-offset-inste…
…ad-of-eof Change how we identify replay / live mode (stop using EOF market)
- Loading branch information
Showing
7 changed files
with
501 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,3 +165,5 @@ cython_debug/ | |
/.ruff_cache | ||
/poetry.lock | ||
/venv | ||
*.csv | ||
coverrage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Scripts | ||
|
||
## `kafka_test_bench` | ||
|
||
Tests a simple application with kafka, making sure it replays in order. | ||
The "timestamp" of the output messages should be in order across topics when replaying. | ||
|
||
|
||
Helpful commands: | ||
|
||
```shell | ||
docker run -p 9092:9092 -d bashj79/kafka-kraft | ||
kafka-topics --create --topic left --bootstrap-server=localhost:9092 | ||
kafka-topics --create --topic right --bootstrap-server=localhost:9092 | ||
kafka-topics --create --topic both --bootstrap-server=localhost:9092 | ||
kafka-console-producer --topic left --bootstrap-server=localhost:9092 | ||
kafka-console-producer --topic right --bootstrap-server=localhost:9092 | ||
kafka-console-consumer \ | ||
--topic=both \ | ||
--bootstrap-server=localhost:9092 \ | ||
--property print.key=true | ||
python -m scripts.kafka_test_bench --batch-size=2 | ||
``` |
Oops, something went wrong.