Skip to content

This project uses the gRPC (Remote Procedure Call) framework for scaled square matrix multiplication. Through a REST API, the client sends a file with two matrices and a deadline parameter in seconds. A server middleware calculates the footprint and the number of servers needed for the matrix multiplication. It then distributes the multiplicatio…

Notifications You must be signed in to change notification settings

antpngl92/DistributedMatrixMultiplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Matrix Multiplication

References:

https://grpc.io/

https://grpc.io/docs/languages/java/basics/

https://spring.io/guides/tutorials/rest/

Setup:

At least 9 servers

  1. Clone this repo into each server
  2. run sudo apt install default-jdk maven on each server
  3. on client server cd into grpc-client and run ./mvnw clean spring-boot:run
  4. 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:

  1. file - txt file containing 2 matrices - check provided file (MatrixFormatFile.txt) for matrix format
  2. deadline - in seconds

NOTE:

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

About

This project uses the gRPC (Remote Procedure Call) framework for scaled square matrix multiplication. Through a REST API, the client sends a file with two matrices and a deadline parameter in seconds. A server middleware calculates the footprint and the number of servers needed for the matrix multiplication. It then distributes the multiplicatio…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages