用java实现存储库服务
我想要一个具有不同文件类型(mp3、ogg、flv、avi)的音乐(音频和视频)Url 存储库,可以用作网络服务。
是否有免费或开源的存储库解决方案(例如用 Java 编写)可以帮助我,或者您有一些可以帮助我的建议或模式吗?
I want to have a repository of Url to music(audio and video) with different file types (mp3,ogg,flv,avi) which can be used as a web-service.
Is there a free or open source solution for a repository (for example written in Java) which could help me, or do you have some recommendations, or patterns that could help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不完全清楚你在问什么,但这听起来像是 NoSQL< 的一个很好的用例/a> 文档存储。如果我是你,我会研究诸如 CouchDB、MongoDB、Amazon S3 等。CouchDB
通过对文档的 RESTful 调用提供 HTTP 接口。因此,您可以将媒体存储在其中,并且每个媒体元素都有一个 URL。有 Java 库 来支持它,而且它只是使用 JSON 的 REST,所以非常简单让它与 Java 一起工作。就我个人而言,我使用 Jackson 进行 JSON 处理。
我不确定纯Java解决方案,也许是JackRabbit?但对于您的需求来说,这似乎有点过分了。自己推出并不难。也许使用 Jersey 来实现 REST,然后将文件存储在文件系统上。我想这完全取决于您需要的规模。
希望这有帮助。
I'm not completely clear on what you are asking, but this sounds like a good use case for a NoSQL document store. If I were you, I'd be looking into things like CouchDB, MongoDB, Amazon S3 , etc.
CouchDB provides an HTTP interface via RESTful calls to your documents. So you could store your media in it, and you'd have a URL for each media element. There are Java libraries to support it, plus it's just REST with JSON, so it is really easy to get it working with Java. Personally, I use Jackson for JSON processing.
I'm not sure about a pure Java solution, perhaps JackRabbit? But it seems it may be overkill for your needs. It wouldn't be hard to roll your own. Perhaps use Jersey to implement REST, and then just store files on the filesystem. I guess it all depends on the scale you need.
Hope this helps.