Doubt about NodeJS + Mongo application structure at Digital Ocean

0

I started by using 1 machine at Digital Ocean instead of UOL Host. As I do not have much experience with the server configuration part, I have 1 doubt and I hope someone helps me:

Scenario:

1) My application is running on Digital Ocean on 1 server in New York.

2) My MongoDB database is running on 1 UOL Host remote machine. Is that in your opinion bad? Because of delays in accessing the bank, etc.

Do you recommend that I install MongoDB on the machine that is in my application, or can this slow my application server down? and if so, would it be better to leave it alone?

Remembering that my app it uses Node only to access the webservice and does not have any extra processing, that is, it is very light the part of the Node, basically it is just consuming services that go straight into the DB and it comes back the result the way I need it.

    
asked by anonymous 15.08.2016 / 19:28

1 answer

0

MongoDB on the application's own home server

Running your own database is more interesting in the following way:

  

Absolute control under the bank and the data entered in it

     

Possibility of a% custom%

     

Shortest response time between operations

     

Possibility of scheduling to accompany project needs

     

Save your site's bandwidth (in the case of big-data)

MongoDB on a remote server

However professional services with tool excellence are accessible at a reasonable cost nowadays.

It may be interesting to plan the application for the future under these aspects:

  

Simplified administrative tools (or even by graphical interface)

     

Easy Database Replication

     

Easy operation of debug

     

upgrade

     

Ability to add administrators

A basic% 512 of RAM and a limited 1GHz Core and Disk (20GB) may not be in the best scenario for running your own mongodb since measurements such as Gigabytes can be reached quickly if the application processes a lot of data .

But if your logs has higher specifications then you will consider using your own database. In addition to that a disk scaling (SSD) is already possible at the modest cost of $ 10.00 month per additional 100GB.

    
26.08.2016 / 22:57