Reactor is a framework to make event driven programming much easier and it is based on Reactor Design Pattern. Reactor is good for asynchronous applications on the JVM, it is an event gateway where event consumers are registered with a notification key.
Selector is an abstraction to find consumer by invoking event.
Consumers and Event:
Consumers and Events as core module, Consumer is event consumer which needs to be notified for the event.
Producer produces the Events and publish.
Here is one example which use the Reactor pattern to Message produce and consumes.
1. Create a Maven project and add below dependencies
2. Create Customer POJO
3. Create a Consumer
4. Create a publisher
5. Spring boot Main class
6. Run the program (Application.java)
Here we can see the publisher sends the message and consumer is consuming the same.
7. Download Example