Redis and Sidekiq on Digital Ocean App Platform



Redis and Sidekiq on Digital Ocean App Platform

Redis and Sidekiq on Digital Ocean App Platform

This video is a quick tutorial on getting a Redis database and an Active Job Sidekiq worker up and running on your Ruby on Rails app on the new Digital Ocean App Platform.

There is no Redis Dev Database option, so I’ll show you how to get a Redis database managed by Digital Ocean and connected to your app. Then I’ll show you how to add a Sidekiq worker and how to hook up your Web Service and Worker to the Redis database via ENV vars.

Check out my other video to see a full end2end setup of a Ruby on Rails app on the Digital Ocean App Platform: https://www.youtube.com/watch?v=l-UjqrVWOwo

Timestamps:
0:00 – Intro
0:43 – Is there a Redis Dev Database out of the box?
1:08 – Creating a Redis database for your App
2:15 – Linking your Redis database as component to your App
2:50 – Creating the Sidekiq Worker component
3:55 – Hooking up the magic REDIS_URL ENV vars
6:40 – Testing by enqueuing a Sidekiq job
7:45 – Recap
8:13 – Outro

Comments are closed.