Turbo Mode and Limit of Connections in @MenuBuilderBot

Turbo Mode and Limit of Connections in @MenuBuilderBot

MegaHubTelegram

How to speed up your bot at the time of a large influx of users and their simultaneous activity during advertising companies or periodic events in your bot. About «Turbo Mode» and Connection Limits in Telegram bots.


📜 The translation of this materials into your native language can be automatically done using the Google translator. Follow the link and select the desired language in the title:
https://translate.googleusercontent.com/translate_c?depth=1&sl=en&tl=es&u=https://telegra.ph/Turbo-Mode-and-Limit-of-Connections-in-MenuBuilderBot-EN-03-27

The performance of bots in Menu Builder is constantly maintained at the proper level, however, in order to keep the cost of services as low as it is and remain the most affordable bot constructor in Telegram, the load limits of an individual bot are estimated in a way to be used in the NORMAL (ROUTINE) MODE.


If while placing advertisements or another similar case, when a large number of users come to the bot at the same time, you expect to receive temporary peaks of loads or already feel delays in the bot’s performance for the above reasons, you can now activate «Turbo Mode»


In «Turbo Mode» - your bot’s "Connection Limit" will be increased, which will instantly allow it to transfer more load to our server from Telegram servers.



⬛ Connections Limit


CONNECTIONS LIMIT - determines how many simultaneous requests Telegram server can send to your bot. The higher this number, the more users will be able to use the bot per unit of time without feeling that the bot is slowing down.


In the most general case, pressing one button creates one connection. The active connection is closed when the assigned action is fully completed and the message with the result has been sent to the user.


Thus, 10 connections doesn’t NOT mean 10 concurrent (simultaneous) users.


It is rather a combination of factors:

• Number of concurrent (simultaneous) users.

• The number of buttons presses of each of them

• The Frequency of pressing buttons of each of them

• The complexity of the actions that the bot needs to perform with each click.


The above factors can overlap each other combining in various combinations both in quantity and in duration. This will ultimately determine the degree of overflow of the request queue on Telegram servers.


It should be understood that the mechanics of user interaction with the bot is such that 200 users may not perform any simultaneous actions while using the bot at the same time...

Therefore, a properly built bot with 100k users where active user actions are spread out in time may never feel a lack of connections, while a bot with a small number of subscribers, however, all actions in which are concentrated in a short period may easily experience a slowdown in reaction…


⬛ Request Queue


REQUEST QUEUE – (Pending Messages) shows the current number of requests waiting to be send to your bot, that happened to be accumulated on the Telegram server at the moment when report message was generated.


Please note that on average, the lifetime of one request is tenths or hundredths fraction of a second, so firstly, even if there is a queue of 15-20-30 requests, there should not be any noticeable delay, and the numbers indicated in the message are just a snapshot of the state of the system at the time of generation the report message itself. Therefore it can rather give an idea of ​​the figures range at the current moment, rather than reflect a certain long-term state.


Naturally, there are exceptions to every rule. Good example of an exception for this case is the Button Bonus. There is an artificial delay of one second for this type of buttons. This is due to the principle by which protection against multi-clicks works, when an attacker tries to press a bonus button more often than is stipulated by button’s cool-down time.

Thus, the need to press a large number of bonus buttons in the bot inevitably leads to the fact that the lifetime of one connection increases to 1 second. Such large delays can already lead to an overflow of the Queue even with not the highest user activity.


In simple words, all of the above means that, in the most general case, the “Number of connections” determines how many people can SIMULTANEOUSLY and ACTIVELY use the bot per unit of time.


SUMMING UP: There is no direct correlation with the number of users in your bot and its performance. It matters how your interaction with them is organized, how many people SIMULTANEOUSLY and ACTIVELY use its functions.


Each bot is individual and it is impossible to give one recommendation to everyone. However, the following factors are having influence to the right “Number of Connections” you may need at the moment:

• An active advertising company when a large number of users come to the bot at the same time.

• The number and complexity of tasks, that new users need to accomplish immediately after they started the bot (subscription to the channel or filling up the forms for example).

• The number of messages and mailings that you are currently sending.

• The need for users to fill out feedback forms with storing data in variables.

• The presence of auto accruals to the balance of users.


The more simultaneous active actions of a large number of subscribers, the greater the chance of slowdowns.


⬛ Turbo Mode


TURBO MODE - implemented to temporarily increase the Connection Limit in order to accelerate the work of your bot during peak situational loads. Allows you to transfer more load, per unit time, to the Menu Builder’s server from Telegram servers.


Turbo Mode is activated in your bot. To do this, go to:

☞ 🔐Admin | 🧩Extensions | 🚀 Turbo Mode


At the moment, the acceleration of your bot can be activated on

• 1 day

• 7 days

• 30 days

Select the desired duration and confirm activation.


You can check the status of the Queue and the current Connections Limit in the @MenuBuilderBot head-bot.

To do this send command to the Head-bot (command will only work for admins):

Or go to:

☞ 🛠Manage Bots | 📋List of Menu-Bots

Select your bot and click: «Bot Status».


How to use it

1. If you feel delays in the bot and receive user complaints

2. Go to the @MenuBuilderBot head bot.

3. Send the command:

4. If the queue is more than 0 zero and starts to accumulate during the second check, then you can activate the "Turbo Mode". If it is zero or near zero, then everything is fine.


Emergency Turbo Mode activation

If, due to increased load, your bot has stopped (or almost stopped) responding to button presses or commands, then it will be difficult for you to turn on Turbo Mode in the regular way (via the bot admin panel). For such cases, the head bot @MenuBuilderBot, in your bot management section, provides the ability to activate Turbo Mode.

To enable the mode, go to the head bot @MenuBuilderBot
☞ Manage bots > List of bots.
• Select the bot name from the list.
• Press the inline button "Turbo Mode".

This will let you to enable Turbo Mode for 7 days.
The cost is standard.

❗IMPORTANT: To activate Turbo Mode, after purchase, you must restart the bot in the same place in managing the bot.



https://telegra.ph/Menu-Builder---All-Help-Materials-02-22

Report Page