https://medium.com/trendyol-tech/grpc-vs-rest-performance-comparison-db33e46dd4d6
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 |