Quantcast
Channel: Active questions tagged mongodb-atlas - Stack Overflow
Viewing all articles
Browse latest Browse all 296

MongoDB - Is creating a new Database for each customer a good idea? [closed]

$
0
0

I am working on an application that will store customer data in MongoDB atlas M10 Dedicated Cluster. I am considering creating a new MongoDB database for each customer where the database name is the customer's uuid. I like this approach because of the following :

  1. It keeps each customer's data encapsulated
  2. If we need to remove a customer we can easily do so
  3. We are not worried about duplicate data because each customer will have their own unique data
  4. MongoDB doesn't seem to care how many Databases I create when using a M10 (or higher) Dedicated Cluster. Link1 and Link2 seem to support this claim
  5. Connecting a customer to the correct database shouldn't be an issue in the API layer because we'll have the customer's uuid upon their login into the application.

The limitations for a M10 dedicated cluster are documented in these mongodb docs. I don't anticipate going over the 5000 Collection & Index limit. I also do not anticipate going over the 1500 connection limit (I interpreted this as simultaneous connections).

Is this a good approach? Am I overlooking some performance or anti-pattern issue?


Viewing all articles
Browse latest Browse all 296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>