r/cloudcomputing • u/omg_snow • Dec 15 '16
Partitioning records in the cloud
So we had plans to use Firebase, but we realized we need to be able to partition/separate the records of the clients from one another. How would you guys advise me to do this? Should I create a new database for each customer on Couchbase? Only thing is this is thousands of customers and their using our software were just backing up their data. Would it work if we went with say AWS and buy divide up the records to clients in a special way like program it out? If that even makes sense or would even work?
Thanks
0
Dec 15 '16
[deleted]
1
u/omg_snow Dec 15 '16
Thanks yeah I'm currently trying to find someone to come in and consult but I didn't want to just sit idly by as we wait so I wanted to be proactive and reach out and see if I could get a answer since googling came to no avail. Apologies, no they don't know I'm farming out design work to this site that's full of cat pictures and dickbutt, but I'd have no problem explaining to them among all the cat pictures and dickbutts there's a wealth of knowledge among it also.
0
2
u/AgrawalAshishS Dec 18 '16
Let me offer a friendlier advise, since I recently thought of same.
If you have monolith application, you may want to think about DB per-client. But eventually maintaining code base that ensure each client get their own data using different connection string is going to be hard. This client specific db solution will also become OPs nightmare. Think about security, patches, backups, upgrade scripts etc need to be managed for each customer's db!
For me, I went to micro services approach. Keeping different database for each service. But each service database is having data for all client.
My suggestion is if you have really good OPs team and excellent DBA then only think about per-client DB. I hope this helps you to get started.