Please discuss about scaling laravel, more precisely to infrastructure. How laravel has many instances, like 2 app instances, 2 databases (main, slave), 2 queue/redis (main, slave). I'm still very new to this. Thank you
@Justinkol2 жыл бұрын
Fantastic video. Would love to hear more about scaling laravel with main/secondary or read/write db instances. In this one you mention forge load balancers have RR, Least connections, and IP Hash (sticky) choices when choosing which application server to route the request to. Could these be improved/expanded to use sticky cookie instead of just an ip_hash? Ideally, I'd like requests within a given session to route to the same app server, but not be bound to a given app server by IP address. Thanks!
@hyiping5926 Жыл бұрын
Would be nice with a video for Database server and Cache server, Worker Server and Web Sever... or even how to create your own CDN on a subdomain
@johnRivs2 жыл бұрын
Any special considerations when using load balancing + Octane?
@smartlinks64832 жыл бұрын
good video, but is there a single database or what do you do in that case, I am really curious.
@w333-c1w2 жыл бұрын
Do you know the answer now? Is the database on a different server?
@TioJobs2 жыл бұрын
I had to put this video in the "O QUE ROLOU ESSA SEMANA?" ("WHAT HAPPENED THIS WEEK?" in Portuguese) on the TIO JOBS channel. Strong hug! good content!
@abdonajjar29812 жыл бұрын
Wonderful but I do have question , How can I shear the storage file and sessions between servers while we are using the load balancing method, thank you mr Said Hope you will be always Said :)
@Elelalem2 жыл бұрын
Thanks for the explanation! I would love to see a video for redis on forge :-)
@khafi222 жыл бұрын
Thank you Said for the explanation. Will databases of both servers synchronize or there is another configuration to do?
@ruslansteiger2 жыл бұрын
I use a separate server for the db
@nikolasvetozarevic53442 жыл бұрын
@@ruslansteiger Yea but then the db server can become a bottleneck. DB server can also scale.
@alexandrupatrascu7666 Жыл бұрын
Cool video! Thanks. Quick question, what about the web servers sync? Env file, storage files, etc. How can that be achieved?
@popetgirl2 жыл бұрын
Hi its really nice video you show us how easy load balancing is really great. I have a question how you are managing databases. each application server has separate database or using single database. if they have separate database how they are syncing data between them. is session is sticky with this load balancing? how post requests are managed by these servers?
@shalinnipuna42322 жыл бұрын
Really good question. Please let me know if u found any answers
@popetgirl2 жыл бұрын
@@shalinnipuna4232 as i know load balancing is not easy, may be with laravel forge it is easy. He is using 3 app servers and 1 proxy server if you are using 3 db servers with these app servers than on DB server level you have create master slave server relation or replication. You need to configure proxy server send all post requests to One app server which handle all post requests and that server connected to your master db server insert and update data. Other slave db servers just read only (select) servers. Also you need another server or use one of app server for file storage or use file syncing between app servers. Hope there are much more better options its a really interesting topic.
@David-po3li Жыл бұрын
you need a seperate server intended for database only. then connect your apps server to that. so even you have a hundred app server. you only need to connect to that database server
@JeanOlivier-vz4kh Жыл бұрын
Great video Thanks, But what about the databases ?
@salahelabbar33712 жыл бұрын
Thanks , this is very nice, short and to the point. I will try it , My concern is will it work with Hashed IP method when traffic is coming through Clouflare?
@1234matthewjohnson2 жыл бұрын
what about sync between these servers in terms of database transactions?
@edwinencomienda2 жыл бұрын
would the application servers have sync database,queues? how it works? and if the sever 1 is down what happens to the db? not sync anymore?
@CaimAstraea Жыл бұрын
What if I need servers in different region ? 🤔 That would make more sense I guess to redirect users based on their ip to the nearest server. A CDN is only useful for static resources.
@chitrangadpatil42012 жыл бұрын
How to manage Laravel Forge Cron Jobs / Scheduler on Load Balanced Servers? How to run cron jobs on both servers but without running it multiple times ?
@timothy86952 жыл бұрын
Excellent video! This is some real high quality content!
@smartlinks64832 жыл бұрын
I use apache for most of the servers, nginx, many times I face the error, 503, what do you use and prefer?
@nlveej Жыл бұрын
what will happen if the load balancer itself goes down?
@xaniushall7152 жыл бұрын
Love this!!!
@adampatterson Жыл бұрын
It would be absolutely amazing if you could also block IP addresses at the LB
@manuelsamudio14682 жыл бұрын
Great video!
@pratik26452 жыл бұрын
Nice explain
@berthojoris11 ай бұрын
Thanks man.... :)
@blogactivities54622 жыл бұрын
At "3:57" you don't need to connect Load Balancer server to App servers from "NETWORK" section. you are wrong at this point.
@toluademiluyi36462 жыл бұрын
Nice content
@MarkConstable2 жыл бұрын
How to do something similar without using the commercial Forge product?