spring-cloud / spring-cloud/spring-cloud-bus
Add support for /bus/pause and /bus/resume endpoints
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 445
- Forks
- 246
- Avg merge
- 16h 25m
- Merged PRs (30d)
- 5
Description
The same way we have /bus/refresh it might be useful to have /bus/pause and /bus/resume.
My use case was already mention on Spring Cloud Config:
The ability to stop message listener containers to turn the app into read only mode.
That can be done by sending a pause event, then Rabbit containers stop getting messages.
But with the Cloud Bus will be possible to send an event to all my consumers at once.
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing /bus/refresh endpoint and how Spring Cloud Bus delivers its event to consumers. Then examine how Rabbit listener containers handle pause and resume; done means both endpoints broadcast the requested action to all consumers and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- api, backend, distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100