Skip to content

Make Action Cable subscriptions use DB replicas

Heinrich Lee Yu requested to merge 399389-actioncable-use-replicas into master

What does this MR do and why?

Action Cable subscriptions executes some DB queries to do authorization checks. We allow these to use the replicas while keeping the subscription triggers on the primary. These triggers need up-to-date data because they are fired in response to an update.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #399389 (closed)

Edited by Heinrich Lee Yu

Merge request reports

Loading