B
B
bozuriciyu2019-08-16 21:05:15
API
bozuriciyu, 2019-08-16 21:05:15

What to choose to get data from another server: http request or connect to Mongo directly?

Server 1 - the main backend with a database (Monga)
Server 2 - an API for the front, a caching server that receives requests from the client and then accesses Server 1.
What is the best way to connect from Server 2 to Server 1? Will a regular http request and then the controller of Server 1 get into Monga, or will they connect directly to the remote Monga? Why exactly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question