Database Reference
In-Depth Information
DynamoDB Local
DynamoDB is a lightweight client-side database that mimics the actual DynamoDB data-
base. It enables users to develop and test their code in house, without consuming actual Dy-
namoDB resources. DynamoDB Local supports all DynamoDB APIs, with which you can
run your code like running on an actual DynamoDB.
To use DynamoDB Local, you need to run a Java service on the desired port and direct
your calls from code to this service. Once you try to test your code, you can simply redirect
it to an actual DynamoDB.
So, using this, you can code your application without having full Internet connectivity all
the time, and once you are ready to deploy your application, simply make a single line
change to point your code to an actual DynamoDB and that's it.
Installing and running DynamoDB Local is quite easy and quick; you just have to perform
the following steps and you can get started with it:
1. Download the DynamoDB Local executable JAR, which can be run on Windows,
Mac, or Linux. You can download this JAR file from http://dynamodb-
local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest .
2. This JAR file is compiled on version 7 of JRE, so it might not be suitable to run on
the older JRE version.
3. The given ZIP file contains two important things: a DynamoDBLocal_lib
folder that contains various third-party JAR files that are being used, and Dy-
namoDBLocal.jar which contains the actual entry point.
4. Once you unzip the file, simply run the following command to get started with the
local instance:
java -Djava.library.path=. -jar DynamoDBLocal.jar
5. Once you press Enter , the DynamoDB Local instance gets started, as shown in the
following screenshot:
Search WWH ::




Custom Search