Short Intro about serverless applications
Tags: aws, serverless, webdev, opensource
Published: 2020-07-08 20:09:42

---
title: Short Intro about serverless applications
published: true
date: 2020-03-08 16:23:38 UTC
tags: aws,serverless,webdev,opensource 
canonical_url: https://medium.com/@rajdeepdas.india/short-intro-about-serverless-applications-85793ee4b6e7
---

![](https://cdn-images-1.medium.com/max/1024/0*nST7aiX45xiqc4hL)<figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=medium&amp;utm_medium=referral">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption>

**What is serverless?**

Serverless workloads are “event-driven workloads that aren’t concerned with aspects normally handled by server infrastructure.” Concerns like “how many instances to run” and “what operating system to use” are all managed by a Function as a Service platform (or FaaS), leaving developers free to focus on business logic.

The above definition by the spring.io group.

Generally when we talk about serverless architecture first things comes to mind is most popular **Function as a service** ( **FaaS** ) model on cloud.

**What the heck is FaaS?**

According to Wikipedia **_Function as a service (FaaS)_** is a category of cloud computing services that provides a platform allowing customers to develop, run, and manage application functionalities without the complexity of building and maintaining the infrastructure typically associated with developing and launching an app. Building an application following this model is one way of achieving a “serverless” architecture, and is typically used when building microservices applications.

[AWS Lambda](https://en.wikipedia.org/wiki/AWS_Lambda) was the first FaaS offering by a large public cloud vendor, followed by [Google Cloud Functions](https://cloud.google.com/functions/), [Microsoft Azure](https://en.wikipedia.org/wiki/Microsoft_Azure) Functions, [IBM](https://en.wikipedia.org/wiki/IBM)/[Apache](https://en.wikipedia.org/wiki/Apache_Software_Foundation)’s [OpenWhisk](https://en.wikipedia.org/wiki/OpenWhisk) ([open source](https://en.wikipedia.org/wiki/Open_source)) in 2016 and [Oracle Cloud](https://en.wikipedia.org/wiki/Oracle_Cloud_Platform) Fn (open source) in 2017.

Use cases for FaaS are associated with “on-demand” functionality that enables the supporting infrastructure to be powered down and not incurring charges when not in use. Examples include data processing (e.g., batch processing, stream processing, extract-transform-load (ETL)), Internet of things (IoT) services for Internet-connected devices, mobile applications, and web applications.

{% youtube 1r3vMYywNLk %}

Let’s looks at a sample code example of firebase cloud function which supports node.js function as services. In the example, we build a REST endpoint with node.js and express framework. **_The below code currently in production as a backend service for a mobile app_**.

<iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ed20259e5f6f21788941b81ebee8b62/href">https://medium.com/media/7ed20259e5f6f21788941b81ebee8b62/href</a></iframe>
### Serverless characteristics?

Serverless applications have a number of specific characteristics, including:

- Event-driven code execution with triggers
- The platform handles all the starting, stopping, and scaling chores
- Scales to zero, with low to no cost when idle
- Stateless

![](https://cdn-images-1.medium.com/max/752/1*LXu4oxILpYe6QSUM7j7ZOQ.jpeg)<figcaption><a href="https://spring.io/serverless">The Image from spring.io</a></figcaption>

List of Resources for Serverless platform for getting started

1. [https://aws.amazon.com/lambda/](https://aws.amazon.com/lambda/)
2. [https://firebase.google.com/docs/functions](https://firebase.google.com/docs/functions)
3. [https://spring.io/serverless](https://spring.io/serverless)
4. [https://azure.microsoft.com/en-in/services/functions/](https://azure.microsoft.com/en-in/services/functions/)

Thank you.
- [Rajdeep Das](https://twitter.com/rajdeepdevs)