G
G
Gorini42012-11-07 23:05:18
PHP
Gorini4, 2012-11-07 23:05:18

The interaction of the demon and the web muzzle on different servers

Good evening everyone!
There is a server on which the python demon is spinning. There is a wish to fasten to it a web muzzle (Python/PHP). There are two questions:
1) I want to use two servers so that the web face does not affect the stability / performance of the demon (I don’t want the demon to be put on the web face with DDoS). Is this an adequate idea or is it paranoia, but is it really possible to make a 100% stable solution on one machine?
2) How exactly is it better to organize the interaction between these two servers (RPC, Socket, something else)?
Thanks to everyone who answers =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
egorinsk, 2012-11-07
@egorinsk

> (I don't want a demon to be put on the web face with DDoS)
So if the face redirects requests to the demon without limiting their speed, the demon will fall before the face. So that it cannot be broken so easily, it is necessary to limit the number of requests received per unit of time and the number of threads (if multithreading is used).
> How it is better to organize interaction between these two servers (RPC, Socket, something else)?
It is possible through HTTP/1.0 + JSON, for example. Or a binary protocol, if there is a desire to squeeze the maximum, but then you need to rewrite the demon in C.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question