Good morning,
In my envinroment I use some serverless to control use of my resources, like: Cloud Run, Cloud Functions and Cloud Tasks to recieve my tasks.
For example, I have one Function that your job is only create tasks in a queue in Cloud Tasks. In this case, it create almost 20 tasks in 20 diferents queues.
My problem is: in this case, my Function take almost 12 seconds to only create this tasks. It is a lot of time!
Can someone help me to understand this problem?
EDIT: I see this post: https://stackoverflow.com/questions/58647010/google-cloud-tasks-performance-of-task-creation but when I see this library, the name of the tasks is make random.
Thanks a lot!
If you use the library you mentioned in your edit, does the function create the task faster? As the post mentioned
“Because there is an extra lookup cost to identify duplicate task names, these calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended.”
Also take in account what Doug Stevenson mentioned in point 1: “The API will take as long as it needs to take. I don’t believe there is any way to speed up that module.”
Thanks for your answer @osvaldolopez ! I will keep to work with this situation in this week.
Perhaps is because I use php library… I will simulate using Node, like that post.
Another thing: I was make a lab in Qwiklabs and each invocation took less than 50 ms, and I my environment with my library this took up to 400ms.
Thanks, in soon I post my new results.