A Serverless backup solution for MongoDB using Flask and AWS Lambda

What is MongoDB?

Why the Solution?

Solution Details

Overall Architecture
Flow

Setup steps

Components
  1. An AWS account
  2. A Heroku account for the custom API
  3. A free MongoDB instance at (https://www.mongodb.com/cloud/atlas)
  4. Python on local machine
SQL
Deploy
Create Rule
Create Filter
Assign Metric
Notification

Scope of extension

  • Better Authentication for the API
  • Change the mode of backup from Delete and replace to a delta only method

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Amlan Chakladar

Amlan Chakladar

Cloud architect and DevOps engineer. Love to code and develop new stuff. A nerd by nature.