티스토리 뷰

emotional developer/detect-Java

gRPC vs REST

성게군. 2023. 5. 4. 03:18

https://medium.com/trendyol-tech/grpc-vs-rest-performance-comparison-db33e46dd4d6

 

gRPC vs. REST Performance Comparison

As PUDO team, we use spring boot with REST controllers in our project. We compared REST and gRPC to see if we can use gRPC for performance…

medium.com

Average Time per Request for gRPC: 0.3503 ms
Average Time per Request for REST: 2.3109 ms

Conclusion

According to performance results, I have 85% reduced latency with gRPC implementation.

gRPC can be used instead of REST if you want faster communication between services. Since communication takes place over binary data, if services are changing frequently maintaining compatibility will be hard. In such cases REST can be preferable.


서비스란것이 성능관점으로만 바라볼 수가 없다.
세상에 별 다양한 needs들이 있기에 rest 한표;

'emotional developer > detect-Java' 카테고리의 다른 글

Spring Data JPA Optimize  (0) 2023.05.05
Spring Boot Architecture  (0) 2023.05.04
Spring Sleuth 3.0 up  (0) 2023.04.05
공지사항