Answer the question
In order to leave comments, you need to log in
How to write a bot for a VK community with an audience of 1 million subscribers?
Good day to all!
There is a question about writing a bot for the VK community,
There are a lot of manuals on the Internet, but there are a lot of questions, and so:
1. vds server 16 g of RAM, 4 cores
There are examples in php, the question is will it work stably on php, with so many subscribers?
2 or is some other way better for such an audience, for example, in python or nodejs?
Are you more interested in pure php, or is it still a disastrous thing?!
Answer the question
In order to leave comments, you need to log in
In general, it all depends on the number of messages per second and the type of bot. If the bot works with media files, then an asynchronous language is desirable, such as nodejs.
In general, you have a powerful server, so PHP will pull even 20 requests per second for callback, you can use this library:
https://github.com/digitalstars/simplevk
The only problem with writing bots in PHP is the slow speed of working with media files in longpoll when a large number of messages. If there is a powerful server and you can use callback, then PHP will fit even for a bot working with media files
A million is not a lot at all, we have about lyama requests per minute, and there the whole audience is lam, in any language it will pull
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question