Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johnsnow's avatar

Laravel with Redis in High Availability

Hello,

I'm using AWS Elasti Cache where I can have the following options:

  • redis cluster mode on (multiple shards with nodes with multi_az_enabled)

    • It seems that I cannot use laravel horizon as taylor mentioned here: github.com/laravel/horizon/issues/274#issuecomment-457218217
    • I'm also not sure if is only horizon or the entire redis jobs (maybe someone can confirm if the jobs will work ok or not)
    • I need to do a hack in order to support my single docker redis instance on my docker stack in order to not do a complete redis cluster on local development
  • redis cluster mode off (multiple read nodes and one writer multi_az_enabled)

    • In this case if I have one writer and one read replica (in other AZ), the read replica stays unused as id didn't see any options of setting it to use writer or reader depending on the operation (there is an old discussion on reddit with a hack, but is not a good option )

Considering the fact that the application needs HA, how did you setup your projects in order to support it ?

0 likes
0 replies

Please or to participate in this conversation.