implement alternative match-making approach with Lua scripts in Redis

This commit is contained in:
2026-10-25 15:57:24 +03:00
parent 582ecb7c74
commit acdaebd491
19 changed files with 796 additions and 139 deletions
@@ -3,6 +3,11 @@ require "active_support/core_ext/integer/time"
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Run background jobs (e.g. the matchmaking sweeper) through Solid Queue,
# supervised by the puma plugin.
config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = { database: { writing: :queue } }
# Make code changes take effect immediately without server restart.
config.enable_reloading = true
@@ -50,7 +50,8 @@ Rails.application.configure do
config.cache_store = :memory_store
# Replace the default in-process and non-durable queuing backend for Active Job.
config.active_job.queue_adapter = :async
config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = { database: { writing: :queue } }
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.