https://grpc.io/docs/languages/java/basics/
https://spring.io/guides/tutorials/rest/
At least 9 servers
- Clone this repo into each server
- run
sudo apt install default-jdk maven
on each server - on client server
cd
into grpc-client and run./mvnw clean spring-boot:run
- on the rest of the servers
cd
into grpc-server and run./mvnw clean spring-boot:run -Dmaven.test.skip=true
To upload matrix file use <server_public_ip>:8082/upload
.
The call accepts a body form data with 2 keys:
- file - txt file containing 2 matrices - check provided file (MatrixFormatFile.txt) for matrix format
- deadline - in seconds
This version is implemented using ServiceNameBlockingStub
for better performance and scalling an asynchronous stub can be used:
https://grpc.io/docs/languages/java/generated-code/#asynchronous-stub