I am working on a Spring boot application, which is deployed on 3 Kubernetes pods.
In my application, there is an API component, through which new rules can be added to the DB or existing rules can be edited.
Now, this application has one more component, the Rule Engine, which basically starts up at the time application gets started, reading existing rules from DB.
Now, my goal is to automatically refresh the rule engine component of my application, as soon as any rule in the DB added/updated, basically I want a hot-swappable-like feature.
Here, I have thought of using SQS initially, but then I realized, with SQS, I can refresh application instances only on a single POD, but not all PODs. So I cannot use SQS here.
In this context, I have gone through a few articles here, but not getting any idea regarding how to do it.