Answer the question
In order to leave comments, you need to log in
Can I ask a theoretical question about servers?
Guys, hello everyone.
There was such a question.
There is a website site.com. It will have an api. But what would you like to end up with? So that this api would have a separate server and a separate database. But it would be available api.site.com on a subdomain, not a separate domain. Most likely this is a fantasy?
The idea is to reduce the load on the database and on the server as a whole. Therefore, we want to move the api to the second server.
Answer the question
In order to leave comments, you need to log in
So it is possible.
in dns you can specify a different server address for the subdomain.
Another option would be to redirect the request to another server in nginx/apache
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question