English 中文(简体)
key - > value store with binary attachments
原标题:

An extra requirement is that the attachments can be stored as a stream, as there might be potentially very large binaries that has to be saved. Videos etc.

I have looked at Voldemort and other key value stores, but they all seem to expect byte arrays, which is completely out of the question.

This should, preferrably, be written in Java, and be embeddable.

The use case is: I have written a HTTP Cache library which has multiple backends.

I have a Memory based one (using hashmap and Byte arrays), Derby database, persistent hashmap with file attachment, EHCache with file attachment.

I was hoping there was something out there which didn t use the file system, or if it does, it s transparent from the API.

I am storing the Headers with some more meta information in a datastore. But I also need to store the payload of the HTTP response.

The HTTP response payload might be VERY big, thats why I need to use streaming.

问题回答

Why is a byte[] value out of the question? Any object graph can be serialized into a byte array!

Have you looked at sleepycat s Berkeley DB (it s free)?

EDIT - having seen jhedding s comment, it seems like you need to store data which is too big to fit into a single JVM in one go. Have you:

  1. Checked that it won t fot into a 64-bit JVM?
  2. Tried using a network file system? (NAS or whatever)




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签