Database Reference
In-Depth Information
DynamoDB Local
DynamoDB Local is a local client-side database that emulates the DynamoDB database in
our local system. This is pretty helpful while developing an application that uses Dy-
namoDB as the backend. Every time after writing a module, in order to test whether the
code works fine, we need to connect to Amazon and run it. This will consume a lot of
bandwidth and a few dollars. To avoid this we can make use of DynamoDB Local and test
the code locally. Once the testing is done we can then make our application use the AWS
DynamoDB service. You need to perform only three actions for this, which are as follows:
1. Download DynamoDB Local from http://dynamodb-local.s3-website-us-
west-2.amazonaws.com/dynamodb_local_latest .
2. Start the DynamoDB Local service (should have JRE 6 or later).
3. Point the code to use the DynamoDB Local port.
We don't need to discuss more about how to download a file from the Internet. So, let's go
directly to step 2. The downloaded file might be a zipped one ( tar.gz or zip or rar ).
We need to extract it to a location. I have extracted it to C:\dynamodb as shown in the
following screenshot:
Starting the DynamoDB Local is very easy. First we need to change the working directory
using the cd command, and then we can start DynamoDB Local on port 8888 using the
following command:
Search WWH ::




Custom Search