Hi,
I spent few days to get answers from various hosting companies on what type of server I need to use for our MongoDB database.
The web + db is ruuning in the dev environment on single server.
We need to deploy to production quickly.
Application puts all user uploaded photos and videos in GridFS (original repository). We have large number of files to store.
These will be served via CDN eventually but not during first few months.
Given this:
- The database will get very very large in size in terms of data volume (videos are 20MB in avg size)
- Shards should scale horizontally
- Multiple web front end might query the database simultaneously
- Data can easily be backed up
- Faster lookup/query
Different hosts have recommended different options & I am confused:
- Some suggests to use a dedicated server with large disks (TBs in size) for DB
- Some suggests to use a cloud server with big disks (GBs in size) as it will scale
- Some suggests to use a VPS with big disks (GBs in size)
The web servers will be one/more cloud servers.
What type of server setup should we choose so that the database grows by automatic sharding?
Thanks for helping