L
L
ld66666666666662020-01-18 15:33:35
In contact with
ld6666666666666, 2020-01-18 15:33:35

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

3 answer(s)
K
Kirill Minovsky, 2020-01-19
@ld6666666666666

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

P
Puma Thailand, 2020-01-19
@opium

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

D
Dr. Bacon, 2020-01-18
@bacon

What you know best, then use it. Well, load testing to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question