Skip to content
/ urpc Public
forked from Ipanov7/urpc

An unreliable RPC miniframework

License

Notifications You must be signed in to change notification settings

seroze/urpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urpc

uRPC is an unreliable RPC miniframework loosely inspired by gRPC

Creating a server

let mut server = UrpcServer::new(SRV_ADDR); 
server.register("donut-service", DonutService::new()); 
UrpcServer::start(server);

Creating the client

// Define the list of recipient nodes and instantiate the client
let recipients = vec![DONUT_ADDR];
let client = UrpcClient::new(recipients);


// Let's build the request
let request = DonutRequest {
  quantity: 3,
  type: "chocolate",
}

// The client encodes the request payload and sends to each recipient.
// Delivery is not guaranteed.
client.send("donut-service", "order", request);

Further info

https://blog.lorisocchipinti.com/rust-urpc/

About

An unreliable RPC miniframework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%