ShortRuby / submit

7 stars 0 forks source link

[Link]: A MySQL read/write proxy for ActiveRecord #77

Closed lloydwatkin closed 1 month ago

lloydwatkin commented 7 months ago

Link to the content

https://tech.olioex.com/ruby/2024/04/16/introducing-janus.html

Anything else

Janus is a read/write split proxy for MySQL/ActiveRecord 7.1+. It works by sending any read queries to a replica, and any write queries to the primary database server. If there’s been a write statement within the same thread we stick any future queries to the primary server unless the developer specifically chooses not to.