Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple online key-value storage service [closed]

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.

like image 909
Martin Hansen Avatar asked Mar 02 '10 11:03

Martin Hansen


People also ask

Which is the best example for key-value store?

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.

When should you not use a key-value database?

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.

What is a key-value storage system?

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.

Which database can be used to store data with key-value pair format?

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.


2 Answers

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);
  }
});
like image 149
Acorn Avatar answered Sep 20 '22 15:09

Acorn


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.

like image 38
Marcos Placona Avatar answered Sep 21 '22 15:09

Marcos Placona