GitHunt
GA

garye/SimplerDB

Old project project from RubyForge: Test your AWS SimpleDB applications offline

SimplerDB

== DESCRIPTION:

SimplerDB is an in-memory implementation of Amazon's SimpleDB REST API.
You can use it to test your application offline (for free!) or experiment with SimpleDB
without a beta account.

== FEATURES:

== SYNOPSIS:

In order to use SimplerDB, you will need to replace Amazon's service url (http://sds.amazonaws.com)
with http://localhost:8087 in your client. RightAWS[http://rightaws.rubyforge.org/right_aws_gem_doc]
and AwsSdb[http://rubyforge.org/projects/aws-sdb] are two ruby clients that let you do this.

To write a ruby-based unit test using SimplerDB, you can use the following setup/teardown methods to
start and stop the server for each test.

def setup
@server = SimplerDB::Server.new(8087)
@thread = Thread.new { @server.start }
end

def teardown
@server.shutdown
@thread.join
end

You will need to configure your SimpleDB client to point to http://localhost:8087 for the test,
but otherwise your code will work just as if it was accessing Amazon's live web service.

For a more complete example of a functional test using RightAWS take a look at
http://simplerdb.rubyforge.org/svn/trunk/test/functional_test.rb

Installed with the gem is the simplerdb command, which starts a standalone SimplerDB server.
The optional command-line argument allows you to set HTTP port (8087 by default).

== REQUIREMENTS:

  • Dhaka[http://dhaka.rubyforge.org]
  • Builder[http://builder.rubyforge.org]

== INSTALL:

  • sudo gem install simplerdb

== CAVEATS:

  • This was programmed against the very first SimpleDB specification. The world has moved on and this is probably no longer relevant.
  • Since I don't have a SimplerDB beta account this software has not been tested in comparsion to the live web service and the behavior might differ. If you discover such a scenario please report it as a bug.
  • SimplerDB has only been tested with ruby SimpleDB clients.
  • Query performance with large numbers of items (more than 1000) in a domain could be poor.

Languages

Ruby100.0%

Contributors

Created July 8, 2011
Updated June 14, 2014
garye/SimplerDB | GitHunt