Tell me more ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am building an api, to share discounts between users. Each discount can be linked with several users, using joins and many to many relationships.

Currently I am using MySQL and I am looking to scale horizontally.

But when I want to enable sharding based on discount ID and replacing joins, my new schema seems really close to a mongodb schema with embedded documents and duplicated data.

To scale horizontally efficiently, how can I choose between a stack based on mysql with sharding, memcache and master-slave replication and a stack based on mongodb.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.