tourniquet-tonic 0.3.0

Async native round-robin manager for remote services. Tonic integration.
Documentation

tourniquet-tonic

Tourniquet integration with the celery library.

Example

#
#
let rr = RoundRobin::new(
    vec!["https://api01", "https://api02"],
    TonicConnector::default(),
);

rr.run(|channel| async move {
    grpc::greeting_client::GreetingClient::new(channel.as_ref().clone())
        .hello(grpc::Message::default())
        .await?;
    Ok(())
}).await?;

License: MIT