Push service, will there be a discount on the performance of communication from socket to grpc,?

wrote a distributed push service in golang
has multiple connection layers and a topic management service
multiple connection layers transmit to topic through socket
now I want to change the connection layer to grpc calls
I wonder if there will be a discount on performance?

May.22,2021

there is basically no discount.
socket is a specific interface implementation for TCP or UDP.
gRPC uses a HTTP2 connection.
however, depending on your requirements, it is recommended to use grpc.

Menu