Learning Library

← Back to Library

FaaS vs Serverless: Key Differences

Key Points

  • Functions as a Service (FaaS) is a cloud model that lets developers run individual functions without managing servers, and it is often conflated with “serverless” because both hide infrastructure concerns.
  • In traditional on‑premises environments the stack includes hardware, virtualization, OS, runtime, and application layers, which creates high upfront costs, long provisioning times (weeks to months), and limited agility.
  • The advent of Infrastructure as a Service (IaaS) in the early 2000s (e.g., AWS) abstracted the lower‑level hardware and virtualization layers, allowing developers to provision resources in minutes instead of weeks.
  • Platform as a Service (PaaS) abstracts even further by removing the need to manage runtimes and OS, letting teams focus solely on their application code and dramatically reducing idle time.
  • FaaS builds on this trend by abstracting the entire application runtime, enabling developers to deploy isolated functions that scale automatically, representing the most extreme form of serverless computing.

Full Transcript

# FaaS vs Serverless: Key Differences **Source:** [https://www.youtube.com/watch?v=EOIja7yFScs](https://www.youtube.com/watch?v=EOIja7yFScs) **Duration:** 00:10:51 ## Summary - Functions as a Service (FaaS) is a cloud model that lets developers run individual functions without managing servers, and it is often conflated with “serverless” because both hide infrastructure concerns. - In traditional on‑premises environments the stack includes hardware, virtualization, OS, runtime, and application layers, which creates high upfront costs, long provisioning times (weeks to months), and limited agility. - The advent of Infrastructure as a Service (IaaS) in the early 2000s (e.g., AWS) abstracted the lower‑level hardware and virtualization layers, allowing developers to provision resources in minutes instead of weeks. - Platform as a Service (PaaS) abstracts even further by removing the need to manage runtimes and OS, letting teams focus solely on their application code and dramatically reducing idle time. - FaaS builds on this trend by abstracting the entire application runtime, enabling developers to deploy isolated functions that scale automatically, representing the most extreme form of serverless computing. ## Sections - [00:00:00](https://www.youtube.com/watch?v=EOIja7yFScs&t=0s) **Evolution from On-Prem to FaaS** - Jason Goode outlines the traditional on‑premise IT stack and introduces Functions‑as‑a‑Service and its relation to serverless computing. - [00:03:03](https://www.youtube.com/watch?v=EOIja7yFScs&t=183s) **Rapid Deployment with Functions-as-a-Service** - The speaker explains how FaaS abstracts the application layer, providing near‑instant provisioning, zero server management, and cost efficiency, while positioning it alongside other cloud service models such as SaaS. - [00:06:19](https://www.youtube.com/watch?v=EOIja7yFScs&t=379s) **Serverless Functions via API Gateway** - The speaker explains how an API Gateway routes client requests to individual serverless functions—such as GetAccount and AvailableColor—that each query separate databases, illustrating a simplified Functions‑as‑a‑Service architecture. - [00:09:46](https://www.youtube.com/watch?v=EOIja7yFScs&t=586s) **Auto-Scaling and High Availability in FaaS** - The speaker outlines how Function-as-a-Service automatically scales resources up or down based on demand and remains highly available across multiple regions without extra cost. ## Full Transcript
0:00What is Functions as a Service, or  FaaS as it is more commonly known as. 0:05Are FaaS and Serverless the same  thing, or are they different? 0:09Hi I'm Jason Goode with IBM Cloud team,  I'm going to answer those questions for you 0:13today, but before we go too FaaS, please make  sure to hit that subscribe button. All right, 0:18I'm excited to get into let's take a step back  and look at a time before we had cloud. So back 0:23in the day an organization would have to manage  their whole IT software stack on premises. So, 0:30let's take a look at that. So at the  bottom here you would have your Hardware, 0:35and this would be all your compute, your  network, and your storage resources. 0:40And then moving on up we'd  have our Virtualization layer, 0:43and essentially what happens here is you'd be  virtualizing all those hardware resources with 0:47something say like a hypervisor to create modular  virtual machines so you can horizontally scale. 0:53And then moving on up, we then  move into our Operating System. 0:57And I'm sure most of you  are aware of what this is, 1:00this would be the software that's actually  on your computer and enables programs to run. 1:06And then on top of that we run into our Runtime,  and this would really be the glue between your 1:11Operating System and your Application and be the  environment that your Application operates in. And 1:17then last but not least, we have our Application.  And this would be where all the magic happens. So 1:23this would be your business logic, right. And  this is where your development team will spend 1:27most their time, because this is where they  design, build, and deploy your application. 1:32So, as you can see this is quite a bit for one  organization to maintain and own, you know up 1:39front you have a lot of costs with your hardware  and you're not very agile, say something goes down 1:44in this IT stack here, I mean it could affect any  of these given layers. And the time to provision 1:49and get your application out the door could  take anywhere from a week to even a month. 1:54So not very efficient. So, let's fast forward  to the early 2000's and AWS emerged with 2:00a new cloud computing service model, which is  Infrastructure as a Service, also known as IaaS. 2:10And what IaaS does it actually  abstracts these lower layers, 2:13these infrastructure layers, which you can now run  from a cloud service provider and it's a common 2:18model used today. So it's much more cost efficient  without having to own and maintain these layers 2:24and you can provision and get your application  out the door much quicker. So, we're looking 2:27at anything from an hour to minutes, which is a  huge increase from that week to month timeline. 2:37So then we also had another cloud computing  service model emerged which is Platform as 2:42a Service. And as you can see we even took  the abstraction level even further with PaaS, 2:50so with this model now you're just worried about  your application, that's all you have to maintain. 2:56And the idle time is much shorter too, so  you'd be running at least one server but 3:00you don't have to worry about your Runtime,  your Operating System, just that Application. 3:05And the time to provision and get  your application out the door is much 3:07shorter as well, so you're looking  anything from minutes to seconds. 3:15All right. So you're probably wondering, okay,  so we're at the Application layer, how can we 3:18abstract even further. Well let me explain. So  back in 2014, hook.io emerged with a new cloud 3:27computing service model which is the topic of the  hour, and that is Functions as a Service, also 3:33known as FaaS. And what FaaS does it abstracts  that Application, so now you can only focus on the 3:42Functions. And the functions are the individual  components that actually make up that application. 3:48So, it'd be the individual tasks you know  something like uploading an image file, 3:54you just have so much more flexibility and  you have zero idle time. So you don't even 3:59need a server, that's all managed and taken  care for you by the cloud service provider. 4:04It's much more cost effective, and the time  to provision with Function as a Service 4:09is lightning fast. So we're looking at  anywhere from a second to millisecond. 4:16So I know I went through this pretty quick,  but hopefully you can get a sense of how 4:20Functions as a Service relates to the other cloud  computing service models within this landscape. 4:25Oh I'm sorry, I should actually take a step  back, we should talk about Software as a Service 4:29briefly. So that's another cloud computing  service model that actually abstracts all 4:33these layers here, including the functions. And  you know, that would be something like YouTube, 4:38if you're watching this video that would be an  example of Software as a Service. So now let's 4:43take a look at how Functions as a Service relates  to Serverless and take a look at the architecture. 4:52All right. So, Functions as a Service, is actually  a key subset of Serverless, as well as Backend as 4:57a Service. Backend as a Service is any third party  service that you integrate with your application 5:03and the great thing about it is there's no code  that you need to manage, and there's no servers. 5:08So let's take a look at what a Serverless  application architecture might look like 5:13and let's use an example of something oh I  don't know let's say a hair color for gray hair 5:19eCommerce storefront, which I've never looked into  before. Okay. So we'll start here with our client, 5:27and this would be our hair color eCommerce  website. And let's say we have a user 5:35and they click and they want to see  some before and after images. So 5:39we would have a request come down here and we  would have a third party Object Storage Service. 5:49And, the great thing about this is there is no  servers involved once again. So this would be 5:56one example of Backend as a Service. And it would  use something like HTML, it could be Javascript, 6:02or CSS and it would actually send those images  back to the client. So now that they've looked 6:08at some before and after images, now we need  to get them authenticated. So we can again have 6:14another third party service integrated and we  could have this as an Authentication Service. 6:23Okay, so this would be one more example of  Backend as a Service, but now let's let's take 6:28a look at Functions as a Service and let's say  that the client needs to get their account. So 6:37we'd have another request come and this would  interact with what we call an API Gateway. 6:46And this API Gateway would then invoke a function. 6:53And we'll call this function GetAccount.  And this GetAccount function will now 7:03communicate with a different  database, and this would be Customer 7:09Database. 7:12So, this would be our Functions as a Service,  right here. So this would be one individual 7:17task within the greater application. So  let's do another one. Let's say the Client 7:25makes another request and now they want to see you  know what kind of hair color options they they're 7:32working with, right. So we'd have another  request go through the API Gateway and this 7:38would have another individual function and this  would be Available, if i could spell ha, Color. 7:50Okay. So this FunctionAvailableColor  would go to a separate database 7:57and we'll call this Color Database, 8:02Color DB. 8:05All right. So, this is again, just a very  simplified view into a Serverless Application 8:12Architecture and I mainly want to focus in on  the Function as a Service functions right here. 8:18So let's just zoom in right now, and we'll look  at the API Gateway and our functions and expand. 8:25And expand this out as well, the API Gateway.  So API Gateway, it translates requests to 8:31a single endpoint and then routes it to a  different Functions as a Service function. 8:36So in our case our user makes  requests, right. So we have Get / api 8:43/ color. This API Gateway notices the requests  and it sees AvailableColorFunction over here 8:52because it has Available Color route within the  API Gateway. So again, Functions as a Service 8:58is essentially a small piece of code written by  developer that are executed in the cloud and run 9:02on stateless containers. And what this means is  that they do their job and then they disappear. 9:08And this leads me to my first key benefit I want  to highlight, which is you only pay for what you 9:14use. Because unlike our other cloud computing  service models if you recall, you always got to 9:19pay for some idle time. Even a platform as service  you're responsible for at least one single server. 9:28Another key benefit is you  can just focus on that code, 9:32right. So without the underlying infrastructure,  which is going to be a common theme, 9:36you know throughout this whole video, is you  could just focus on those individual functions 9:41from splitting up that server and that  business logic where you don't have to 9:44worry about maintaining it with  that underlying infrastructure. 9:49Another key benefit is auto acaling. So again,  without that infrastructure you can scale on 9:55demand, automatically, and instantaneously,  right. So if your Function as a Service platform 10:01has demand go down, it'll  automatically scale down for you. 10:06The last but not least highlight I want to  mention is that it's inherently highly available. 10:11So by being spread across multiple availability  zones in different geographical regions, 10:16you can deploy your Function as a Service platform  in those different regions at no incremental cost. 10:23So I know this is just a quick overview of  Functions as a Service, but hopefully you 10:27can now see some of the key benefits as well  as how it relates to Serverless and other 10:32cloud computing service models. Thank you. If you  have any questions please drop us a line below. 10:38If you want to see more videos like this  in the future, please like and subscribe. 10:42And don't forget you can grow your skills  and earn a badge with IBM CloudLabs, 10:48which are free browser-based  interactive Kubernetes labs.