You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.start redis using docker compose up -d
For two apps
2.npm i
3.npm run start:dev
4.when you will have messages in hybrid app turn redis off
5.start redis again
6.now we don't have messages
Setup versions
[System Information]
OS Version : Windows 10.0.22631
NodeJS Version : v20.10.0
NPM Version : 10.8.2
[Nest CLI]
Nest CLI Version : 10.4.5
[Nest Platform Information]
platform-express version : 10.4.4
microservices version : 10.4.4
schematics version : 10.1.4
testing version : 10.4.4
common version : 10.4.4
core version : 10.4.4
cli version : 10.4.5
In which operating systems have you tested?
Windows
Describe the solution you'd like
Can we have .on() for ClientProxy to listen events(error, close).
Can we also have some additional field in connectMicroservice and createMicroservice to monitor events during communication with transport layer.
What is the motivation / use case for changing the behavior?
Motivation is to have ability to check that some of the client of microservice communication is disconnected, and use health check endpoint to restart pod.
The text was updated successfully, but these errors were encountered:
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
I use Redis as a transport layer in microservice communication.
I need to know when nestjs_app/hybrid_app/microservice disconnected from transport layer.
I take into consideration two cases that lead to disconnection.
I need to understand that application is disconnected from transport layer and share this data using health check endpoint to restart pod.
The issue was also mentioned in this request #10029
Minimum reproduction code
https://github.com/endlesslydivided/app_sample
Steps to reproduce
1.start redis using docker compose up -d
For two apps
2.npm i
3.npm run start:dev
4.when you will have messages in hybrid app turn redis off
5.start redis again
6.now we don't have messages
Setup versions
[System Information]
OS Version : Windows 10.0.22631
NodeJS Version : v20.10.0
NPM Version : 10.8.2
[Nest CLI]
Nest CLI Version : 10.4.5
[Nest Platform Information]
platform-express version : 10.4.4
microservices version : 10.4.4
schematics version : 10.1.4
testing version : 10.4.4
common version : 10.4.4
core version : 10.4.4
cli version : 10.4.5
In which operating systems have you tested?
Windows
Describe the solution you'd like
Can we have .on() for ClientProxy to listen events(error, close).
Can we also have some additional field in connectMicroservice and createMicroservice to monitor events during communication with transport layer.
Teachability, documentation, adoption, migration strategy
client.on('closed', () => console.log('client disconnected'))
What is the motivation / use case for changing the behavior?
Motivation is to have ability to check that some of the client of microservice communication is disconnected, and use health check endpoint to restart pod.
The text was updated successfully, but these errors were encountered: