Bots.Business
3.79K subscribers
673 photos
19 videos
27 files
595 links
Download Telegram
We have performance degradation now. Fix in progress.
πŸ‘3πŸ‘Ž2πŸ‘1
We've introduced a 250-millisecond read timeout in our database interactions to increase efficiency and overall system performance.

This timeout is essentially a time limit set for our system to get a response from the database. If the set time limit is exceeded without receiving a response, the read attempt is terminated, returning an error. This mechanism enhances our system's responsiveness and capability to handle numerous queries effectively, minimizing potential waiting times.

Further, we're excited to inform you that we're in the process of transitioning to a faster, more efficient database platform. This upgrade will significantly improve our query processing speed, resulting in better performance and reliability. However, this transition will take some time as we're ensuring a smooth and seamless shift to avoid any potential disruptions to our service. We apologize for any temporary inconvenience this might cause and greatly appreciate your patience during this period.
πŸ‘Ž7πŸ‘2
Dear users,

To optimize our system, we have implemented a 250-millisecond timeout for database read operations. Understanding the possible complexities this could introduce, we would like to provide some recommendations to minimize the risk of timeouts:

Reduce the number of calls to User.getProperty and Bot.getProperty: Try to limit the use of unnecessary variables. The fewer variables requested, the lower the database load, thus reducing the likelihood of a timeout.

Limit the size of variable values: When using functions such as User.setProperty and Bot.setProperty, it's recommended to keep data size minimal. Smaller data volumes process faster, reducing timeout possibilities. Props with data for All bots users - it is not good. Use list here.
πŸ‘Ž4πŸ‘1
Since the beginning of the year, we've seen a substantial 100% increase in traffic. πŸ˜±β€οΈπŸŽ‰πŸ₯³

This growth underscores the necessity of enhancing our system architecture, and we want to assure you that our team is actively working on it.

While we strive to improve our backend, it's also crucial that user-generated code becomes more efficient. An increase in the user base means increased diversity in the code, which can introduce performance bottlenecks, impacting the overall platform speed.

Unfortunately, when user codes are slow, they can impact the platform at large, causing all bots to slow down. As a result, we've had to introduce limits, including the 250-millisecond database read timeout, to maintain BB stability and improve overall performance.

We're continuously looking for ways to balance performance, user experience, and growth, while also maintaining a platform that allows users to build varied and complex bots. We appreciate your understanding and your contributions to improving BB.
πŸ‘Ž65🀬62πŸ‘4
Bots.Business
Once more time. This BJS is NOT working! DO NOT USE IT! Yes, it is working with 10 users, maybe 20. But it 100% is not working with 50 or more users! You will have TimeOut error. var fullBotUsers = Bot.getProperty("wholeUsers") for (var index in fullBotUsers)…
Once more time. This BJS is NOT working!
DO NOT USE IT!

Yes, it is working with 10 users, maybe 20. But it 100% is not working with 50 or more users!
You will have TimeOut error.

var fullBotUsers = Bot.getProperty("wholeUsers")
for (var index in fullBotUsers) {
  var info = fullBotUsers[index]

Use Bot.runAll
πŸ‘8πŸ‘Ž6❀1
Bot cloning - fixed
πŸ‘Ž7❀1
approx 500 tasks for bot cloning in progress now

update: completed
πŸ‘Ž8πŸ‘1
Forwarded from Bots.Business
We have this error with Api.getChatMember because it is not only one getChatMember

As a rule it is several commands like:
getChatMember > check > ... > getChatMember > check > 

so you have timeout here because all this commands must be executed in 8 secs only! πŸ™ˆ


How make quickly work around?

Use Bot.run with runAfter:

getChatMember > runAfter > check > ... getChatMember > runAfter > check >

We will move
getChatMember
to background asap with this issue.
πŸ‘Ž9πŸ‘3❀1
Api.getChatMember is executed now in background with 100 secs timeout
One getChatMember method can take 5 secs so in one command you can check approx 20 channels

It is must be more stable now.
πŸ‘Ž3πŸ‘2
We have a lot of errors in BJS like on success of getChatMember:

BJS error: Cannot read properties of null (reading 'data')

this code can be looks like:

if(request.data){
...
)

There are no any request In success command!
Because user don't post any request to bot: bot make request (with Api.getChatMember or etc) not user.

Simple fix
Fix your code with:
if(request&&request.data){
...
)
πŸ‘Ž10
Http.get method and another Http methods - timeout increased to 100 secs
🀣30
Performance work continues. We want to significantly speed up BB.

It is most priority task now.
πŸ‘Ž13πŸ‘9
We are currently actively working on improving our system to ensure faster property retrieval. This update will significantly increase the speed of property reading and enhance overall performance.

We are investing significant efforts into a successful migration to a new and improved database. This process is complex and requires thorough testing to ensure seamless system operation after implementation. We strive for flawless execution of the data unloading mechanism from the old database, so we kindly ask for your patience and await further updates.

Stay tuned to our news as we will regularly provide progress updates and the latest developments. We are committed to providing you with enhanced features and a more efficient user experience with our system. Thank you for your patience and support!
πŸ‘16πŸ‘Ž10πŸ₯°3⚑1πŸ”₯1
We have good Appdex now πŸŽ‰πŸ˜±

Continue to work and monitoring.
Prop timeout reading will be increased on good Appdex after 24 hours
πŸ‘Ž6πŸ‘2🀣2
Most slowly it is BJS-runtime now.

It is:
- database props reading (approx 80%)
- BJS execution

So we need to improve props reading&writing.
πŸ‘Ž10
Apdex is green for 24 hours. πŸŽ‰

Prop timeout reading increased to 1000 ms

#timeout
πŸ‘7πŸ‘Ž3
HTTP requests - fixed and more quick now
πŸ‘8πŸ‘Ž3