rabbitmq-tutorials/rust-stream
2024-08-19 09:49:17 +02:00
..
src/bin Rust stream tutorial 2 (#440) 2024-08-12 15:41:13 +02:00
Cargo.lock Rust stream tutorial 2 (#440) 2024-08-12 15:41:13 +02:00
Cargo.toml Rust stream tutorial 2 (#440) 2024-08-12 15:41:13 +02:00
README.md fixing website links to streaming tutorial_2 for python and rust (#460) 2024-08-19 09:49:17 +02:00

Rust code for RabbitMQ tutorials (using rabbitmq-stream-client)

Here you can find the Rust code examples for RabbitMQ tutorials.

The examples use rabbitmq-stream-client client library.

These tutorials assume a RabbitMQ server node running locally using default ports and the stream plugin enabled.

See First Application With RabbitMQ Streams, Stream plugin documentation and how to preconfigure plugins.

Requirements

Code

Each cargo command should be launched in a separate shell.

Tutorial one: "Hello World!"

cargo run --bin receive
cargo run --bin send

Tutorial one: "Offset tracking!"

cargo run --bin send_offset_tracking
cargo run --bin receive_offset_tracking