Skip to content Skip to sidebar Skip to footer

How To Connect To Mongodb On Azure, From Android?

Does anybody have specifics on how to connect an Android application to MongoDB running on Azure roles? -- Hi, I have MongoDB replica set running on multiple Azure roles in the Clo

Solution 1:

Your 'possible solution' is the right one in my view - you need to open a (load balanced) TCP port in the firewall surrounding your roles and InputEndpoint is the way to do that.

Solution 2:

You cannot use an input endpoint if you are doing writes when using a replica set of size > 1 if you are the github solution above. You do not want the Azure load balancer to route a write (insert or update) to a secondary of MongoDB in which case your write will fail. If you use Azure virtual machines then you can create a port mapping per virtual machine instance and overcome this.

Post a Comment for "How To Connect To Mongodb On Azure, From Android?"