A RPC over AMQP library for Java (1.8 or higher).
Provide a language-agnostic RPC library to write distributed systems.
try (Client c = new Client("amqp://guest:guest@broker:5672/myVHost", "SampleService")) {
Response r = c.call('method').withJSON("[1,2,3]").sync();
if (r.getStatusCode() == Status.OK) {
System.out.Println(r.getContent());
}
}
Not implemented yet.
Pull requests are very much welcomed. Make sure a test or example is included that covers your change.
Docker is being used for the local environment. To build/run/test your code you can bash into the server container:
$ docker-compose run lib ash
root@porthos:/usr/src/app# mvn test