fahdgilani's avatar

Auto scaling with Laravel

I am using AWS for auto scaling of my Laravel app. I want to know how can user session be maintained across these servers ? is there anything else i need to modify/add for this scenario to work seamlessly ? Thank you for your time

0 likes
3 replies
martinbean's avatar
Level 80

@fahdgilani You’ll need to use something like Redis which is shared across all instances.

2 likes
BrianH781's avatar

Many of the drivers should work except the file or array driver. The file driver will likely work if you configure your load balancer to forward requests to the same node when coming from the same IP. This is a standard configuration option for most load balancers and should be available.

Please or to participate in this conversation.