Serverless, MVP of Your Project

First of all, what is Serverless?

Serverless, don’t misunderstand it as not using a server at all, instead, Serverless is a concept that lets the cloud provider(AWS, GCP, Azure, etc) execute our piece of code and dynamically allocating the resource. the reason why it’s much cheaper than deploying our monolith into a traditional server is, we will be only charged when the resource is used, and if not, the resource will be in an idle state and not cost you at all.

Backend as a Service and Functions as a service for your Serverless Architecture

In short explanation, Serverless Architecture or FaaS is to build and run our application without managing the servers at all and just focus on the business. because our goals are to make our products go into the market as fast as possible, then we need the right service for our serverless architecture. as we know, the standard requirement for the backend in many projects was able to authenticate users and storing, serving some metadata. for that we will be using BaaS, there are many BaaS that we can use, and the short description of BaaS is, BaaS is a service that providing the standard requirement for our project so we don’t need to create our backend from scratch again :). Also because Serverless Architecture is an architecture that lets us just focus on the business and forget the pain of managing the server, in my personal opinion, BaaS is also can be considered the way to implement this architecture.

Serverless Architecture in my PPL Project

In my projects, because of the requirement and also the tight deadline that we have, we decide to adopt Serverless Architecture so we can focus on building the client-side, which is the side our client cares about and want to know the progress every sprint. We are using Firebase as our BaaS and when we need something that not provided by firebase by default, then we can using the cloud function which is the implementation of the FaaS.

Important Note

when using Serverless Architecture, we know that Serverless Architecture is very easy and fast to build (when we know the concept) and very cheap, and also auto-scale, but don’t you think this is just too good to be true? well, it depends on your project requirement. because we know that serverless architecture is very good to be used for MVP, and when your app getting bigger and bigger, serverless architecture might give you much cost than microservice, so you need to be sure is your project is a good fit for this architecture. in my PPL project, there is one key reason why we decide to adopt serverless architecture. we know that our client will not always be using the app, and the app will just be used at a certain time, and most of the time the traffic will be very small or maybe no traffic at all, but in certain time the traffic will be high. because of this, we think serverless is a very good approach because our client will not need to pay for the servers when the app is having very small approaching null traffic, and just billed when the traffic is high. it’s will be a different story when our assumptions are wrong and the app is always having high traffic. if this happens then migration to monolith or microservice is recommended. The point is because our project requirement is similar to when startup creating MVP for their product and getting advice from their users, so that’s why we adopt this architecture.




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store