J
J
John Bjornsen2018-03-25 23:12:58
In contact with
John Bjornsen, 2018-03-25 23:12:58

How to increase the performance of a chat bot?

I'm going to write my own chat bot for VK, and it became interesting in advance how to increase the speed of the bot. From here, I also had a lot of other questions, namely: If several people write to community messages at the same time, does VK send these requests to my server at once or does it create a queue of requests? Is a new bot script instance created for each request from VK?
And in the end, if we have a fairly popular bot, then how do we cope with a heavy load, create some kind of threads in the script itself or increase the capacity of our server, how does it all work?
PS I plunged into the abyss of web programming not so long ago, so the questions may seem silly, I ask you not to throw stones :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ayazZali, 2018-03-26
@ayazZali

Well, yes, you can also use longppool so that messages come right away. Well, asynchronous code, I suppose. what do you write on?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question