The Backend Engineering Show with Hussein Nasser
Episode 124 - NginX

Episode 124 - NginX

The Backend Engineering Show with Hussein Nasser

1:26:53

About this episode

NginX is an open source web server written in C and can also be used as a reverse proxy and a load balancer.

In this video, I want to go through the following topics in NginX

  • What is NginX? 2:25
  • Current & Desired Architecture 4:58
  • Layer 4 and Layer 7 Proxying in Nginx 8:40
  • Example 10:25
    • Install Nginx (mac) 13:30
    • Nginx as a Web Server 15:00 (webserver.conf)
      • Static context location root 20:00
      • regular expression 27:00
      • proxy pass 30:30
    • Nginx as a Layer 7 Proxy 33:30
      • Proxy to 4 backend NodeJS services (docker) 37:00
      • IP_Hash load balaning 43:00
      • Split load to multiple backends (app1/app2) 46:00
      • Block certain requests (/admin) 49:00
    • NGINX as a Layer 4 Proxy 51:30
    • Create DNS record 1:01:08
    • Enable HTTPS on Nginx (lets encrypt) 1:05:08
    • Enable TLS 1.3 on Nginx 1:14:00
    • Enable HTTP/2 on NGINX 1:17:10
  • Summary 1:20:10

Cards

3:40 proxy vs reverse proxy https://www.youtube.com/watch?v=ozhe__GdWC8&t=1s

8:50 OSI Model https://www.youtube.com/watch?v=7IS7gigunyI

10:00 L4 vs l7 load balancer https://www.youtube.com/watch?v=aKMLgFVxZYk

34:00 spin up docker app https://www.youtube.com/watch?v=vmSMrQ8Ev9w&t=14s

44:26 stateless vs stateful https://www.youtube.com/watch?v=nFPzI_Qg3FU

1:16:30 TLS video https://www.youtube.com/watch?v=AlE5X1NlHgg&t=8s

More from The Backend Engineering Show with Hussein Nasser

I discuss the state of what will be happening in the coming few years and why I encourage the 3 of you who want to be elite engineers to keep their critical thinking sharp. To pause and think before p…

9m

This is a conversation with Rashed Hasan, a PhD Candidate from the University of Nebraska. We chatted about databases, ORMs and how to use AI without losing yourself. Rashed pagehttps://www.mdrashedul…

56m

SQL was a mistake

I like SQL but the standard should have included ways to hint instead of the abstraction of "let me do it for you"

12m

In this episode I explore why you should take some time to examine the operation you are caching before doing so. And why caching is a cop-out

15m