0

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?

2
  • Yes, it is going to be the same as the localhost. Everything! Go ahead and try!. Commented Jan 20, 2018 at 20:46
  • I used it for more than 3 months. And recently when my db processes needed more computation, I had to separate them Commented May 12, 2021 at 13:44

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I now use AWS Lambda and AWS DynamoDB instead!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.