问题
I am not sure if my understand is correct. We launch a spring cloud stream appliction and subscribe to a topic. The application will be running and mornitoring the topic for new message, except we send kill signal to quit. I was thinking if we could quit spring cloud application explicityly, like waiting 5 minutes and no new messages come in? Or processed 1000 records and quit?
回答1:
You don't need to stop the application for this as it will bring the entire JVM (which you can always do if you want).
Typically for use cases like this you stop/pause/start/resume
bindings individually essentially allowing other bindings to function.
Here is where you can find more information
来源:https://stackoverflow.com/questions/55058207/spring-cloud-stream-can-a-spring-cloud-stream-appliction-exit-explicitly