根据版本生成 diff
场景是,我在服务器端有一个 MySQL 数据库,其内容定期更新/更改,并且我有 5-10 个 Linux 客户端...每个客户端都有一个数据库副本,并且需要有一个重要的数据库副本。内存中数据库的一部分。 我希望能够获取客户端的版本,然后通过 diff 发送最新更新的数据。数据库条目可能会被添加/删除/更新。我需要探索最好的方法来做到这一点,并且我正在寻找有价值的建议。
The scenario is that I have a MySQL DB on the server side, whose content is regularly updated/changed and I have 5-10 Linux clients... each of which would have a copy of the DB, and would need to have a significant portion of the DB in memory.
I want to be able to get what version the client has, and then send the latest-updated data through a diff. Database entries may get added/removed/updated. I need to explore best possible ways of doing this, and I am looking for valuable suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您能够在配置中使用 Java,您也许可以使用开源 DiffKit 来完成此操作:
http://www.diffkit。组织
You can probably do this with Open Source DiffKit, if you are able to use Java in your configuration:
http://www.diffkit.org