Closed zpatrick closed 6 years ago
We currently have in-memory implementations for our database object. Since this service will be stateless, we need to use a real database for persistence. I recommend we use this DynamoDB library.
We will need the following:
aws-region (envvar = SB_AWS_REGION) (default="us-west-2")
aws-access-key (envvar = SB_AWS_ACCESS_KEY)
aws-secret-key (envvar = SB_AWS_SECRET_KEY)
dynamodb-table (envvar = SB_DYNAMODB_TABLE)
DynamoDBStore
We currently have in-memory implementations for our database object. Since this service will be stateless, we need to use a real database for persistence. I recommend we use this DynamoDB library.
We will need the following:
aws-region (envvar = SB_AWS_REGION) (default="us-west-2")
aws-access-key (envvar = SB_AWS_ACCESS_KEY)
aws-secret-key (envvar = SB_AWS_SECRET_KEY)
dynamodb-table (envvar = SB_DYNAMODB_TABLE)
DynamoDBStore
object that satisfies the db.Store interface