Here's why you need Nginx as a Reverse Proxy for your Node.js app

  Рет қаралды 13,311

Software Developer Diaries

Software Developer Diaries

4 ай бұрын

Using Nginx with Node.js as a Reverse Proxy brings a lot of benefits such as Load Balancing, SSL encryption, buffering, caching and much more. Let's learn why everyone uses it and why you should too.
======⚡⚡⚡======
Consider becoming a member of the channel by joining me ❤️
/ @softwaredeveloperdiaries
👉 Try Eraser: www.eraser.io
======⚡⚡⚡======
🙌 Become my Patreon and get exclusive perks: / softdevdiaries
💼 Follow me on LinkedIn and drop me a message if you'd like: / gusgadirov
💻 Also, let's connect on GitHub: github.com/gusgad
📚 Resources:
My video on Load Balancers: • The Ultimate Guide to ...
My video on Caching: • Deep Dive into HTTP Ca...
Advanced Node.js playlist: • Advanced Node.js
My System Design and Architecture playlist: • System Design and Arch...
Code: github.com/gusgad/youtube-tut...
Nginx docs: nginx.org/en/docs/
Slowloris attack: www.cloudflare.com/learning/d...
And don't forget to subscribe for more videos like this 😊

Пікірлер: 20
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 ай бұрын
Are you using a reverse proxy too? 🤔
@darrenpierre9903
@darrenpierre9903 4 ай бұрын
Loving this video series , learning a ton from it . I'm a recent computer science graduate and I want to get more into system design . Your videos have been helping me so much
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 ай бұрын
Great to hear mate, best of luck!
@chrisalexthomas
@chrisalexthomas 4 ай бұрын
FYI: the action of serving https to nginx, but then http upstream, is called "SSL(or TLS) Termination", it's very common for edge or gateway like setups, also SSL communications is cpu intensive to encrypt all the traffic, so you just don't want that internally since it's a waste of resources
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 ай бұрын
Thanks for the hint mate! Very useful ❤️
@guseynismayylov1945
@guseynismayylov1945 4 ай бұрын
If you use Cluster API on a machine with 8 or 16 cores (which is more than enough for average project), you would have just one https server with built in load balancer.
@guseynismayylov1945
@guseynismayylov1945 4 ай бұрын
If you ever tried to build your app with Node.js Cluster API and did in a proper way, there is no way back to reverse proxy. It's amazing how many people who use RP are not even aware of Cluster API, I am glad that the author of this video at least knows about it. Cluster API can handle enterprise solutions, even some benchmarks show that Node.js is better than NGNIX. I just don't understand this attitude, if you can build something without external dependency or a service, why at least not try it? This is why we have microservices, because people don't understand the cost of bringing external dependencies into the system.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 ай бұрын
Thanks for your comment! I haven't used the Cluster mode in production yet, so wasn't able to give a direct comparison in the video 🙂
@adwaitbokade2890
@adwaitbokade2890 4 ай бұрын
Good One, I liked you videos, I would love if you make custom video on nginx load Balancing using Nodejs, just like how enterprise loading balancing is done !!
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 ай бұрын
I'll consider it, thanks for the idea! :)
@DigitalAlchemyst
@DigitalAlchemyst 3 ай бұрын
Slowloris still to this day is one of the nastiest exploits in ddos. With proper configuration the right hacker can take down rather beefy servers with just one machine, no bot net, no hacker army DDOSing, just one machine with 1-4 slowloris scripts and its lights out and bills up
@brickstv3156
@brickstv3156 4 ай бұрын
does render do this for you ?
@shamstabrez2986
@shamstabrez2986 3 ай бұрын
DO A IN DETAIL SESSION ON PM2 DONT CREATE SHORT SESSION PLZ HOWPM2 WORKS IN WHAT SCENARIO IT CAN HELP AND WHICHALL LANGUAGE I CAN USE PM2
@edhahaz
@edhahaz Ай бұрын
it's because node doesn't have all the features, got it... but now we got nextjs
@shaiknadeen
@shaiknadeen 4 ай бұрын
nice mustache
@AliSajidCS
@AliSajidCS 4 ай бұрын
get rid of the mustache
@andrewandrosow4797
@andrewandrosow4797 3 ай бұрын
An embedded proxy server for Nginx - is in Moscow, in the FSB. Because it is a russian software
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 3 ай бұрын
Hasbulla confirms
@-boiadeiro-
@-boiadeiro- 2 ай бұрын
Да, это так. Мы следим за вами. Хорошего дня.
@andrewandrosow4797
@andrewandrosow4797 2 ай бұрын
@@-boiadeiro- напиши отчет начальнику отдела - "напугал украинца до смерти".😂
Node.js Security Best Practices: JWT blacklisting, rate limiting, schema validation
12:02
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Рет қаралды 13 МЛН
Proxy vs Reverse Proxy (Real-world Examples)
5:17
ByteByteGo
Рет қаралды 487 М.
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 40 М.
Reverse proxy nginx letsencrypt tutorial
17:12
Christian Lempa
Рет қаралды 110 М.
How to use "Streams" to improve performance in Node.js?
12:22
Software Developer Diaries
Рет қаралды 16 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 619 М.
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,2 МЛН
Секретная функция ютуба 😱🐍 #shorts
0:14
Владислав Шудейко
Рет қаралды 2,1 МЛН
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Рет қаралды 993 М.
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 12 МЛН
Компьютер подписчику
0:40
Miracle
Рет қаралды 201 М.
phone charge game #viral #tranding #new #reels
0:18
YODHA GAMING RAAS
Рет қаралды 8 МЛН