monitoring mysql for changes

后端 未结 5 500
陌清茗
陌清茗 2021-01-18 20:16

I have a Java app using a MySQL database through hibernate. The database is really used as persistence layer: The database is read at the initial load of the program, and

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 20:47

    Or change both applications so the Java app is truly the owner of the MySQL database and exposes it as a service. You're coupling the two apps at the database level by doing what you're proposing.

    If you have one owner of the data you can hide schema changes and such behind the service interface. You can also make it possible to have a publish/subscribe mechanism to alert interested parties about database changes. If those things are important to you, I'd reconsider letting another application access MySQL directly.

提交回复
热议问题