admin管理员组

文章数量:1125484

I have an issue with a TCP connection between two services in my microservices architecture. Specifically, the first TCP request of the day often fails with a connection error, but subsequent requests succeed without any problem.

Here's the scenario:

Service A initiates a TCP connection to Service B.

The first connection attempt after a long idle period (usually overnight) fails.

After that, all following connections during the day work perfectly fine.

I've checked my network configuration and firewall rules, and they seem fine. I also tried increasing the timeout and adding retries, but the issue still occurs on the first request.

本文标签: nodejsIntermittent TCP Connection Error Between Two Services on First Daily CallStack Overflow