Persistance - DBaaS
Last updated
Last updated
Every microservice should use it's own persitance layer. Optimally this will be a SasS solution. The current list of database can be discovered and the .
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.
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.
Create DynamoDB table name notes
and Primary key with Partition key userId
and sort key noteId
and the default created new IAM Role DynamoDBAutoscaleRole
.
Go to the and Search for "DynamoDB"
Create a table e.g. "apis"