Member-only story
Implementing Soft Delete in AWS DynamoDB
In the era of software development in 2024, software development was highly transferred and most of it was migrated to the cloud like AWS, Azure, and GCP. Databases also evolved with industry needs and some database models were invented like relational, document store, key-value, and graph. AWS and a key-value database develop DynamoDB. When I created my Saas, I needed to keep removed data physically in DynamoDB, in this blog I’ll share my experience briefly on how to implement soft delete in AWS DynamoDB.
1. Introduction
Let’s first speak of AWS DynamoDB and its features, because I think that it is a really good database and suggest using it.
Overview of DynamoDB
AWS DynamoDB supports both key-value store and document models, offers flexibility, scalable, you don’t have to worry about managing it, administrative actions, and expanding it. It also offers built-in security and in-memory caching. It has provisioned read/write capacity units or on-demand pricing models, and you can adjust based on your needs. It is completely optimized for cost because you can set these units.
What is Soft Delete?
While developing an application, there is always a question about what if accidentally data is removed by users or how…