Apache vs NGINX

  Рет қаралды 239,681

IBM Technology

IBM Technology

Жыл бұрын

Web server vs. application server: ibm.biz/Apache_Vs_NGINX
NGINX Reverse Proxy: ibm.biz/NGINX_proxy
If you're into web development, you have undoubtedly heard of Apache and Nginx. They're both open source web servers, but they have different strengths, and both are worth considering as part of your web architecture choices. Is speed at all costs your thing? Or extensibility? In this video, Martin Keen explains how these web servers work and then breaks down the tradeoffs of each solution (spoiler: it's not an either/or answer).
Get started for free on IBM Cloud → ibm.biz/sign-up-today
Subscribe to see more videos like this in the future → ibm.biz/subscribe-now
#AI #Software #Dev #lightboard #IBM #MartinKeen #Apache #NGINX

Пікірлер: 140
@kavyeshs41
@kavyeshs41 Жыл бұрын
we can install Apache's modules separately. but nginx needs a re-compilation of binary if want to enable a new module. and another main difference is Nginx is event driven while apache is process driven. which means nginx can handle much more request on single thread but apache create new thread for every request. which makes nginx fast/more performant
@braunbaerhh
@braunbaerhh Жыл бұрын
Apache has an event MPM for years.
@francisantony12
@francisantony12 Жыл бұрын
@@braunbaerhh I think MPM is not the same as being Event Driven - In and ED model ( "reactive" ), there is no thread at all unless some activity is in progress. Ex:- A thread needs to make a backend call. Immediately after making the backend call ( using poll() system call ), the thread will switch to doing other unrelated tasks *instead of* being blocked. Whereas in MPM, thread will become free - but task is handed over to other threads.... This is my understanding. Somebody please comment/correct if Im wrong
@KirillKovalevskiy
@KirillKovalevskiy 10 ай бұрын
Thanks for this valuable clarification!
@Rusputin-eo6tv
@Rusputin-eo6tv 8 ай бұрын
thanks you, that's sound crucial for interview
@im-a-trailblazer
@im-a-trailblazer Жыл бұрын
This man has talent, and he is able to explain it in a very enjoyable way, and he can write backwards very fast. I need to up my game man...
@commandstring
@commandstring Жыл бұрын
Yes this threw me off cause I realized he was writing backwards
@ordinary_flo
@ordinary_flo Жыл бұрын
Hahaha, I bet he isn't a leftie writing backwards. They just flipped the image in post. That's why there is no text or IBM logo on his clothes, because that would be backwards then. 😉
@samjones4327
@samjones4327 Жыл бұрын
Thank you very much for this lesson! You’ve unlocked a bit of a mystery for me as I’m beginning my cloud journey! 🥳
@khasanbekdev
@khasanbekdev Жыл бұрын
Great, I always enjoyed videos of IBM Tech, can you make a video explanation for ASGI and WSGI servers.
@andygordon6880
@andygordon6880 6 ай бұрын
Fanatistic quick explanation of different considerations when looking at web server performance. Great start to answering the question. Thank you
@kamarton
@kamarton Жыл бұрын
I've been using both for many years, and I like the modules and configuration of nginx much better.
@dieguitoboy
@dieguitoboy Жыл бұрын
Didn't really explain the differences between the two or gave any examples for which is better on certain aspects. The title of the video wasn't delivered
@shravanuchil
@shravanuchil Жыл бұрын
Yes there so many more things could have covered up in this
@AlMaVizca
@AlMaVizca Жыл бұрын
Look at the c10k problem, analysis remains the same as far as I know
@zacktaylor1143
@zacktaylor1143 4 ай бұрын
Lmao, wtf, did you only watch the first 5 minutes? He breaks it down at the end.
@unspoken2409
@unspoken2409 Жыл бұрын
I have been looking for a video like this for a long time! Outstanding work!
@mohammadalaaelghamry8010
@mohammadalaaelghamry8010 10 ай бұрын
Great resource of knowledge, high quality, very concise and to the point. I so much appreciate it. Thanks.
@snowywinter9
@snowywinter9 11 ай бұрын
Such a pleasant and knowledgeable presenter. Fantastic delivery.
@evgenii.panaite
@evgenii.panaite 2 ай бұрын
Amazing, always love your way to uncover technological nuances ❤
@gosnooky
@gosnooky Жыл бұрын
It should also be noted that Apache uses a multi-threaded architecture with each request running in its own thread, while NGINX uses a single-threaded architecture with an event loop. Because of this, NGINX can handle many more simultaneous requests and is what gives it its speed advantage. In programmer terms, Apache acts like Java, NGINX acts like NodeJS.
@braunbaerhh
@braunbaerhh Жыл бұрын
Apache has an event MPM for years.
@stackerliew
@stackerliew Жыл бұрын
Apache is far more stable than nginx.
@danilodistefanis5990
@danilodistefanis5990 11 ай бұрын
@@braunbaerhhstill is not truly event driven.
@marcoswelker132
@marcoswelker132 Жыл бұрын
Love the drawings. Helps a lot
@appaloosa_
@appaloosa_ 6 ай бұрын
Thank you, british man & ibm. Perfect explanation 🙏
@taskforce_kerim
@taskforce_kerim Жыл бұрын
These IBM videos are hella good!
@chalingui
@chalingui Жыл бұрын
OMG Martin is the man. One day making exBEERiments and the other day teaching about web servers
@starterdev
@starterdev Жыл бұрын
This is the reason why I love ibm ♥️
@chadzulu4328
@chadzulu4328 Жыл бұрын
This explanation helped me a whole lot! Thanks so much.
@severtone263
@severtone263 2 ай бұрын
Excellent explanation. Thank you
@user-nu4so7zg8r
@user-nu4so7zg8r 9 ай бұрын
Regarding the load balancing features, how does how would we sockets be handled as apposed to regular http requests which are simply routed the web servers need to hold open connections
@brownianmotion6319
@brownianmotion6319 Жыл бұрын
Love the presentation. Is that perspex or glass? What pens is he using anyone?
@pankaj16octdogra
@pankaj16octdogra Жыл бұрын
Nice presentation, pls make video of cloud native app architecture with financial services application
@BobDschingisKhan
@BobDschingisKhan Жыл бұрын
Did you really write from right to the left on that screen that we can read it or what is the magic behind this cool presentation technique? Thanks for the Video and BR
@valen8560
@valen8560 Жыл бұрын
omg
@mohammadhussain9068
@mohammadhussain9068 Жыл бұрын
Great explanation
@arieheinrich3457
@arieheinrich3457 Жыл бұрын
Martin is a rockstar !
@chwaee
@chwaee Жыл бұрын
TLDR/TLDW: Apache is older but more mature (extensions) while nginx is newer and faster. Both can be used rather interchangeably though.
@Unknown-ki8yk
@Unknown-ki8yk 2 ай бұрын
My favorite instructor
@ChanceMinus
@ChanceMinus Жыл бұрын
Extremely helpful... Thank you.
@itdataandprocessanalysis3202
@itdataandprocessanalysis3202 Жыл бұрын
**yelling gratitude**
@Hiram8866
@Hiram8866 Жыл бұрын
A very interesting video. Cheers
@rossbrook9182
@rossbrook9182 Жыл бұрын
this guy is great, very good video
@tunisoft7465
@tunisoft7465 Жыл бұрын
wow that glass is so clean
@Adil-dp4ll
@Adil-dp4ll Жыл бұрын
I always wondered how do they make such videos as facing the camera and writing on some board right front of us. Then i noticed an odd thing. All these people in such videos were lefty. It means they were writing on a transparent board facing them and once after they were done, the video was mirrored using video editor software.
@md9936
@md9936 Жыл бұрын
Good video, I'd like to learn about WAS or Webspherem, pls!
@MrRades123
@MrRades123 Жыл бұрын
Does anyone know what these boards are called he is writing on and how this is recorded so the camera can not be seen?
@dmytroparfeniuk2670
@dmytroparfeniuk2670 Жыл бұрын
Thanks for the video! Just out of curious, why did you put the EXTENSIBLE parameter only to the Apache http server instead of both? Isn't NginX provide it?
@docteurklein
@docteurklein Жыл бұрын
yes nginx totally is extensible as well. one could even argue it is more extensible, given the ecosystem of nginx modules out there. But the IBM host has a bad habit of just cherry-picking some random attributes of the products under comparison and put it either left or right, wich I would define as a *bad* "versus" video. It's the second video I watch from this guy, and the second time I'm disappointed. Happy to see the encouraging comments above, which proves it seems helpful for beginners tho.
@purposepowerlove
@purposepowerlove Жыл бұрын
And then there is haproxy, which blows them away in terms of speed and resource usage. Plus it has many more modern features included by default.
@hamu_sando
@hamu_sando Жыл бұрын
HAproxy is the default router (ALB) for the OpenShift platform.
@amirmirou
@amirmirou Жыл бұрын
My question is: how did you do this "writing on glass effect" it blows my mind you are facing the camera, are you writing backword or what?
@gregliming6875
@gregliming6875 Жыл бұрын
Hey look, It's the Homebrew Challenge guy.
@GravitoRaize
@GravitoRaize Жыл бұрын
nginx Plus also does TCP and even UDP load balancing out of the box. I guess I've only ever used nginx Plus cause it does basically anything I want to do and has all the health checking and other stuff built in. If the backend runs Apache or Tomcat, then that's fine, but for load balancing I'm not sure why you'd use Apache unless you wanted complex solution to what should be a simple problem. Sure, nginx Plus costs money, but if you want a load balancing solution that doesn't, learn HAProxy, don't spend time learning Apache unless you have to.
@thatomotaung6891
@thatomotaung6891 Жыл бұрын
I need this board expeditiously
@Abhi-qi6wm
@Abhi-qi6wm Жыл бұрын
Any views on Apache APISIX vs Nginx?
@davejones542
@davejones542 Жыл бұрын
great video. btw @1:29 I always thought "a couple" meant two did I miss the memo
@MartinKeen
@MartinKeen Жыл бұрын
LOL
@entalpa
@entalpa Жыл бұрын
You didn't mention that Nginx can do Rate Limiting, WAF and more...Nginx can be a lot of faster by tweaking the settings for your use case.
@muhdbunahmad
@muhdbunahmad Жыл бұрын
You cannot explain or mention everything in a seven minute video.
@andarin2
@andarin2 Жыл бұрын
@@muhdbunahmad Our fella here did it in less than a line
@alehkhantsevich113
@alehkhantsevich113 Жыл бұрын
@@muhdbunahmad Video lasts 7 min, but actually there is 4 words..... First/Extensible and Fast/Simple. I believe 7min video can serve much more info about Apache vs Nginx like title says.
@andrewlalis
@andrewlalis Жыл бұрын
@@andarin2 they just named things, and didn't explain anything
@SubparProgrammer
@SubparProgrammer 10 ай бұрын
@@alehkhantsevich113 This is like Tik Tok’s fast paced info vs KZbin’s in-depth content
@NachtmahrNebenan
@NachtmahrNebenan Жыл бұрын
The drawing of the browser window looks the same as my Mesa Boogie guitar amp 😅
@StompboxBreakdown
@StompboxBreakdown Жыл бұрын
For when you're a Full Stack engineer
@moatazfarid2920
@moatazfarid2920 Жыл бұрын
Very Nice presentation, keep it up
@AniketSomwanshi-ll7mz
@AniketSomwanshi-ll7mz 5 ай бұрын
So confused. So neither of these servers are for dynamic pages? Tomcat server is used for Java applications but what about non-java applications? Which server is used?
@JonnyMainframe
@JonnyMainframe Жыл бұрын
How about the difference (if any) between Apache and IBM HTTP Server?
@opensourcefreedom9241
@opensourcefreedom9241 Жыл бұрын
having an arrow with Apache is kind of spot on with the Native American community :P I am Cherokee so I get it and think it is funny.
@enjoyajeet
@enjoyajeet Жыл бұрын
What are the servers used behind the load balancer?
@SteveGillham
@SteveGillham Жыл бұрын
Web Servers
@g30rgyth3d4rk
@g30rgyth3d4rk Жыл бұрын
Probably microservices under k8 instances, docker instances etc
@nealpan
@nealpan Жыл бұрын
Azure Application Gateway is great option!
@MaxZRider
@MaxZRider 8 ай бұрын
whole video summarized: apache = older, enterprise extensible || nginx = newer, fast simple
@dariokartal9453
@dariokartal9453 Жыл бұрын
Wait. So, the connection from my computer to the actual server is covered by the TLS certificate NOT NECESSARILY all the way? And that shouldn't raise anybody's alarm?
@davak72
@davak72 2 ай бұрын
Yes and no. It depends. Without a proxy, the final server decrypts your traffic anyway, so if the proxy and the final server are on the same private network, and it’s secure, that should be fine. In the other hand, if you use Cloudflare tunnels, they get to decrypt the traffic, look at it, then re-encrypt and send it to the actual server
@coll1208
@coll1208 Жыл бұрын
Why is my YT beer-brewer talking about servers?!
@pieter5466
@pieter5466 Жыл бұрын
4:48 The difference between Apache and Nginx
@suryapratap3043
@suryapratap3043 Жыл бұрын
I don't know what goes on under the hood of apache or nginx, but having used apache for year and nginx now I can say nginx is a lot simpler and hell lot faster. If you're developing new solution in 2023, go with nginx without second thought. Apache will be legacy soon.
@richardguernsey908
@richardguernsey908 11 ай бұрын
Beer brewing and Software Architecture? Noice!
@LewisCowles
@LewisCowles 10 ай бұрын
Layer 7 not 7 layer. Other than that, good video. Didn't know IBM made these. Optional SSL... 🤐 (in the cluster only right?)
@12345abcd_qwerty
@12345abcd_qwerty Жыл бұрын
thanks
@basix250
@basix250 Жыл бұрын
Start from 4:50.
@joemarji7245
@joemarji7245 Жыл бұрын
Timestamps for the mash out plz
@wadecodez
@wadecodez Жыл бұрын
can't wrap my head around how they filmed this. did the guy write backwards or was it filmed in a mirror I have to know
@micoberss5579
@micoberss5579 Жыл бұрын
Mirrored the recorded video. I couldn't figure it out, I was thinking that's some kind of IBM technology. But somebody in comments said that they must have mirrored the video
@gorlanich
@gorlanich Жыл бұрын
I thought you are going to brew with ibm.
@lucasgandara4175
@lucasgandara4175 11 ай бұрын
Does anyone knows how to make a video like this? with this "invisible blackboard" ?
@IBMTechnology
@IBMTechnology 11 ай бұрын
Search on "lightboard videos"
@lucasgandara4175
@lucasgandara4175 11 ай бұрын
@@IBMTechnology Thanks!
@IBMTechnology
@IBMTechnology 11 ай бұрын
See ibm.biz/write-backwards for a video explaining it
@vbounyar
@vbounyar Жыл бұрын
Good info but also I am awe the presenter writing backwards!
@HahaHihi11111
@HahaHihi11111 4 ай бұрын
Why present old technologies? LiteSpeed is where?
@shanejohnson4546
@shanejohnson4546 Жыл бұрын
You ended there?.... I'm lost for words
@javjaveds7547
@javjaveds7547 Жыл бұрын
Layer 7 not 7 layer!
@sabart5
@sabart5 Жыл бұрын
So the only difference is that Nginx is faster? I was expecting a more elaborated explanation.
@braunbaerhh
@braunbaerhh Жыл бұрын
it is not faster. You can configure a Apache so it is as fast as Nginx.
@kompila
@kompila 4 ай бұрын
@@braunbaerhh Looks like it all about configurations 😃
@tyrojames9937
@tyrojames9937 Жыл бұрын
CHECK❗
@kebman
@kebman Жыл бұрын
Not a contest. NGINX all the way. Unless you _have_ to run some cruddy PHP or Java thingy.
@larrywest42
@larrywest42 Жыл бұрын
I do wish people would stop saying "SSL" when they mean "TLS". Virtually no one uses SSL any longer. Browsers disabled or removed it years ago, and I'd be very surprised if any of IBM's web sites still support it.
@jackwt7340
@jackwt7340 Жыл бұрын
International Business Machines Corporation🎰
@fkangalov
@fkangalov 11 ай бұрын
is he writing on that thing backwards ?
@IBMTechnology
@IBMTechnology 11 ай бұрын
See ibm.biz/write-backwards
@fkangalov
@fkangalov 11 ай бұрын
@@IBMTechnology makes more sense :). Love the videos though.
@EngineerNick
@EngineerNick Жыл бұрын
I have worked with both and they both suck. Very good at the basics, but so hard to make them do anything complicated. It takes like 2 lines of rust code to enable cors... But try add cors at the reverse proxy level instead and get ready for hours of agony reading poor documentation.
@sunduchkov
@sunduchkov Жыл бұрын
So, what, where is a comparison?
@2371996npistiolas
@2371996npistiolas Жыл бұрын
You are either a lefty able to write backwards or you reversed the video image
@andyhall7032
@andyhall7032 Жыл бұрын
wait...people still use apache ??
@tss4629
@tss4629 Жыл бұрын
There are few more webservers out there - WAS (Websphere Application server), Tomcat, Apache, Nginx,and I think JBoss also. Choose what you like. 😂
@zgeorgem
@zgeorgem Ай бұрын
layer 7. not 7 layer.
@willemvdk4886
@willemvdk4886 Жыл бұрын
Aren't we brewing today?
@funkiam9214
@funkiam9214 6 ай бұрын
i think for now days nginx +1
@homerjones3490
@homerjones3490 Жыл бұрын
OPENLITESPEED
@EnglishTeacherJon
@EnglishTeacherJon Ай бұрын
As of March 2024 OpenLitespeed are charging $4.00 a month on GCP (it used to be free...)
@joachimdietl6737
@joachimdietl6737 Жыл бұрын
the speed of information flow is negative in these series
@IvaneMkadegebeli
@IvaneMkadegebeli 5 ай бұрын
How does the guy write in reverse…
@IBMTechnology
@IBMTechnology 5 ай бұрын
See ibm.biz/write-backwards
@IvaneMkadegebeli
@IvaneMkadegebeli 5 ай бұрын
@@IBMTechnology :DD thx
@bitground1776
@bitground1776 Жыл бұрын
The presentation doesn't bring more on the difference between the two, you should change the title.
@DynastyInferno
@DynastyInferno 3 ай бұрын
A painful video
@mikemx55
@mikemx55 Жыл бұрын
wow, you explained nothing about their differences and just went on rambling about what an http server is and reverse proxys and load balancers... none of which are the primary purpose of apache or nginx
@jasonhowardak
@jasonhowardak Жыл бұрын
Caddy is much easier
@DavidWhiteOfFleet
@DavidWhiteOfFleet Жыл бұрын
Sounds English but says "rowt" for "route" 🙄
@andarin2
@andarin2 Жыл бұрын
Where's the beef?
@simplylizz1
@simplylizz1 Жыл бұрын
Omg, Apache. Is this 2013? 🤔
@laszloszoke18
@laszloszoke18 Жыл бұрын
The interest of IBM is to promote Apache.
@imrestumpf9744
@imrestumpf9744 Жыл бұрын
omfg, so strange to see you speaking about tech outside of homebrew world. jeez.
@thomulcahy
@thomulcahy Жыл бұрын
NGINX isn't totally free, some features require paid version
@ethernet764
@ethernet764 Жыл бұрын
Layer 4? Layer 7? The OSI model is obsolete. > I have said before that I believe that teaching modern students the OSI model as an approach to networking is a fundamental mistake that makes the concepts less clear rather than more. The major reason for this is simple: the OSI model was prescriptive of a specific network stack designed alongside it, and that network stack is not the one we use today. In fact, the TCP/IP stack we use today was intentionally designed differently from the OSI model for practical reasons. - j. b. crawford
@AssassinoYunus
@AssassinoYunus Жыл бұрын
Ah not very technically illustrated. 😥
@cali4484
@cali4484 Жыл бұрын
7:11 apache and nginx can be friends. such a waste of time. 😒
@youdj_app
@youdj_app Жыл бұрын
Apache is a joke
@laszloszoke18
@laszloszoke18 Жыл бұрын
The Apache is a joke. Of course, in 2023.
@hosseinse4079
@hosseinse4079 23 күн бұрын
useless
@hansmuller1846
@hansmuller1846 Жыл бұрын
What an unnecessary video imo :D I knew what a web server is, and the differences between apache and nginx are barely explained :/
Virtual Machine (VM) vs Docker
8:52
IBM Technology
Рет қаралды 167 М.
GraphQL vs REST: Which is Better for APIs?
7:31
IBM Technology
Рет қаралды 173 М.
Блоховирус !🦠 #симба #тигра #булли
00:57
Симбочка Пимпочка
Рет қаралды 9 МЛН
A Competition for Unreadable Code?
12:33
LaurieWired
Рет қаралды 8 М.
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
Wolfgang's Channel
Рет қаралды 631 М.
APACHE VS NGINX. Что выбрать? Сравнение двух популярных HTTP серверов.
17:49
Master Data Management (MDM) - Chalk and Talk
19:01
Dave Does Demos
Рет қаралды 18 М.
3. Apache Kafka Fundamentals | Apache Kafka Fundamentals
24:14
Confluent
Рет қаралды 428 М.
Accelerate Ansible Playbook Creation with IBM watsonx Code Assistant
3:47
Proxy vs Reverse Proxy Explained
8:05
PowerCert Animated Videos
Рет қаралды 324 М.
Web Server Concepts and Examples
19:40
WebConcepts
Рет қаралды 218 М.
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
Containers vs VMs: What's the difference?
8:08
IBM Technology
Рет қаралды 729 М.