TenTen Dela Cruz
TenTen Dela Cruz

Reputation: 61

What is Laravel Vapor Default Queue Concurrency?

I want to understand the default concurrency of vapor.

I have this vapor.yml file.

id: xxx
name: xxx
environments:
    production:
        queue-timeout: 300
        timeout: 180
        cli-timeout: 300
        memory: 1024
        runtime: "php-8.3:al2"
        queues:
          - queue1-production
          - queue2-production: 10
          - queue3-production

When I read the vapor docs, it says here that by default it has 1000 concurrency. So as you can see here, I didn't put concurrency on queue1-production and queue2-production. So in my example above does this mean queue1-production and queue2-production has 1000 concurrency while queue2-production has 10 concurrency?

Upvotes: 2

Views: 86

Answers (1)

TEFO
TEFO

Reputation: 1643

Let's be clear on these:

vapor docs, it says here that by default it has 1000 concurrency.

Technically it is the default maximum, so its a bit different than default because this is the maximum for your acount on ALL of lambda functions you have. But if you need more you can contact to AWS support.

So in my example above does this mean queue1-production and queue2-production has 1000 concurrency while queue2-production has 10 concurrency?

This one is depends, if you just did this configuration and did nothing on AWS Lambda configuration, then yes you are correct.

However i need to mention that you can also set reserved concurrency for you lambda functions, for example on your queue1-production (as a lambda function) you can set 10 reserved concurrency, and then other lambda function have only 990 concurrency(not 1000).

Please read: https://blog.laravel.com/vapor-individual-queue-concurrency There are a few good links in there as well.

Upvotes: 0

Related Questions