Is the go service generally an HTTP API service or a similar RPC socket service?

Is the go service generally an HTTP API service or a similar RPC socket service? Which is good, what are the advantages and disadvantages?,Grpc go is recommended, which is convenient and efficient,For internal services, it is recommended to use grpc, which is simple and efficient, and supports a wide range of languages. For external services, it is recommended to use HTTP API. After all, it has a wide audience, which is more convenient than you have to provide a proto file. In addition, if it is really necessary, you can also provide HTTP interface and grpc services at the same time,If your company’s projects are service-oriented, it is recommended to use grpc, which is efficient and fast. The services interact through RPC, on the premise that the services are as independent as possible. If they are external, of course, http

Read more here: Source link