Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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