Persistance - DBaaS

Perstistance

Every microservice should use it's own persitance layer. Optimally this will be a SasS solution. The current list of database can be discovered hear and the zalando technology radar.

Architectural Decisions

When to use NoSQL and when RDBS?

NoSQL Best Practices

  • critical points:

    • embedding vs referencing data

    • reads vs writes

    • normalized vs denormalized vs mixed

Why DynamoDB?

pynamodb (ORM) - my experience (ask in stack overflow with a link to my describe esperience and the code) why cann't I serialize it back?

boto3 - prefered way by amazon.

https://www.youtube.com/watch?v=ONLKIUFXLcg&t=2s

https://www.uplift.agency/blog/posts/2016/03/clearcare-dynamodb

  1. Go to the AWS Console and Search for "DynamoDB"

  2. Create a table e.g. "apis"

Important: Partition Key Fieldname can not be changed and it must always be included when you insert data to the database. Like:

Further you validate in your that a valid value was send to your service.

  1. Create DynamoDB table name notes and Primary key with Partition key userId and sort key noteId and the default created new IAM Role DynamoDBAutoscaleRole.

Last updated