This may sound a bit naive, but here goes. Assuming I am using MongoDB Atlas on AWS. This sets up a VPC for Mongo. Takes care of a lot of internal work as well. No problem there. Now assume I need and require a Node.js server somewhere in that scheme. Where does this Node.js server go in the scheme of the VPC for Mongo?
If I had used an Amazon NAT Gateway setup I know exactly where my entry point is, (Gateway), Node server(s) are and then Mongo servers. But in the Atlas configuration I am really confused as to how to connect a secure Node.JS app running on a server to the Mongo VPC.
Can anyone just clear up the architecture layout for me?
Atlas documentation deals with Mongo. Almost all the stuff I saw on the Net deals with local Node programs or using Docker (which we are not using atm.)
So am confused where this Node.Js server would go as it also needs to be replicated into zones etc.
Do I set up a NAT Gateway by myself then apply Atlas behind that Gateway on my VPC? or do I set up Atlas first then hook into it from a server I set up in Amazon?
Sorry if this question seems dumb, but this has really stumped me.
Thanking all in advance