This directory contains comprehensive sample applications that showcase various usage patterns of the Iggy client SDK, from basic operations to advanced multi-tenant scenarios. To learn more about building applications with Iggy, please refer to the getting started guide.
To run any example, first start the server with cargo run --bin iggy-server and then run the desired example.
For server configuration options and help:
cargo run --bin iggy-server -- --help
You can also customize the server using environment variables:
## Example: Enable HTTP transport and set custom address IGGY_HTTP_ENABLED=true IGGY_TCP_ADDRESS=0.0.0.0:8090 cargo run --bin iggy-server
You can run multiple producers and consumers simultaneously to observe how messages are distributed across clients.
Perfect introduction for newcomers to Iggy:
go run ./getting-started/producer/main.go go run ./getting-started/consumer/main.go
All examples can be executed directly from the repository. Follow these steps:
cargo run --bin iggy-servergo run ./xxx/xxx/main.goThese examples use IggyClient with TCP transport and demonstrate automatic stream/topic creation with basic message handling.
The examples are automatically tested via scripts/run-go-examples-from-readme.sh to ensure they remain functional and up-to-date with the latest API changes.