When firing up the server, it sometimes encounters a race condition where the application attempts to connect before RabbitMQ is fully initialized. This triggers an ECONNRESET because the TCP port is open but the service isn't ready for handshakes. To fix this, we need to implement a "wait-on" check in the dev:all script and add exponential backoff to the connection logic. These changes will ensure the infrastructure is healthy before the Node.js processes attempt to sync.
When firing up the server, it sometimes encounters a race condition where the application attempts to connect before RabbitMQ is fully initialized. This triggers an ECONNRESET because the TCP port is open but the service isn't ready for handshakes. To fix this, we need to implement a "wait-on" check in the dev:all script and add exponential backoff to the connection logic. These changes will ensure the infrastructure is healthy before the Node.js processes attempt to sync.