Tuesday, May 24, 2022

peer to peer vs client server architecture in English

Hello this is vinay and today we are going to discuss about computer network architecture but before we can discuss architecture in computer we need to understand what is network so i hope you have already watched my previous video on networking so here i'm giving a small introduction about what .

Is network so when two or more computer are connected in such a way so that they can share files and resources is called computer network now computer network can be local area network and the wide area network so what is network now we know that so what happened when we established a network computer network .

What happened there is a behavior of the network so that behavior of the network is called architecture how the computers going to behave in a particular architecture so we have two different architecture in computers so .

One is peer-to-peer architecture and the second is client server architecture so let's discuss what is peer-to-peer architecture so when is come to peer-to-peer architecture in computer each and every computer will be given equal responsibility equal privileges means that each and every computer can communicate with each .

Other can access the information which is available in a different machine in the network let's understand this with the help of example let's say now let's give them name computer number two having printer installed okay .

Now printer has been installed at computer number two now that printer can be used by computer number three four and computer number one okay now because all computer having same responsibility given same privileges and same accessibility .

So they are allowed to do that okay so let's say computer number one having some information or a data available so that data can also be accessed by computer number three four and two so you might be wondering that why should we use computer network peer-to-peer .

Architecture now basically peer-to-peer architecture was designed so that the workload of a computer can be distributed amongst the other computer now for a better understanding how can we distribute the workload of a computer .

So let's say that you have been given a project called you need to develop like a web application now to develop a web application there are several uh fields like you need to make a database where you are going to create .

Tables and triggers okay these are one field now the second field is that you also need to design the web pages so that the customer can interact with now the third is that someone who is going to code maybe you are using java or python or dotnet so as you can see that we have three .

Uh database like three types of field so in a computer number one we have a database you know storing all the tables and triggers computer number two let's say web designing computer number three having coding coding part .

Like java or dotnet so as you can see that rather storing all the data of a same project in a single machine we are doing what we are distributing the same project and information in a different different computer so it is definitely distributing the workload .

And dividing or distributing a workload between or amongst the computers now if let's say computer number three which are storing coding part now let's say uh this uh computer or who is operating this computer wants the design part of the website now .

It simply can access the designing part from computer number one okay because in a peer-to-peer architecture every computer have the same responsibility and same privileges now they can communicate with each other without any restriction now cryptocurrency is also based on peer-to-peer architecture even utorrent .

Or bittorrent from from which you are downloading videos and games are also based on peer-to-peer architecture now let's discuss what is client server architect so when is come to client server architecture we need to understand what is client and what is server so let's understand this with the .

Help of example so let's say you have a browser okay and there is a search bar so as you let's say you type x y z movie so when you enter your request will be forwarding so it's a browser okay so as you type anything maybe a movie name so as you enter your request will .

Be forwarded to a server now what is server server is a big computer which is store loss of information or a data so once a browser request it forwarded to a server okay now server process your request if the data available in the server .

In the uh in the hard disk of a server then the desired result will be shown on the web browser so in this case browser is the client and the server who is giving you the services because you have requested for a movie .

So it has been processed by a server now the movie is available then it is being shown on your web page so the so the service giver so who is giving you the service is called server now in this case google chrome is the client and google is your server now let's understand what is client server .

Architecture so when is come to client server architecture server have all the authority and the power that what client can or cannot use in terms of data and resources now let's understand this with the help of example .

Now we have three computers and one server now the data is only available on the server means that data is centralized whether you want any kind of document or ppt or audio file or video file so data has been centralized means the data is available on the server so if anyone wants to access a particular information .

Or a data then it has to come to uh forward a request to a server now if server allows a particular computer to use that information then only they would be able to access the information now let's say computer number three wants to use a printer which is available in the network now the request will be .

Forwarded to a server stating that computer number three wants to use a printer now it is it depends on a server now if server allows computer number three to use the resources then only computer number three would be able to use that printer similarly computer number two wants to access let's say a document or a ppt .

Or a information from the server so now again it forward the request to server and again server process the request if server allows a particular computer to access certain information then it grants the permission otherwise it simply rejects the request for example like .

Amazon prime and netflix so netflix has the server in which lots of videos and tv shows and web series are available so until unless a client buy the subscription they wouldn't be able to access video available on the server so as you can see that in a client server architecture data has been centralized .

Now server has all the authority what a client can or cannot use in terms of data and the resources i hope i'm able to make you understand computer network architecture now if you like my video please give it a thumbs up and if you haven't subscribed yet please consider subscribing thank you very much .

For watching

RELATED ARTICLES

Most Popular