A
A
Alexander2020-10-13 17:27:32
linux
Alexander, 2020-10-13 17:27:32

How to load test a bot using longpool?

Good afternoon, I am writing a chat bot for VKontakte, I use longpoll to receive events, the bot itself is in python. Tell me what tool you can use to test the bot on the load. I can't find any literature on this. For bots using the callback api, I found the wrk utility in Linux, which sends http requests to the server and thus shows how many requests are processed per second, but it’s not very clear how this can be understood with a longpool connection. I would be glad if you tell me a tool or at least literature that you can read.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
matperez, 2020-10-13
@matperez

1. Write your own longpoll server and send requests from it.
2. You can pull out the event handling mechanism from the application and test it separately from the longpoll. Get the upper bound, perhaps this will be enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question