https://github.com/gregwhitaker/reactor-replayprocessor-example
Example of Replaying Historical Events with Project Reactor ReplayProcessor
https://github.com/gregwhitaker/reactor-replayprocessor-example
project-reactor reactor-core spring-boot spring-webflux webflux
Last synced: 3 months ago
JSON representation
Example of Replaying Historical Events with Project Reactor ReplayProcessor
- Host: GitHub
- URL: https://github.com/gregwhitaker/reactor-replayprocessor-example
- Owner: gregwhitaker
- License: mit
- Created: 2020-01-14T15:47:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T16:27:56.000Z (about 5 years ago)
- Last Synced: 2025-10-12T15:41:50.103Z (3 months ago)
- Topics: project-reactor, reactor-core, spring-boot, spring-webflux, webflux
- Language: Java
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reactor-replayprocessor-example

Example of using a ReplayProcessor to store and replay history between subscriptions.
## Building the Example
Run the following command to build the example:
./gradlew clean build
## Running the Example
Follow the steps below to run the example:
1. Run the following command to start the service:
./gradlew bootRun
If successful, you will see the count starting in the terminal:
: onNext(1)
: onNext(2)
: onNext(3)
2. Open a web browser and navigate to [http://localhost:8080/nums](http://localhost:8080/nums).
Notice that all previously generated numbers are streamed to you before you receive new numbers.
3. Next, navigate to [http://localhost:8080/nums?history=false](http://localhost:8080/nums?history=false).
Notice that the count started wherever it had left off and did not return historical numbers.
## Bugs and Feedback
For bugs, questions and discussions please use the [Github Issues](https://github.com/gregwhitaker/reactor-replayprocessor-example/issues).
## License
MIT License
Copyright (c) 2020 Greg Whitaker
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.