用于存储简单 JSON 结构的最简单的“一劳永逸”分布式数据库?
我有一个相当简单的系统,概念上是 100,000 个小/简单 JSON 文档。我想从mysql切换到分布式系统,以实现冗余和备份目的。
目前它是用java编写的。安装和使用最简单/最容易的 nosql 解决方案是什么?即我想要一些可以安装在几台服务器上、相互指向并开始使用的东西。
我不想花几个小时学习、调整和配置东西。 (如果项目太大我不妨编写一些同步相关表的java代码)
I have a reasonably simple a reasonably system that are conceptually 100,000's of small/simple JSON documents. I want to switch from mysql to a distributed system for redundancy and backup purposes.
Its currently written in java. What will be the simplest/easiest nosql solution to install and use? i.e. I want something I can just install on a few servers, point to each other, and start using.
I don't want to spend hours learning, tweaking and configuring stuff. (If its going to be too large a project I may as well just write some java code that synchronizes the relevant tables)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
mongoDB 对我来说很容易安装和开始使用文档数据库。
让它与 java 一起工作很容易,并且它有一个很好的 java 映射器反对名为 morphia 的 mongo。
mongoDB is easy to install and start to use document database for me.
It is easy to make it work with java and it has a nice mapper from java objects to mongo called morphia.
如果您可以容忍将数据托管在 Google 的 AppEngine 上,那么 Ubud-db 可能适合您:
https://bitbucket.org/f94os/ubud-db/wiki
Ubud-db 是AppEngine 上具有 REST-JSON API 的文档存储。 Spring/Jackson 从 JSON 映射到 Map,然后 Ubud 的服务从 Map 映射到实体,并由数据存储区保存。
If you can tolerate hosting your data on Google's AppEngine, Ubud-db can be something for you:
https://bitbucket.org/f94os/ubud-db/wiki
Ubud-db is a document store on AppEngine with a REST-JSON API. Spring/Jackson maps from JSON to a Map, and then Ubud's service maps from the Map to Entity, persisted by the Datastore.
如果你已经问过这个问题了,我怎么能问这个问题呢?
我会将
BaseX
添加到列表中——它可以很好地处理JSON
。有一个漂亮的 GUI,或者您可以通过 bash 等使用控制台。等人。面向带有
XQuery
和Xpath
的XML
,但具有JSON
模块。我只是在寻找替代方案,因为我不太确定如何使用某些功能......但这取决于我,而不是数据库。
用法示例:
How can I ask this question if you've already asked it!?
I'll add
BaseX
to the list -- it handlesJSON
fine. Has a nice GUI, or you can just use a console throughbash
et. al.Geared towards
XML
withXQuery
andXpath
, but hasJSON
modules.I'm only looking at alternatives because I'm not quite sure how to use some of the features...but that's on me, not the db.
usage example: