Answer the question
In order to leave comments, you need to log in
How to monitor changes in databases?
Dear habrchane, hello.
Need your advice.
Algorithm for determining data schema changes.
Introduction:
In a large system that implements a minroservice architecture, it often becomes necessary to synchronize hot data between various components (executable modules). As a rule, a single point of truth for all components is the DBMS, namely, some schema or a set of DBMS objects. But frequent calls to these objects, especially queries containing aggregate or analytical functions, negatively affect the performance of the DBMS as a whole. Therefore, for different situations, various tactics are developed to determine the difference in the states of certain DBMS objects for synchronization with the application.
What should be done:
Design an algorithm (function) that determines whether there are changes in the DBMS or not starting from some time or identifier.
Variations:
Answer the question
In order to leave comments, you need to log in
The question has already been asked: Is there a way to get the state update of a postgresql table by an external java process?
But it is better to use a queue broker to propagate changes, a DBMS is not the best tool for this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question