Skip to content

Erudika/para-dao-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Amazon DynamoDB DAO plugin for Para

Maven Central Version Join the chat at https://gitter.im/Erudika/para

What is this?

Para was designed as a simple and modular back-end framework for object persistence and retrieval. It enables your application to store objects directly to a data store (NoSQL) or any relational database (RDBMS) and it also automatically indexes those objects and makes them searchable.

This plugin allows Para to store objects in DynamoDB.

Documentation

Getting started

The plugin is on Maven Central. Here's the Maven snippet to include in your pom.xml:

<dependency>
  <groupId>com.erudika</groupId>
  <artifactId>para-dao-dynamodb</artifactId>
  <version>{see_green_version_badge_above}</version>
</dependency>

Alternatively you can download the JAR from the "Releases" tab above put it in a lib folder alongside the server WAR file para-x.y.z.war. Para will look for plugins inside lib and pick up the DynamoDB plugin.

Configuration

Here are all the configuration properties for this plugin (these go inside your application.conf):

para.dynamodb.sse_enabled = false
para.dynamodb.replica_regions = ""
para.dynamodb.backups_enabled = false
para.dynamodb.provisioned_mode_enabled = false
para.dynamodb.max_read_capacity = 10
para.dynamodb.max_write_capacity = 1

Finally, set the config property:

para.dao = "AWSDynamoDAO"

This could be a Java system property or part of a application.conf file on the classpath. This tells Para to use the DynamoDB DAO implementation instead of the default one.

Requirements

License

Apache 2.0