Demo that produces and consumes messages using the Fluvio Streaming Engine. The message data is serialized and compressed with bilrost as it performs really well according to this benchmark.
To interact with the Fluvio cluster, install the Fluvio CLI.
Make sure to add $HOME/.fvm/bin and $HOME/.fluvio/bin to your PATH before running these commands:
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
fvm install
fluvio cluster set --endpoint 127.0.0.1:9003
To create a test topic in Fluvio, run the following command:
fluvio profile add docker 127.0.0.1:9103 docker
fluvio topic create myio --retention-time '7 days' --segment-size '5 Ki' --max-partition-size '30 Ki'
fluvio topic list
Run the solution locally with bacon by executing bacon
. Enter 'p' in Bacon to run the producer and enter 'c' to run the consumer. Enter 't' in Bacon to run the test suite with cargo-nextest.
![image](https://private-user-images.githubusercontent.com/994409/411162944-b9a3cd93-7b84-4c61-b085-12afdcf2a1cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDQzMjUsIm5iZiI6MTczOTQwNDAyNSwicGF0aCI6Ii85OTQ0MDkvNDExMTYyOTQ0LWI5YTNjZDkzLTdiODQtNGM2MS1iMDg1LTEyYWZkY2YyYTFjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQyMzQ3MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZmQwMzlhYmM1YTNkODg4NDgyMmJhMjU5OTJmODFmYTA0ZGQwOTE3YTU4NjE5NjQ0ZThkOTkyODM3YTExZDVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.segtJ5oCl7c88hrFLEF5WjnkcAXEGLHjoAcWwgG9p-Q)