Thanks
I have a distributed set of servers to manage the workload and minimise risk and maximise the platforms strengths (I though).
CouchDB on cloudant was all HTTP based and assigning permissions and hitting via REST was good but cloudant scalability and geo is expensive.
My needs/background.
1x Ubuntu 14.04 (2x cores, 2GB RAM) VM with NodeJS/NGINX fort the login API that saves to a heavily memory optimised database. Permissions are granted for the MongoDB cluster on a seperate server.
- has user prefs table
- log table
- app related data in a few tables
1x Cachefly File CDN for image uploads.
1x Cluster of MongoDB public data with 3 server nodes in the cluster. The user logs into the login server and gets a return set of saved prefs and API token to other servers.
I thought putting the public user data in a mongo cluster would prevent hits to the login server.
I may have to spin up a server to sit above he mongo cluster?
Q1) would this void the benefits of mongo scalability?
It would be nice if Corona had a native mongo driver like MOAI. There are lua recompiles with Mongo support but not mobile device compatible.