跟读练习: Proxy vs Reverse Proxy Server Explained - 通过YouTube学习英语口语
C1
going on guys my name is Hussain
202 句
如果句子过短或过长,请点击 Edit 进行调整。
1
going on guys my name is Hussain
2
and in this video I want to discuss the difference between a proxy and a reverse proxy.
3
I made a video two years ago and I want to remake this video
4
and talk about things that I haven't talked about in the previous video
5
and things that I recently learned from
6
and from you guys like you had a lot of questions I compile these questions into this video as well
7
so if you're interested stay tuned how about we jump into the video.
8
So the first thing is what is a proxy?
9
A proxy is a software that makes requests on behalf of a client.
10
So in this case, for example, the client here, the laptop says, hey, I want to go to google.com.
11
But it has certain configuration in its setting that says, by the way, this is my proxy.
12
That means any request that needs to go out have to go through the proxy first.
13
So all the connections is actually established between those two guys only.
14
All right?
15
And then the proxy will look at the data and says, oh, you want to go to google.com?
16
I'll take care of it.
17
I'll make the request of your behalf.
18
So as far as Google is concerned or any of the destination server here, the client is the proxy, not this guy, right?
19
So that's essentially what a proxy is, right?
20
You might say, okay, what are use cases for this?
21
Well, some ISPs use proxies to block certain unwanted websites and certain governments, not all of them, right?
22
At your work, some organization uses a proxy.
23
They want to protect you from bad websites that, well, this is confidential data and we don't want you to visit bad websites.
24
So this is a list of things that you shouldn't access.
25
And we can know because we keep the list right here.
26
So if you try to access certain websites that we think is an efficient website, we're going to block you right here.
27
We're going to block that website.
28
And another use case is like, hey, I want to cache this stuff.
29
Hey, we just made another person just made a request for certain content.
30
Hey, I have it cached here.
31
Don't bother.
32
I'm not going to go to the server to pull this content again.
33
I'm just going to serve it back to you.
34
So that's where you use a proxy.
35
How about some use cases of a proxy?
36
The use of proxy is caching.
37
Caching is very popular where, hey, I'm consuming this content, but someone else already have done it.
38
So as you have this centralized location where all the some of the requests going through the proxy, the proxy can serve you cached content.
39
This could be bad or good, but nevertheless, it's a good idea sometimes.
40
right anonymity anonymity from the final destination the final destination doesn't know
41
that originating client as we have discussed here as far as
42
Google is concerned this is the client right not this one right
43
so this is kind of an anonymity right code in code you're kind of understand
44
that you're transferring the anonymity from one place to another
45
because yes Google doesn't know who you are anymore
46
but the proxy does logging yeah
47
and again in a work environment hey i want to log everybody request
48
and say okay this website is being visited a lot
49
so maybe it's time to start caching this website
50
or maybe this guy's oh this is this guy's always on facebook oh why is he doing
51
that right block websites hey i don't want you isps
52
and work situations can actually do that right if it can protect you from bad websites or actually if certain governments,
53
right, can force clients to actually use a proxy to access the internet.
54
It's like, hey, without this proxy, you cannot access the internet.
55
I'm sorry.
56
So if the month is to use a proxy, any website goes, any request goes through that ISP proxy.
57
And the moment you do that,
58
well, they can see certain information not everything at least the domains we we can go hours talking about
59
that stuff right block website
60
microservices is one of the recent chain uh use cases of
61
proxies especially a sidecar proxies there are many type proxies guys this yeah http proxy tcp proxy sidecar proxy
62
so microservices is also another use case where you can deploy a proxy next to your application and have it
63
take care of networking stuff, right?
64
So if you make a simple request, right, let's say an HTTP one request,
65
that sidecar proxy can actually start upgrading that request to a newer protocol, let's say HTTP two or HTTP three, right?
66
So it can do that for you because it know how to speak that language.
67
You just speak in a primitive way between these two.
68
And this could be the bad ass configuration, right?
69
They can use gRPC.
70
They can use very high tech at the back end, right?
71
So, that's another use case for microservices.
72
Microservices actually uses both proxy and reverse proxy.
73
Jumping to the reverse proxy.
74
The reverse proxy is actually the reverse, and I hate that because it's very confusing, I know.
75
In the proxy configuration, the server doesn't know the client.
76
In the reverse proxy, the client doesn't know the final destination server.
77
it's actually reversed right so if here you want to go to google.com
78
which is your final destination
79
but guess what google.com in itself is a reverse proxy it is not the true final destination
80
and you don't know that
81
because guess what the proxy in this case will make the request still on your behalf
82
but you don't know that they will communicate to either google server one or Google server two or Google server three.
83
And this is one use case of a reverse proxy called load balancing, right?
84
So, hey, I want to go to this or no, maybe I'm going to use a canary deployment.
85
Well, I'm testing that 8% of users should use this new version of the application, right?
86
And Instagram does that all the time, right?
87
Or YouTube does that all the time.
88
Hey, we're testing all the request, 8% of the request, we're testing this new feature, right?
89
This new functionality.
90
Oh, well, 8% of the request, literally in the reverse proxy, we're going to funnel it to this destination.
91
And that's it.
92
That's how you get the new functionality, right?
93
So that's a reverse proxy.
94
Again, very quick.
95
In a proxy, the server doesn't know the client.
96
Reverse proxy, the client doesn't know the final destination.
97
That's the simplest I can get it, really, right?
98
And let's talk about reverse proxy use cases, more reverse proxy use cases.
99
Caching is again, shows up again.
100
I want to make a request to Google.com and the Google.com is a reverse proxy.
101
Well, it will cache content for me so that I don't have to.
102
It doesn't have to go to the back end and features on formation for me.
103
Right.
104
Formation that are already being fetched so catching is very important load balancing something you cannot do with just a proxy
105
load balancing hey i am you're making a request to me
106
which is the reverse proxy i'm sometimes gonna hit this server
107
sometimes i'm gonna hit this server sometimes i'm gonna hit this server
108
and there are so this you can speak about this for hours guys i i made
109
so many videos about load balancing there are many types of
110
app balancer layer 4 load balancers layer 7 load balancers layer 3 load balancers it is a complicated topic
111
if you want to learn more i'm going to reference the
112
playlist it's going to in the comment section go dive deep into it
113
and just enjoy this is a huge huge huge huge feature right
114
so a lot balancing ingress in kubernetes and microservices
115
and architecture always says hey all right you talk to me
116
sir as a reverse proxy your client talk to me reverse proxy
117
and guess what if you want to access the pictures api i'm gonna funnel you to this api
118
if you're doing going to the comments api i'm going to funnel you to this
119
so that's called an ingress where it's actually based on certain
120
filtering on the content at least the http side it says
121
oh you want to go to this you want to consume
122
the comments api you want to consume the pictures api you
123
want to consume this api right well i'm going to take you to the actual service
124
that is responsible of serving you this content
125
so it's not really not balancing it's kind of cause it's
126
all an ingress where it's kind of like like a router right
127
so hey this goes here this goes here this goes here very important features in kubernetes canary deployment
128
Canary deployment is where we talked about right?
129
This is hey, I'm experimenting that 3% of all YouTube videos should have a random generated thumbnail.
130
That's a canary deployment.
131
How do they do it?
132
Reverse proxy rules.
133
They have rules and they define it in the reverse proxy.
134
Examples of reverse proxies guys by the way, hundreds of them right?
135
There are it's a proxy there is nginx there is envoy
136
there is linkedin linkedin linker d already run out i say 100
137
but i can't think of a lot of people
138
that yeah caddy web server some people some some servers act like a web server
139
and a reverse proxy which is awesome
140
and finally the microservices yes a microservice architecture reverse proxy is
141
also a key where each service sometimes as a sidecar plays like a sidecar it's both a proxy
142
and a reverse proxy at the same time we're going to talk about
143
that all right guys so these are the most common questions
144
that i have collected over over the years and just from reading my comment section on the youtube channel
145
the first question is can the proxy
146
and the reverse proxy be used at the same time yes
147
there is a use case where a proxy can act also as a reverse proxy at the same instance
148
and this is called the service mesh right a service mesh
149
or a sidecar proxy like linker d or stu
150
or envoy are used in microservices architecture
151
and it is used all the time to kind of build
152
the networking feature of the application in the proxy itself instead of
153
and focus the application to write its own features instead of worrying about timeouts
154
and circuit break and all that garbage right so
155
So that's a use case where a proxy can act like
156
a reverse proxy the same a second uh question is can
157
i use a proxy instead of vpn for anonymity well you can yeah you can
158
but you have to really know what they are doing technically vpn is more secure than
159
a proxy because they are at lower level and vpn the only thing
160
that vpn can see in your content is the domain that
161
and that's assuming every website you're visiting has the padlock in
162
it https right assuming i'm talking about only web traffic here but yeah
163
if the vpn can only see the domains right you have you're going to facebook.com they can see
164
that right you're going to this website that's come a proxy is more dangerous
165
because some proxies can not only see see the domains, they can see everything if they are TLS terminating proxies.
166
If they are that type, then actually they can just see everything you're doing and you don't want that, right?
167
So if you want to use a proxy, know that it's not a TLS termination proxy.
168
If it's that, then it's essentially decrypting the traffic and serving you its certificate.
169
So to know is very easy.
170
Go to the padlock and click on it and see that it's being served by the final destination web server, not the proxies certificate, right?
171
But yeah, to be honest, I don't use a VPN or a proxy, right?
172
Because first of all, I don't have a use case where I want to visit.
173
I live in the United States, so any page is pretty much open, right?
174
But if I want to use anonymity, I'm not going to use a VPN because VPN still, the anonymity is still not going to use a VPN transferred from from my isp to the vpn
175
so the vpn know where i'm going and which websites i'm visiting
176
but yeah even i don't have a use case
177
so i don't use a vpn
178
or a proxy i'm sorry i might consider using it to to access some content
179
that i'm not supposed to watch in the united states i
180
don't know some uk shows right i would i would use a vpn
181
but yeah i don't use that any of them Plus, as long as the website is secure, it's good, right?
182
And the domains, really?
183
I mean, yeah, they can look that I'm viewing amazon.com or facebook.com.
184
Yeah.
185
So I'm not really worried about that much.
186
So that's just me.
187
Is proxy just for HTTP traffic?
188
No. You can have so many types of proxies.
189
There is SOX proxies, which is a very low level.
190
There is unused for tunneling.
191
There is HTTP proxy, which only forwards traffic for HTTP, right?
192
There is HTTPS traffic proxy, which can act both ways.
193
As a tunneling proxy using the connect HTTP method, which is safer.
194
Or as a TLS termination, which is you want to use TLS termination reverse proxies.
195
TLS termination proxies And you use it for your normal days That's a no-no Alright guys That's it for me
196
Hopefully it was a quick video I don't know
197
if it's worse than the one I made
198
But hey I just thought it was a good idea To just remake this video guys for you
199
And follow me on Twitter Send me your great questions I
200
love to leave them Subscribe to this channel to see more software engineering Backend technology I talk about all
201
that stuff in this channel and I'm going to see you in the next one.
202
You guys stay awesome.
下载应用
Everything you need to speak fluently
AI PronunciationScore every sentence
IPA PracticeMaster every sound
VocabularyBuild your word bank
Vocab GameLearn while playing
背景信息
在当前互联网环境中,代理服务器和反向代理服务器的概念变得越来越重要。视频中,演讲者Hussain深入探讨了这两个术语的不同之处,从实际案例和使用场景展开,帮助听众更好地理解代理服务器的工作原理及应用。这对正在努力提高英语能力的学习者尤其重要,因为理解这些技术概念不仅可以扩展他们的词汇量,还能够提高他们的听力理解能力。
日常交流中的五个关键短语
- 代理服务器(proxy):指一种代替客户机发出请求的软件。
- 请求(request):表示客户端希望访问某个网站时发出的请求。
- 缓存(caching):涉及存储常见请求的数据,以提高访问速度。
- 匿名性(anonymity):通过代理隐藏客户机的真实身份。
- 日志记录(logging):追踪和记录所有用户的请求,以便分析频繁访问的网站。
逐步跟读指南
学习如何有效运用跟读(shadowing)技巧来提高你的英语水平是至关重要的。以下是针对本视频内容的具体步骤:
- 选择合适的片段:从视频中选择1-2分钟的短片段进行跟读,这样可以确保理解并吸收内容。
- 逐句模仿:一边观看视频,一边暂停并模仿发言者的语调和节奏。注意他在表达时使用的关键短语。
- 多次重复:反复播放该片段,并尝试不看字幕进行跟读,确保把每个短语都融入你的发言中。
- 记录进步:使用音频录音设备记录你的发音,回放并对比与视频中的发音,找出改进之处。
- 利用学习资源:结合“看YouTube学英语”等资源,拓宽你的学习范围,提升你的英语听说能力。
通过以上的跟读技巧,学习者不仅能够增强语言的表达能力,还能提高听力理解力与语音水平,逐步掌握更加流利的英语口语。
什么是跟读法?
跟读法 (Shadowing) 是一种有科学依据的语言学习技巧,最初开发用于专业口译员的培训,并由多语言者Alexander Arguelles博士普及。这个方法简单而强大:您在听英语母语原声的同时立即大声重复——就像是一个延迟1-2秒紧跟说话者的影子。与被动听力或语法练习不同,跟读法强迫您的大脑和口腔肌肉同时处理并模仿真实的讲话模式。研究表明它能显着提高发音准确性,语调,节奏,连读,听力理解和口语流利度——使其成为雅思口语备考和真实英语交流最有效的方法之一。
