I have an application written in J2EE + Spring + Hibernate (call it app1), now my boss wants another application (application2, completely different and written by different technologies) to be able to synchronize with it regularly (at least one path app1 to app2). I have never done anything like this ... I can think of a problem: app2 calls app1 (possibly using a web service), how do I know what part of the data has been added and updated since the last synchronization? What can I say about adding a timestamp column to each table of the main application2, so that app1 can say “give me everything that has been changed or added after timestamp xxxx. This includes changing many things. What other functions can I use to solve this Problems,without changing the application structure too large? (Assume the databases are different, and I don't want the database ports to be open to everyone on my server).
Finally, I forgot, how about deleting a row? Timestamps will not solve this ...
source
share