kandi X-RAY | Qbot Summary
kandi X-RAY | Qbot Summary
Qbot
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Authenticate with username and password
- Send raw command to the terminal
Qbot Key Features
Qbot Examples and Code Snippets
Community Discussions
Trending Discussions on Qbot
QUESTION
Here is the error:
...ANSWER
Answered 2020-Nov-17 at 23:00You wrote that the object files depend on your C++ files, but you didn't include a rule for making the object files from your C++ files. You can see that you never invoke g++
with .cpp
file arguments. What I think is happening, is make
, not seeing a rule, just makes empty object files.
QUESTION
We are sending the notification to all users using a web job. but the problem is not everyone is receiving the notification at the same time. Suppose if we have to send a notification to 3000 users then the time gap between first and last user will be more than an hour.
Is there a better solution where I can send a notification to everyone at the same time just like how "QBot" is doing in Teams.
Thanks.
...ANSWER
Answered 2020-Apr-06 at 11:22If you have to send notifications one by one, then it is not possible to send them to all users at the same time. However, you can reduce the gap, but this may or may not be an easy task depending on the number of users you have.
ThrottlingOf course, you need to take throttling into consideration. Like @Nikitha-MSFT said in the comments, you will start getting HTTP 429 errors as soon as the rate limiting is hit. And you need to properly handle them and retry failed notifications.
Correct level of parallelismYou need a scalable webjob. That is, your webjob could be triggered and process multiple batches simultaneously. For example, change your webjob to message queue triggered (if it is not), so that it could process multiple queue messages each containing one or multiple notifications at the same time.
For example, you could have two webjobs:
WebJob A - triggered by timer / HTTP request, find all users need to notify and create queue message for each user found
WebJob B - triggered by queue, process message and send notification
Each job host could process 32 queue messages as the maximum asynchronously. So in theory, you could send 32 batches of notifications at the same time per job host.
Assuming you still not hit the throttling limit by far, you could then start considering increasing resources:
Scale out
You have one webjob host per app service. You could scale out your app service to have multiple instances to gain more job host instances. The more instances you have, the quicker you could clear the messages in the queue, therefore the quicker you could send notifications out.
Scale up
It is also possible, that you might hit bottleneck of your app service plan like this post did. At which point, you need to consider upgrade your plan to another tier to get more power, e.g. CPU.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Qbot
You can use Qbot like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page