Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivanitskiy/als-rs-example
Envoy Access gRPC Log service example in rust
https://github.com/ivanitskiy/als-rs-example
envoy rust rust-lang
Last synced: 9 days ago
JSON representation
Envoy Access gRPC Log service example in rust
- Host: GitHub
- URL: https://github.com/ivanitskiy/als-rs-example
- Owner: ivanitskiy
- Created: 2021-12-01T19:32:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T14:44:33.000Z (over 1 year ago)
- Last Synced: 2024-10-28T02:07:29.543Z (about 2 months ago)
- Topics: envoy, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 233 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an example of using rust to build envoy access log server, convert protobuf messages to json format, send messages to kafka broker and read messages from kafka broker (pretty printed json).
---
Start kafka compatible broker [redpanda](https://github.com/vectorizedio//blob/dev/tools/docker/README.md) in docker:
docker-compose up -d redpanda
Start als server:
cargo run --bin als-rs
Start kafka client:
cargo run --bin client -- --brokers localhost:9092 --group-id client2 --topics my-topic
Send RPC messages to the als server, and watch for the kafka client.
Optionally, install [bloomrpc](https://github.com/bloomrpc/bloomrpc) to sends gRPC messages to *als-rs* server without envoy server running for local testing only. Import proto messages into *bloomrpc* and you can test it without running envoy