fonk-apps / fonk-examples

Web application examples using FaaS/Object Storage/NoSQL on K8S
38 stars 6 forks source link

New function to delete complete database - Fission/Python #7

Closed juliogomez closed 6 years ago

juliogomez commented 6 years ago

Let's have a new function that deletes the complete database.

After spending some time with the different FaaS engines you might find out compatibility issues when writing to the DB. When you update the DB with one engine, then the next one cannot read it because they are slightly incompatible formats.

During a demo, when you want to change from one FaaS engine to the next one, you need to easily delete the whole DB and work with an empty one. It also helps when your list of DB entries is so long that you need to scroll down during the demo.

juliogomez commented 6 years ago

8 is the PR to implement this new function.

nerdguru commented 6 years ago

I have mixed feelings about this one, but I'm not 100% sure either way. Strictly speaking, Guestbook doesn't support Delete and you can purge/restart the Mongo DB using kubectl commands. But I get the convenience of this so I'm going to merge it and see if, as the community grows, people have a strong feeling about this or are willing to wait for Delete, Update, and Read as part of the future planned ToDos app.