DynamoDB - Environment
The DynamoDB environment only consists of using your Amazon Web Services account to access the DynamoDB GUI console, however you can also install locally.
Go to the following website − https://aws.amazon.com/dynamodb/
Click the Get Started with Amazon DynamoDB button or the Create AWS Account button if you don't have an Amazon Web Services account. A simple, guided process will inform you of all associated fees and requirements.
After completing all the required process steps, you will have access. Just log in to the AWS console and then navigate to the DynamoDB console.
Be sure to remove unused or unwanted material to avoid associated fees.
AWS (Amazon Web Service) provides a version of DynamoDB for local installations. It supports building applications without a web service or connection. It also reduces allocated bandwidth, data storage, and transmission fees by providing a local database. This guide assumes a local installation.
When you're ready to deploy, you can make small changes to your application to convert it to use AWS.
The setup file is an executable .jar file . It runs on Linux, Unix, Windows, and any other Java-enabled OS. Download the file using one of the following links −
Note. Other repositories offer the file, but not necessarily the latest version. Use the links above to get updated installation files. Also make sure you have Java Runtime Engine (JRE) version 6.x or later installed. DynamoDB cannot work with older versions.
After downloading the appropriate archive, extract its directory (DynamoDBLocal.jar) and place it in the desired location.
You can then start DynamoDB by opening a command prompt, navigating to the directory containing DynamoDBLocal.jar and typing the following command:
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
You can also stop DynamoDB by closing the command line that was used to start it.
In this tutorial, we use the Java console and GUI examples for conceptual and code clarity. Install Java IDE, AWS SDK for Java, and set up AWS security credentials for Java SDK to use Java.
Converting from local code to web service code
When you are ready to deploy, you will need to modify your code. Adjustments depend on the code language and other factors. The main change is simply to change the endpoint from local to AWS Region. Other changes require a deeper analysis of your application.
A local installation differs from a web service in many ways, including but not limited to the following key differences:
A local installation creates the tables immediately, but the service takes much longer.
The local installation ignores bandwidth.
Uninstallation occurs immediately upon local installation.
Reads/writes are fast when installed locally due to the lack of network overhead.