lundi 19 novembre 2018

Java-Spring Publisher Subscriber Design Pattern

Overview: I am working on Java with Spring framework 4, one component of our application pulls some data in memory from db when the server is started. The other component inserts new data in db when required.

Problem Statement:

When data is inserted to db via second component, I want first component to know it so that it can refresh and update memory with newly updated data in db.

After googling a bit, I learned several approaches, but I am quite confused on what to choose. I am new to Java, in python we were able to execute this swiftly.

So, my question is there any library/framework in java which can do this swiftly?

Aucun commentaire:

Enregistrer un commentaire