What is a web application?

Web applications, or web apps, are a huge part of the way the internet works! Facebook, Gmail (or any popular email website), and even Udacity’s classroom are examples of popular web apps. Let’s look at the big picture to see how web apps serve you dynamic web page content as you browse the internet.

First, let’s look at the difference between dynamic and non-dynamic websites. When visiting non-dynamic websites, your web browser will make the initial HTTP requests to download the HTML, CSS, and other files needed to create the initial webpage that you want to browse. But, once the web page is loaded, the web browser or the website won’t send any more HTTP requests to the web server to ask updates. What you see is what you get…until you click the refresh button.

On the other hand, dynamic web apps know how to build or update themselves on demand. More specifically, dynamic web apps often use JavaScript, Ajax, and/or long polling to make HTTP requests to the web server to ask for updates or new content (either on demand or on a regular cadence…depending on how the web app is build). If new updates are available, the web app will update itself accordingly.

Let’s look at the Facebook news feed as an example. Picture yourself in front of your computer, looking at your news feed in your favorite web browser.

This is what is happening under the hood: When you first load Facebook, which is a web app in this case, your browser will make the initial HTTP requests to build up your newsfeed for you. Once your news feed is pieced together, the Facebook web app will continue to talk to the Facebook servers via HTTP requests to ask for new updates, and if updates are available, your news feed will be updated accordingly. That’s why you’ll see new stories getting automatically added to your newsfeed.

In the early days of the internet, most of the content available online was static, but these days, most of the content on the internet is dynamic like Facebook.

Pretty cool to know what’s happening under the hood when you’re browsing the web, right? In Udacity’s Web Development course, where reddit and Hipmunk co-founder Steve Huffman will teach you how to build your own blog app and scale it to support large numbers of users. Check out this self-paced course and build your blog as you advance through the lessons!

Check out the course



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>