In a number of projects I plan to create (widgets/local client software) I want to store some user preferences etc. I could do this client side, the widgets have this functionality, or I could store it online somewhere, giving the user access to those preferences on any computer, or after a reinstall etc..
The problem is that I don't want to associate those widgets etc with any domain in my possession, or pay the money for another domain and hosting, also implement and maintain the server side code for such a service.
So my question is: Is there any online services that provide storage for simple key-value pairs? Preferably free of course for limited usage. Keep in mind that I want to access it with javascript.
Examples of Popular Key-Value DatabasesAmazon DynamoDB: Probably the most widely used key-value store database, in fact, it was the research into DynamoDB that really started making NoSQL really popular. Aerospike: Open-source database that is optimized for in-memory storage.
Key-value stores are not considered suitable for applications requiring frequent updates or for complex queries involving specific data values, or multiple unique keys and relationships between them.
A key-value database is a type of nonrelational database that uses a simple key-value method to store data. A key-value database stores data as a collection of key-value pairs in which a key serves as a unique identifier. Both keys and values can be anything, ranging from simple objects to complex compound objects.
Document databases such as MongoDB and Couchbase extend the concept of the key-value database. In fact, document databases maintain sets of key-value pairs within a document.
OpenKeyval seems like just what you want.
OpenKeyval is a completely open key-value data store, exposed as a drop-dead simple web service. The goal is to make this a very easy way to persist data in web applications.
You can set and retrieve data using jsonp, so you don't need to worry about cross domain request restrictions. Using it is as simple as:
Storing a value:
$.ajax({
url: "http://api.openkeyval.org/store/",
data: "mykey=mydata",
dataType: "jsonp",
success: function(data){
alert("Saved "+data);
}
});
Retrieving a value:
$.ajax({
url: "http://api.openkeyval.org/mykey",
dataType: "jsonp",
success: function(data){
alert(data);
}
});
Yes, you could use Google App Engine, which has a great database system, and store everything in there.
Depending on how big your application is, you will have no storage limit, and it's a service that's always available and 100%* (if your application is not huge and uses loads of bandwidth) free.
You can use Java, Python or Ruby in there. so there's loads of nice options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With