E
E
Elvis2019-05-13 11:22:05
Python
Elvis, 2019-05-13 11:22:05

One web server for many bots or for each bot its own server?

Fellow architects and professionals in this matter, tell me how to do it right.
It is supposed to keep a dozen bots for telegrams. Bots are simple and don't take up a lot of resources.
There is a VDS server.
What is the best way to organize? Create a virtual environment for each bot and raise the bot to flask there (as an example) or create one virtual environment, raise flask there, and route incoming information to bots already inside the web server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-05-13
@Dr_Elvis

Ideally, isolate environments as much as possible. But it all depends on the amount of support and development. If I had my own vds, then I would think about containers in the future just to isolate the environment. In general, Serverless is now used for such tasks - cheaper and easier

O
Oleg Gamega, 2019-05-13
@gadfi

a little is how much? if the relano is not much, it can be easier to use the same lambda?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question