Implementing a logging application using gRPC

328 views
Skip to first unread message

Anderson Amorim dos Santos

unread,
Nov 10, 2021, 5:16:48 PM11/10/21
to grpc.io

Guys, I need to implement an application that generates logs for several microservices. I was suggested to use protobuf to generate these logs. I've never dealt with protobuf, gRPC, etc. I was able to verify the advantages of using gRPC in this case (data serialization speed, contracts that would facilitate the standardization of logs, etc). But I can't see safely and practically how this system would be structured. Until then I thought of a server using gRPC that would serve to collect the microservices logs, but how these logs would be returned by the server?

sanjay...@google.com

unread,
Jan 25, 2022, 12:34:49 AM1/25/22
to grpc.io
I assume the microservices will use gRPC to send their log entries to the centralized logging server. In that case I don't understand what you mean by "how these logs would be returned by the server?". The centralized logging server would log to a logging backend.

Few questions:
- you will need to modify your microservices to insert the logging statements. I suppose that's ok?
- what do you want to log from your microservices? The inter-service calls or application state or something else?
- How are the microservices communicating - gRPC, REST or something else? Are you already using gRPC for something else?
- which language are the microservices written in?
Reply all
Reply to author
Forward
0 new messages