Vapor: Separate Queue Lambdas

Jan, 14 2020#vapor

Starting today, new Vapor deployments will ensure a separate AWS Lambda function exists for running your queued jobs.

Before this change, queued jobs executed within the CLI Lambda. This Lambda is also used for running deployment commands, CLI commands, and scheduled jobs. However, there were potential problems with this approach. For example, if queued jobs were consuming all of the Lambda's capacity, no other CLI invocations would be able to process, causing deployment commands and scheduled jobs to fail.

Beginning today, we recommend that you set the queue-memory, queue-concurrency, and queue-timeout configurations for every environment. Being able to control the queue-concurrency separately from cli-concurrency ensures your queues won't consume all of the available capacity and cause other invocations to fail.

By Mohamed Said

Hello! I'm a web developer at Laravel. You can find me on Twitter and Github.

Follow the RSS Feed.