
Self destructing data with Cosmos DB
I am working on a share feature for Sharp Cooking that will allow users to share recipes online. This is the first time a feature will require storing data outside of the local app context, and Cosmos DB is a great option for implementing it. First, it provides a free tier that should be sufficient for my users. Second, Sharp Cooking already stores recipes as documents in the browser, so it should be easy to send the same data to Cosmos DB. While there is no personally identifiable information or anything sensitive involved, I prefer not to keep anything posted by a user for longer than a few hours. Typically, I would write a function or something similar to run on a schedule and delete any stale data. In Cosmos DB, there is an easier way. ...



