Wednesday, 6 March 2019

POST request or Stream to send logs to remote server?

Hi,I am building a service to aggregate logs from my applications - every server will be sending data to centralised endpoint/server.At this stage I am considering if I should be sending data using standard POST endpoint (benefit is that if request fails, I can retry) or shall I just use socket and stream data (less hassle to start connection/handshake/close etc, but less reliable).I checked how Apollo Engine is sending data and they are making HTTP request: https://github.com/apollographql/apollo-server/blob/master/packages/apollo-engine-reporting/src/agent.ts#L235​What would you advise? Many thanks for all comments.

Submitted March 06, 2019 at 04:24PM by macdmio

No comments:

Post a Comment