Client-Side vs. Server-side

Client-side means that the action takes place on the user’s (the client’s) computer. Server-side means that the action takes place on a web server.

Client-side means that the action takes place on the user’s (the client’s) computer. Server-side means that the action takes place on a web server.

So what do we mean by action? And why does some action take place on your computer and some on a server?

When we say action we mean all that work that programming languages do. You will remember from our term about programming languages that they are the doers of the web.

Programming languages like Ruby, Python, and JavaScript do things like: send an email, ask the bank how much money you have in your account, or tell a photo slideshow to advance to the next image.

In order for a programming language to do its job, the computer has to understand the language its speaking.

Almost every computer in the world understands one programming language: JavaScript. For this reason, most things that can be accomplished using JavaScript can be done without needing access to a web server. Thus, though you are usually connected to the Internet when you run JavaScript scripts, you could just as easily disconnect from the Internet and run those same scripts on your computer (the client-side).

On the other hand, if you want to use a programming language (Ruby, PHP, and Python, etc) you need access to a server that understands the language. Tasks that need to be accomplished with those languages happen on that server, meaning they are done server-side.

But can’t I just install a programming language on my computer?

Yes, you can install programming languages on your computer but that still won’t let you find out your bank account balance without being connect to your bank’s servers.

The reason for this is databases. Data storage is the other thing that is usually handled server-side. If data was stored client-side, your bank would have to keep track of thousands if not millions of user databases all over the world. Instead, they keep all their user data in one centralized database where they  have easy access to it, and you do too via the Internet.

Cocktail Party Fact

Alright, so I understand client-side vs. server-side, what I don’t understand is how that is any different than frontend vs. backend development!

Very good call! It’s really not that different.

The difference between client-side vs. server-side, and frontend vs. backend programming is really a difference in semantics. Client-side vs. server-side describes where the action takes place (literally on your computer vs. a server). Frontend vs. backend refers to what kind of action is taking place (the kind the user sees vs. the kind a user does not).

At the end of the day, everyone is really talking about the same set of technologies.

Leave a Reply to Sandra

Your email address will not be published.

Cancel

9 comments

  1. Cassy Broomfield Replied

    Along with the whole thing that seems to be developing within this particular area, your viewpoints happen to be fairly refreshing. Having said that, I am sorry, because I do not give credence to your whole strategy, all be it exhilarating none the less. It seems to everyone that your commentary are not completely justified and in actuality you are generally yourself not even thoroughly confident of your assertion. In any case I did enjoy examining it.

  2. Len Bobrow Replied

    My brother recommended I would possibly like this website. He was totally right. This submit actually made my day. You can not believe just how much time I had spent for this info! Thank you!

  3. furtdso linopv Replied

    With havin so much content and articles do you ever run into any issues of plagorism or copyright violation? My site has a lot of exclusive content I’ve either written myself or outsourced but it appears a lot of it is popping it up all over the web without my agreement. Do you know any solutions to help reduce content from being stolen? I’d really appreciate it.

  4. Sandra Replied

    Thank you this really helps. So a website like amazon uk where you purchase things is that server side ? What about smaller websites for information such as a charity information website with a small shop is that also server side.

    • Scott Morris Replied

      Hi Sandra,

      Any website you visit will be a combination of client side and server side. When you visit a website, the content you see on your computer, phone, or tablet screen through your web browser is considered client side. This is the part of the website that you (the client) are interacting with.

      However, different actions you take on the client side (clicking a link, filling out a form, etc.) will send requests to the website’s server (the computer the website’s assets—images, pages, videos, etc.—are stored on).

      For instance, if you click on a link to move from one page on a site to another, the website’s server will be asked to provide you with that next page. These kind of server requests (which you don’t actually see on your end as a user) are considered server side.

      Best way to think of it: client side = website activity you can see on your screen as a user, server side = the things that happen “under the hood” that allow the website to appear on your screen.

      Hope that helps!

  5. Cyelii Replied

    I read your post and wieshd I was good enough to write it

  6. callum samuel Replied

    this helped me understand my starwars rp server hosting thank you so much!
    lots of love callum :) oi oi oi

Want more articles like this?

Sign up to get the most recent tech news, tips and career advice.