Episode #583

Offloading work with Vapor Queues

Series: Build a Vapor Backend

24 minutes
Published on August 26, 2024

This video is only available to subscribers. Get access to this video and 584 others.

In this episode we will introduce Vapor's Queues package and use Redis as our backing storage engine. The performance characteristics of Redis make it a great choice to store work to be processed later. We'll then set up an EmailJob to send a welcome email to new users. We'll also explore how to run these in-process in development as well as separate processes for production. As a final bonus, we'll create a custom Vapor command to test this all out to see how it behaves with many jobs enqueued.

This episode uses Vapor 4.92, Vapor queues-1.1.1.