Storage in Local DynamoDB vs. the Amazon DynamoDB Service
The DynamoDB Storage Backend for Titan uses the downloadable version of DynamoDB for storage by default. This edition of DynamoDB is useful for initially testing your application with the DynamoDB Storage Backend for Titan, but we recommend that you switch to Amazon DynamoDB early in the testing process for a more accurate representation of performance in a production environment.
To switch the storage backend from local DynamoDB to the Amazon DynamoDB web service
The default region is US East (N. Virginia), if you require a different region, you must change it in the configuration file. Otherwise, continue to Step 2.
In the configuration file at
src/test/resources/dynamodb.properties, change the endpoint from
https://dynamodb.us-east-1.amazonaws.comto the DynamoDB endpoint for your region. For example, if your region is US West (Oregon), use the following endpoint setting:
For a list of available regions and endpoints, go to the Amazon DynamoDB section in the Amazon Web Services General Reference.
Start Gremlin Server with the following command:
You can now run Titan without having to run DynamoDB on your computer. The Titan DynamoDB Storage backend will use tables in the DynamoDB region of your endpoint instead of a local instance of DynamoDB.