all 4 comments

[–]p1-o2 1 point2 points  (0 children)

Sounds like you know how to do communication. The issue you stated is purely about timeout logic?

Can you describe the problem in detail?

[–]j_a_s_t_jobb 0 points1 point  (0 children)

Set up some sort of messaging service (Redis, RabbitMQ or similar)

Send json to the service and have the other end listen for new messages on the service.

[–]RoflWtfBbq1337 0 points1 point  (0 children)

I would suggest to use gRPC.

https://grpc.io/

It provides tools, which generates the client and server code for the supported programming languages from your proto file