https://github.com/jonaro00/rest-vs-grpc
Benchmarks in Java, Python, and Rust
https://github.com/jonaro00/rest-vs-grpc
grpc java python rust
Last synced: 2 months ago
JSON representation
Benchmarks in Java, Python, and Rust
- Host: GitHub
- URL: https://github.com/jonaro00/rest-vs-grpc
- Owner: jonaro00
- Created: 2023-03-23T22:26:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-26T21:46:18.000Z (over 1 year ago)
- Last Synced: 2025-01-26T03:26:31.666Z (4 months ago)
- Topics: grpc, java, python, rust
- Language: Java
- Homepage:
- Size: 209 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmarking the request throughput of conventional API calls and gRPC
By [@jonaro00](https://github.com/jonaro00) and [@Danielmebrahtu](https://github.com/Danielmebrahtu)
Bachelor's degree project in Computer Science at KTH Royal Institute of Technology
Read the thesis:
## Project Details
The project consists of six servers and one client, implemented in three different programming languages: Java, Python, and Rust. The servers provide the same API using both REST (with JSON) and gRPC protocols
## Server Details
### REST API Servers
- Java server using Spring framework
- Python server using FastAPI
- Rust server using Axum### gRPC Servers
- Java server using official gRPC library
- Python server using official grpcio library
- Rust server using Tonic## Client Details
- The client program is implemented in Rust and serves the purpose of spamming requests to the servers while counting the number of completed requests per second.
- The client runs tests against one server at a time and can request four different payload sizes.