J
J
Jekson2019-01-29 11:09:47
linux
Jekson, 2019-01-29 11:09:47

How to implement a data exchange mechanism between linux servers?

Guys, need help. I'm doing the web, using Django and Flask, standard configuration projects, nothing serious.
Now we need to implement something like this. There is a main server on linux (main, Debian will most likely be there), other servers will connect to it (slave, based on alpine linux) to which user devices will in turn connect. At the moment, collection and writing to a file of all ip addresses connected to each slave has been done (not by me). It is necessary to implement a web protocol, in which the main will, for example, poll all slaves once a minute, extract information from them by ip and save / update into one common file, and then transfer it back to all slaves for saving.
Thus, on main 1 is a common file, on slave - 2 files.
Can you please tell me how to implement this? Correctly I understand that there will be no need for frameworks. Maybe Nginx, uwsgi (there is at least some experience with them)?
I would be immensely grateful for the advice of experienced comrades!
UPD The task is complicated by the fact that the number of slaves can change during this minute of the poll and we do not keep track of the number of connected devices.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2019-01-29
@Lepilov

It looks like a task that can be easily and at the same time qualitatively implemented on Twisted .

V
Vladimir, 2019-01-29
@vintello

rabbitmq + celery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question