A
A
Andrey2016-08-25 18:59:50
Database
Andrey, 2016-08-25 18:59:50

How to organize communication between the site and the program on the VDS server using the HTTP protocol to ensure maximum efficiency?

Hey! There is such a problem. There is a site on shared hosting and a program on VPS. And you need to combine them somehow with maximum efficiency.

There is a site where people apply for processing. Applications are stored and displayed there. The VPS server has a program that will perform these tasks. What is the best way to make communication between these systems?

Suppose I added a task, it was added to the site database and a request was sent to update the data of the handler program (the same process when deleting) on ​​the server it will be processed until it is deleted from the site. As an option, I thought to update the data at a certain time.

Who is responsible for initializing the data update? Should the program processing the data have HTTP access? Or are there some tricky ways that the Pros use? ;-)

Thank you for your understanding and incomprehensible explanation =) I hope you will help me think it over.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-08-25
Haylov @scrolllocker

If such an architecture is needed, then something like this:
- On the shared, we store tasks in the database and, on an event, push them into the queue.
- On VDS, we pick up tasks from the queue and execute them.
You can take any queue (for simplicity, you can take iron.io)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question