Load Balancing Tutorial with Python and Nginx

preview_player
Показать описание


In this video we will discuss how to implement load balancing. So lets start with defining load balancing with some graphics, then we will spin up few python services with different ports. We will finally install and configure a load balancer (nginx).

load balancer, python load balancer, nginx, load balancer configuration, how to configure nginx, how to configure load balancer,

Stay Awesome!
Hussein
Рекомендации по теме
Комментарии
Автор

Damn...I have spend endless number of hours in stackoverflow and still didn't get the concept. But you my friend explained and show this beautifully. This is gold, kudos to you brother.

kaustavsengupta
Автор

I didn't realize I could binge watch tutorials but you my friend are awesome!

lawrencechege
Автор

Thank you! This was the best explanation I have ever seen on the topic

BioHazarddasdadfasfsad
Автор

Jump to 4:20 to start the tutorial, jump to 9:40 for the nginx config.

hnasr
Автор

That was simpler I thought! Great explanation!

michawojcik
Автор

super explanation.. short, quick and too the point.. cleared all my concepts..

amoghgupta
Автор

Bro I just learned this in 12 mins; Thanks for the video. will come back to it as a reference.

jbiz
Автор

Detailed video, You seem a very passionate person

kritagyagupta
Автор

damn! so cool bro. thanks. the best explanation.

hnxoisi
Автор

thanks for the video
Simple and awesome <3

xx
Автор

Hi Hussein!!, Thank you for this explanation.
Question:
If i want horizontally scaling my restApi, can I use the same technique (Nginx Configuration)?

Thank you again for the great explanation!!!!

samirzerrouki
Автор

Hi Hussein, Thanks for this Video. Please can you include a video which comprises Flask-Gunicorn and Nbinx?

tupaiadhikari
Автор

Thank you for share, very useful and accurate :D

christopherigm
Автор

bro your explanation skills are amazing.

prathameshwaghmare
Автор

Great thanks! At 5:40 you have a line print(f"Application is ready and listening on port {po
i can't see the rest of the line... could you put it here, or is the source on git somewhere? Thx

fred.c.johnston
Автор

What's in your opinion the best way to add another server not in the original .conf file (e.g. localhost:4444) without having downtime? It's enough to run an nginx reload (in this case is there a downtime if someone run a request?) or are there other advanced methods to do this thing? Thank you!

edit: I read now that running nginx -s reload do the trick. So if a process changes dinamically the conf file I think everything works without downtime, isn't it?

HammerOnTheNet
Автор

I got this error when tried to include my conf file in nginx.conf.
nginx: [emerg] "upstream" directive is not allowed here

sunilsubramanya
Автор

Hi, thanks for a great tutorial. If I understand correctly, you are leveraging multiple worker processes, NOT multiple servers, correct? Port 1111, 2222, and 3333 are all on the same server.

howards
Автор

Cool explanation. I surprised you didn't spin up your Nginx on the docker like you usually did

luqmansen
Автор

Hey I tried I followed your steps ngnix is working but it’s not hitting my route can you help

SoumilShah