Support the ongoing development of Laravel.io →
Configuration Database Architecture

Hi guys,

I'm new to laravel. This is a great framework.

I'm ran into an issue that I don't know how to solve it.

I have in amazon RDS a mysql master database and two read replicas. I know laravel allows in the config to define a write and read database host, but how can I manage 2 read host's? It show work like a round-robin system or do a random in the a read host's array (containing ip of the read replicas).

Thanks.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

pfbernardo pfbernardo Joined 31 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.