Reverse Proxy vs API Gateway vs Load Balancer

  Рет қаралды 139,185

ByteByteGo

ByteByteGo

Күн бұрын

Пікірлер: 74
@MrAnshulji
@MrAnshulji 8 ай бұрын
My understanding is that a reverse proxy is a generic service sitting between clients and servers, effectively hiding the server's address. On top of it, if this service can also balance load across different servers, then it becomes a load balancer. On top of this, adding features like auth, monitoring and API management, you get an API gateway. So essentially an API gateway can also act as a load balancer and reverse proxy. For example, Kong, an API gateway, is built on top of nginx, a reverse proxy.
@iCrimzon
@iCrimzon 8 ай бұрын
So an API gateway without API management and auth is just a load balancer and a load balancer without needing to balance loads to multiple servers is just a proxy server which hides the servers address? How fun
@MrAnshulji
@MrAnshulji 8 ай бұрын
@@iCrimzon sarcasm? You can ask these questions to chatgpt btw and it will give you detailed answers.
@iCrimzon
@iCrimzon 8 ай бұрын
@@MrAnshulji are you trolling? i could ask but you already explained it and im just making sense of it, why would i ask GPT, if you could ask GPT then why are you watching the video
@punpompur
@punpompur 8 ай бұрын
That's probably the simplest explanation I have seen so far.
@24381498
@24381498 8 ай бұрын
You have explained better than the video itself. thanks.
@shauvikr
@shauvikr 8 ай бұрын
The most interesting thing in this video is the responsibilities, which was quickly mentioned but I think it deserves to be in the schematic. While all the items send requests to a particular backend server, they are responsible for the following: - Reverse proxy - security (hide identity of backend service/endpoint), load distribution, SSL termination, compression & caching. - API gateway - single point of entry for a collection of micro-services (different APIs/RPCs), routing requests, Authn/Authz, Monitoring & rate-limiting - Load balancer - high availability & reliability by scaling a single service dynamically (up/down) depending on traffic, Implement routing algos - round robin/least connections/ip hash The part that I think most people are confused normally is considering a system (e.g., NginX) and considering that it's only a reverse proxy. The video does a great job explaining that it may serve as both Reverse proxy as well as Load balancer.
@ravindranaths513
@ravindranaths513 7 ай бұрын
Do we have any thing, which combines all these three?
@AKA-077
@AKA-077 3 ай бұрын
In reverse proxy do you mean load balancing when you say load distribution
@saitaro
@saitaro 8 ай бұрын
I dropped all the programming subscriptions except for this one. You guys are making some really good explanations. Please go on.
@fritzfahrmann4730
@fritzfahrmann4730 8 ай бұрын
Nginx can also route different routes to other services -> see usage as ingress in k8s
@sesburg
@sesburg 6 ай бұрын
I learned that the three concepts here are not mutually exclusive ideas. Rather, they refer to the different roles of a server placed between the client and the application server(s). Reverse proxy is the name of this server that sits between the client and app servers, acting as the "face." API gateway handles the correct use and distribution of API requests. Load balancer means this server is managing many app servers by monitoring their health and availability. Learning something new today.
@munteanionut3993
@munteanionut3993 6 ай бұрын
if by many app servers you mean many instances of the same application web server, yes; if you meant multiple apps, then I think that would be handled by the API Gateway. Thanks for writing your thoughts here! It helps better understand the topic through others' views!
@SoftwareLevelUp
@SoftwareLevelUp 8 ай бұрын
Your animations are great! Do you do it all yourself or hire out for it?
@tototrapsilo
@tototrapsilo 8 ай бұрын
Isn't API Gateway a reverse proxy too? Yes, usually API Gateway comes with more features such as auth, rate limiting, etc. But, fundamentally, API Gateway is a reverse proxy, right?
@gssathvik
@gssathvik 8 ай бұрын
Yes. Thats right. With reverse proxy you can configure the routing logic which helps with routing the requests to the specific service or resource.
@varunj34
@varunj34 5 ай бұрын
Hmm, Reverse Proxy also caches static content, and does SSL termination. Does an API Gateway do that? :-).
@leetkhan
@leetkhan 8 ай бұрын
They all are same, the name dictates where is it used. LB is generally provided by Service provider. Reverse proxy is a server that you install and manage. API gateway is just fancy LB with more control over headers and http configs. It generally paired with serverless functions etc etc
@munteanionut3993
@munteanionut3993 6 ай бұрын
thanks for mentioning this! However it is not clear why "the name dictates where it is used" from your explanation
@TotoAstro77
@TotoAstro77 8 ай бұрын
In my mind : - Reverse proxy forward requests to the right server according to the hostname in the request - API gateway forward requests to the right server according to the path of the request - Load balancer forward requests to the right server according to criterias of the server (aliveness, latency, requests previously sent, ...)
@markcooke4866
@markcooke4866 6 ай бұрын
An API gateway is a reverse proxy that also handles auth and rate limiting. A reverse proxy can forward requests based on path or hostname.
@MdIrfan-ip9be
@MdIrfan-ip9be 8 ай бұрын
Which software do you use for making animated slides?
@munteanionut3993
@munteanionut3993 6 ай бұрын
It could be python animation.. not sure how the library is called though. Saw someone else mentioning this
@devops_learner05
@devops_learner05 4 ай бұрын
for deploying micro service application in server do i need to configure those Reverse Proxy, API Gateway, Load Balancer all together?
@davidlee588
@davidlee588 8 ай бұрын
still don't see their difference from here
@RockyTheDog756
@RockyTheDog756 8 ай бұрын
Agree, only surface explanation, which work only for those who know the answer
@MattBowler
@MattBowler 8 ай бұрын
They are fundamentally the same. API gateways are just specific functionality layered on top of a proxy architecture. Source: I am an engineer for F5, owners of Nginx, BIG-IP, and F5 Distributed Cloud edge services.
@punpompur
@punpompur 8 ай бұрын
​@@MattBowler pasting a comment below from another comment thread on this video "So an api gateway without api management and auth is just a load balancer, and a load balancer without needing to balance loads to multiple servers is just a proxy server which hides server address" Does this statement summarize the actual difference between those 3? Also, i have a question about API gateway. So far I have used nginx only as a reverse proxy in a server where I host multiple applications. Api management and authentication is handled on an application level. If I ever plan to use an API gateway, does it mean I can remove the authentication logic from each application and add it to the API gateway, essentially making the applications just API endpoints?
@MattBowler
@MattBowler 8 ай бұрын
@@punpompur, that statement is reasonable and summarizes the three well. Regarding using an API gateway as a means to decouple auth from an application, this is often seen as an advantage. Pushing your security features and functionality away from the core application code allows developers to focus on what they're delivering for the business. Imparting security controls such as auth and WAF at the API gateway layer allows much more control and flexibility when it comes to lifecycle management and ops.
@punpompur
@punpompur 8 ай бұрын
@@MattBowler what if there are multiple applications in a server where I plan to use API gateway and each application may have its own way of implementing authentication logic? Can I customize the API gateway in such a way that it can encompass all the different types of authentication logic before I remove it from the application code, or there will be only a single way of authentication inside the API gateway?
@superanik1
@superanik1 8 ай бұрын
How do we make presentations like these? Are these created via PowerPoint or any other tool?
@ColinRichardson
@ColinRichardson 8 ай бұрын
I wrote my own reverse proxy in javascript.. It's not as feature rich as nginx, but it does what I need it to do.. I still want to implement websockets correctly, but that is Future Colin's problem.
@brunodearaujoalves698
@brunodearaujoalves698 8 ай бұрын
Repo?
@ColinRichardson
@ColinRichardson 8 ай бұрын
@@brunodearaujoalves698 to KZbin keeps deleting the reply
@ColinRichardson
@ColinRichardson 8 ай бұрын
@@brunodearaujoalves698 KZbin is even deleting comments of me saying it's deleting my comments
@ColinRichardson
@ColinRichardson 6 ай бұрын
@@brunodearaujoalves698 not a public one. It has all its settings wrote directly into the JavaScript currently. Some settings such as simple forwarding will be easy to serialise. But others I wrote some simple endpoint functions directly off the proxy instead of spinning up another server. Not exactly best practice. But it's working well enough for now.
@mytechminds
@mytechminds 7 ай бұрын
I watch ByteByteGo video frequently i impressed with graphics, also read book High level system design, i am very curios to know how you made this graphics ?
@МихаилТрус-я1у
@МихаилТрус-я1у 8 ай бұрын
You made amazing work! Thank you
@RajKumar-nz5ru
@RajKumar-nz5ru 8 ай бұрын
Adding Ingress controller aswell which is reverse proxy of kubernetes universe
@trihahuy-truocnam25
@trihahuy-truocnam25 7 ай бұрын
hello sir, Can you help me know what software help you made a interesting animation like that.
@会供価
@会供価 6 ай бұрын
so those three does the same thing (being in the middle) but they are called different names based on the services/task that they do
@roshan.karunasena
@roshan.karunasena 3 ай бұрын
How does API Gateway, LBS, Reverse Proxy and WAF services fall into place?
@Tony-dp1rl
@Tony-dp1rl 8 ай бұрын
Been years since I have seen a new project use nginx, as the Azure and AWS SaaS offerings provide the same features - or better in some cases.
@samjones4327
@samjones4327 8 ай бұрын
Thank you for yet another great and informative tutorial! I absolutely love your content and please keep it coming for as long as possible! Be well, be safe and Cheers!!
@TanaseLiviu
@TanaseLiviu 8 ай бұрын
Wonderful explained ! Kudos
@ArpitThukral
@ArpitThukral 8 ай бұрын
I thought vs would mean highlighting the differences, meaning how one is better useful than other.
@saketshetty
@saketshetty 8 ай бұрын
Can someone explain in 2:28 how can all 3 servers use same port
@0xluiisss
@0xluiisss 8 ай бұрын
Different IPs
@charmander2k
@charmander2k 6 ай бұрын
The ports are local to each server/docker container.
@rishiraj2548
@rishiraj2548 8 ай бұрын
Thanks
@Xaoticex
@Xaoticex 8 ай бұрын
finally one of the better designed videos
@raj_kundalia
@raj_kundalia 8 ай бұрын
Thank you!
@RobinHistoryMystery
@RobinHistoryMystery 8 ай бұрын
I've never been this early to a video 🧐
@victorjoel44
@victorjoel44 8 ай бұрын
+1
@bloodraven9622
@bloodraven9622 8 ай бұрын
Thank you for great explanation, but I still misderstading in terminology "Reverse" is it because of callback ? May I call this service just a proxy?
@renarsdilevka6573
@renarsdilevka6573 8 ай бұрын
Reverse proxy is close to the server side whereas the term "proxy" can be used in the context of proxying the request on the client side instead.
@MrAnshulji
@MrAnshulji 8 ай бұрын
You can think in terms of a forward proxy vs reverse prox. For standard http calls, the forward direction is from the client to the server. So a proxy sitting in the "forward" direction is a forward proxy and the one sitting in the "reverse" direction is a reverse proxy.
@modestas2890
@modestas2890 8 ай бұрын
client => proxy => reverse proxy => server
@gus473
@gus473 8 ай бұрын
400th Like (at two hours)! 😎✌️
@da40au40
@da40au40 8 ай бұрын
Fun fact, A Reverse proxy is a load balancer and still an API gateway😅😅. Depending on how its built tho
@s8x.
@s8x. 5 ай бұрын
they are all technically the same thing😂
@joshmitchell212
@joshmitchell212 Ай бұрын
Too wordy brother, makes it sound like you read all this out of a text book. Give us some practical use cases etc.
Proxy vs Reverse Proxy vs Load Balancer | Simply Explained
13:19
TechWorld with Nana
Рет қаралды 220 М.
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 269 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,9 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 25 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 79 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 40 МЛН
API GATEWAY and Microservices Architecture | How API Gateway act as a Single Entry Point?
23:18
Concept && Coding - by Shrayansh
Рет қаралды 39 М.
API Gateway vs Load Balancer vs Reverse Proxy: when to use what?
9:06
Software Developer Diaries
Рет қаралды 26 М.
API Gateway Vs Load balancer - Simplified Explanation
15:26
TechWithShas
Рет қаралды 1,3 М.
HTTP 1 Vs HTTP 2 Vs HTTP 3!
7:37
ByteByteGo
Рет қаралды 332 М.
What is an API Gateway?
15:02
Gaurav Sen
Рет қаралды 64 М.
Load Balancers for System Design Interviews
4:42
Exponent
Рет қаралды 42 М.
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 310 М.
Proxy vs Reverse Proxy (Real-world Examples)
5:17
ByteByteGo
Рет қаралды 593 М.
Good APIs Vs Bad APIs: 7 Tips for API Design
5:48
ByteByteGo
Рет қаралды 248 М.
Proxy vs Reverse Proxy Explained
8:05
PowerCert Animated Videos
Рет қаралды 385 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,9 МЛН