简体   繁体   English

开箱即用的基于REST的数据存储/检索服务器端组件?

[英]REST based data storage/retrieval server side component out of the box?

I am looking for a server side component, that handles storage of data of different types. 我正在寻找一个服务器端组件,该组件可以处理不同类型的数据存储。 I have already written such a component from scratch in Java (at work). 我已经用Java从头开始编写了这样的组件(正在工作)。 Now I am interested in having such a component ready to install, because I want to concentrate on wirting the client side in a small project as a hobby. 现在,我对准备安装这样的组件很感兴趣,因为我想专注于在一个小项目中将客户端作为爱好。

Some details: I have a couple of different object types (around 5 to 10) that are connected via ids. 一些细节:我有几个通过ID连接的不同对象类型(大约5到10)。 The clients should be able to send/receive data in JSON via http using the following types of commands: 客户端应该能够使用以下类型的命令通过http发送/接收JSON中的数据:

  • Get documents by ids 通过ID获取文档
  • Submit a new document 提交新文件
  • Update a document 更新文件
  • Optional: Given a time stamp, request a list of ids of documents that have been changed since that date 可选:给定时间戳记,请求自该日期以来已更改的文档ID的列表

It should be possible to restrict some operations to specific users (ie updating existing documents). 应该有可能将某些操作限制为特定用户(即更新现有文档)。 Thus some kind of simple authentication/group model is probably needed there as well. 因此,那里也可能需要某种简单的身份验证/组模型。

Try elasticsearch . 尝试elasticsearch Or solr . solr Or mongodb . mongodb Or couchdb . 榻榻米

Not sure about the authentication + authorization modules. 不确定身份验证+授权模块。 Maybe you should wire up the backing storage with a reverse http proxy, which has such plugins. 也许您应该使用具有此类插件的反向http代理连接后备存储。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM