Hacker News new | ask | show | jobs
by lbhdc 811 days ago
I use grpc at work for service to service interaction (there are many many services). The generated code, really gets rid of a lot of effort, and keeps clients and servers in sync. It makes streaming pretty easy too. There are also nice tools in the ecosystem to make custom code generators (maybe you want to generate your db interfaces too) or warn if you are introducing breaking changes to your api contract.
1 comments

Can you provide examples of 2 services that interact with one another? Do the services call each other, or do clients call a service that then calls another service?
Something we do often is need to fetch metadata from a centralized service for some kind of data before sending the original data + the metadata to an ml inference server. The call to the fetch the metadata and the call to the ml model would both be done over grpc.

The calls originate from both inside the system and connected systems. The internal stuff is batch batch jobs that handle small tasks. The external callers are often other (internal) systems that want to access the data our system produces and rarely to send in commands to do stuff.

This isn't difficult to research on your own.
Why not share knowledge is someone is asking earnestly?
Because there's literally nothing in it for me to help this guy unlock the stunning achievement of understanding why and in what manner computer systems communicate. This is intern level information, trivial to learn.
What was in it for you to post the message that there is nothing in it for you?

If you cannot post a message to help because "there is nothing in it for you"... please tell me what you got from posting this?

I really wanna know

You must be a joy to work with /s