.net - MongoDB on Azure: VM or Worker role? -


i interested in hosting mongodb on azure. believe have few options how host db on azure: virtual machine or worker role. pro , cons in each option? more specifically, how each approach differ in maintenance, configuration, scalability, ease work .net, , cost. easy switch other option later?

some details on creating (though love hear general pro/cons of options based on varying circumstances): db accessed azure website. website asp.net mvc web api site rest service. don't expect traffic service, , db, on 100 resource requests per minute, @ least start. database relatively small, under 10,000 records in foreseeable future.

well... mongodb easier set in virtual machines, can things configured how want them, without dealing startup scripts set things up.

since you'll have website on azure web sites, can either expose endpoint(s) publicly or create virtual network between website , virtual machine (now supported).

if you're deploying standalone server, difference between virtual machine , worker role deployment won't matter much. but... once replica sets , shards, that's you'll find virtual machines easier work with. , if want run linux instead of windows, you'll have no choice go virtual machines.

regarding ease of working mongodb .net: shouldn't matter @ all.

scaling-wise: it's not you'll change vm sizes or vm count. vm size changes should same experience either setup. scale-out more vms (e.g. expanding replica set) more manageable virtual machines, you'll in total control of each node. more important when scaling in (removing node), since worker role instance scale-in doesn't let specify instance rid of.

edit july 2015 - answer 2 years old. cleaned few things. quick update:

  • vm sizes larger mentioned (up 448gb 32-core, plenty mongodb), along ssd-attached storage of vm sizes
  • aside manual configuration, new azure resource manager can used automate cluster spin-up on virtual machines.

one final thought: while you're pondering options, might consider hosted mongodb solution such mongolab. can set free (500mb) or paid database either through azure store or directly through mongolab's website. takes minute set up...


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -