[JavaWeb] Messages remind this module in many systems. How to make this module into a separate module and then call it in every system

  java, question

Messages remind this module in multiple systems. How to make this module into a separate module and then call it in every system, would you like to consult java development to realize this function? ?

Simply put, it can be separated as a service module, such as push service and subscription/publishing service etc. it can also refer to the use of redis, message middleware, etc. which have the above-mentioned functions. the message service is responsible for providing push, publishing and persistence of messages, and its own business is responsible for registering and following its own defined specifications.