Answer the question
In order to leave comments, you need to log in
What is the most efficient way to get data from another server?
There are two servers, server1 works with statics, server2 only processes search queries and returns results. There was a need to insert search results from server2 into the pages of server1. In a quick way, it was all implemented through file_get_contents(' server2/query=mersedes+door ') with an insert in the right place. Are there better ways to implement such a scheme?
Answer the question
In order to leave comments, you need to log in
Too vague question.
Database replication, rsync, tunnel to the database if the data is updated frequently.
Highly dependent on the task, resources, and nature of the data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question