CJCHRIST777
CJCHRIST777

Reputation: 94

Using same EC2 instance for node and mongo hosting

Can I use my aws EC2 instance to run both node server and mongo server by installing mongo driver into my EC2 instance ?

Its gotta be just like how we do it in our localhost, right?

Upvotes: 0

Views: 208

Answers (1)

cn0047
cn0047

Reputation: 17081

I'd rather advise you to separate concerns and have dedicated instances for nodejs and for mongodb. It's not only good practice to separate app and db but also you'll able to scale much easier, and you'll scale exactly what you need.

Upvotes: 2

Related Questions