You gave little details on how you tested both services.
I did similar test about a month ago, check the thread "gRPC performance (Java)": https://groups.google.com/g/grpc-io/c/4-bfxJDc7_s Over there you even have a link to a repo with sample projects I used to test. -gkresic. On 16. 02. 2023. 13:39, shobhit agarwal wrote:
I have written sample program to test perfromance of rest vs grpc, but in my test rest is faster than grpc. load test 10k request with 100 req parallel, sample request and response is as below Req: { "emp_id": "34" } Resp: { "emp_id": "34", "name": "abc", "role": "USER" } Throughput for REST: 1814 req/sec GRPC: 209 req/sec Is grpc slower than rest in case payload is small or am I missing something in my test. Regards, Shobhit -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com <mailto:grpc-io+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5e02647c-0b93-456f-9b7d-075dd6a90e10n%40googlegroups.com <https://groups.google.com/d/msgid/grpc-io/5e02647c-0b93-456f-9b7d-075dd6a90e10n%40googlegroups.com?utm_medium=email&utm_source=footer>.
-- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/96491e44-623c-a9e5-dd4e-69c6f6d93403%40steatoda.com.