Valkey (Redis) for Sidekiq and your Rails app
Valkey is the open-source Redis: a home for your Sidekiq jobs and Rails cache, backed up to any second so a lost server doesn't lose your jobs.
Ask your agent
Create a Valkey server on Rowsafe Cloud for this Rails app's Sidekiq jobs and cache.Your agent picks a size, tells you the price and waits for your yes, then creates the server as you. Once it's ready (5 to 10 minutes), click Create a login for your app on its page in the dashboard: you see the connection details once, for your .env.
First time? Connect Rowsafe to your agent once.
Or from the terminal
rowsafe cloud create jobs --engine valkey --wait
rowsafe db user add web --on jobsrowsafe cloud create shows the price and asks first. rowsafe db user add makes a login for your app and prints its rediss:// connection string once: put it in .env as REDIS_URL. (rowsafe env is for PostgreSQL only, for now.)
Connect your app
# REDIS_URL starts with rediss://: encrypted, and the server's certificate is checked.
Sidekiq.configure_server { |config| config.redis = { url: ENV.fetch("REDIS_URL") } }
Sidekiq.configure_client { |config| config.redis = { url: ENV.fetch("REDIS_URL") } }config.cache_store = :redis_cache_store, { url: ENV.fetch("REDIS_URL"), namespace: "cache" }Sidekiq 7 and newer. The namespace keeps cache keys apart from Sidekiq's. In development, the dotenv gem loads .env. Then bundle exec sidekiq.
Backups and restores
Rowsafe backs up every change, encrypted on the server with a key only you have, so you can restore to any second. Every week it restores a backup to prove it works. Restore a copy, bring back deleted keys or rewind the whole database, in one click. Before a risky change, save a Mark (rowsafe mark), or let your agent save one.
From $0.014 an hour, never more than $10 a month.
Questions
If the server fails, are my jobs gone?
No. Rowsafe backs up every change, so you can bring the whole server back as it was a second before, with the jobs that were waiting.
Why Valkey and not Redis?
Redis's license doesn't allow hosting it as a service. Valkey is the Linux Foundation's open-source fork, and Sidekiq works with it.
How does my app's server connect?
At first only your computer can. Add your server's address under Who can connect on the server's page, or run rowsafe cloud allow jobs ADDRESS.
More guides
- Add PostgreSQL to your Next.js appNext.js, node-postgres
- Managed MySQL for your Laravel appLaravel, MySQL 8.4
- Managed PostgreSQL for your Django appDjango, psycopg
- Managed PostgreSQL for your Rails appRuby on Rails, pg
- PostgreSQL for your Express app, with PrismaNode.js, Express, Prisma
- PostgreSQL for your FastAPI app, with SQLAlchemyFastAPI, SQLAlchemy, psycopg
- PostgreSQL with pgvector for your AI apppgvector, any framework
- A Valkey (Redis) cache for your Next.js appNext.js, node-redis
- Meilisearch for your Laravel app, with ScoutLaravel Scout, Meilisearch
- Managed MariaDB for your WordPress siteWordPress, MariaDB 11.8
- Managed PostgreSQL for your Spring Boot appSpring Boot, JDBC, HikariCP
- Managed PostgreSQL for your Go appGo, pgx
- PostgreSQL for your app, with DrizzleDrizzle ORM, node-postgres
- Valkey (Redis) for your Laravel appLaravel, phpredis or Predis
- Qdrant for your AI app in PythonPython, qdrant-client