Backend-as-a-Service. Scalable architecture without… | by Henrik Larsen Toft | May, 2022

Scalable structure with out Kubernetes

Macbook and other gadgets on a desk
Picture by AltumCode on Unsplash

In the course of the previous couple of years, Docker has turn out to be an extremely common manner of constructing, delivery, and working functions within the cloud. Lengthy gone are the times after we needed to fear about server configuration and variations between environments. Simply construct the appliance as soon as and run it wherever! That is the period of containers.

Though containers are a large leap ahead in how we construct and ship functions they’re nonetheless troublesome to handle at massive scales. Again in 2014 Google created Kubernetes to unravel the issues they’d when working 1000’s of containerized workloads all around the world. Since then, Kubernetes has turn out to be the de facto customary on how we deploy and function containerized functions.

Regardless that Kubernetes is a good software, it nonetheless requires fairly a little bit of effort to setup correctly. With Kubernetes, you continue to must handle your individual infrastructure. And perhaps you don’t even want it and by no means will. At the least not in case you are a small startup with restricted assets and care extra about time to market.

As well as, constructing a top quality backend with all of the bells and whistles wanted for contemporary software growth will be very expensive.

What if I advised you that you would get a billion-dollar price of backend for the worth of lower than a greenback? An virtually infinitely scalable backend that might deal with 1000’s of requests per second with an SLA of +99.9%. A backend with options reminiscent of dwell notifications, GraphQL, role-based entry management, built-in OAuth assist, and extra. Would you think about it?

Properly, because it seems you’ll be able to. You see, most backends for apps on net & cellular require a really related set of options, reminiscent of:

  • Authorization
  • Enter validation
  • Enterprise logic
  • Storage / DB
  • Occasions / webhooks


A lot of the above will be generalized and already has been, apart from the enterprise logic after all. That is what’s known as Backend-as-a-Service, or BaaS for brief. There are a number of suppliers of BaaS options which have come actually far already, reminiscent of Google Firebase and MongoDB Realm which each provide a really wealthy set of options in addition to developer pleasant instruments for establishing data-models and configuration. Each these suppliers are comparatively low-cost, particularly when in comparison with working your individual k8s cluster and the price of having your individual dev-ops workforce. You usually solely pay for what you utilize on a per-request-basis and there’s often a beneficiant free-quota.

One query nonetheless stays although, how do you implement enterprise logic in a BaaS atmosphere?


With serverless, it is possible for you to to deal with enterprise logic and computations in a versatile and scalable manner with out having to fret about managing infrastructure and servers.

Serverless doesn’t imply «no-servers», it means «no servers so that you can handle».

Serverless can be nice for breaking apart monoliths whereas additionally offering a greater separation of concern. A typical serverless operate solely solves a single well-defined downside. Serverless capabilities are stateless, a black field that takes an enter and yield some output.

Operating serverless capabilities are often low-cost. You solely pay for what you utilize. Nonetheless, it may be costlier than working your individual companies you probably have constantly excessive load and restricted peak load.

So, in case you are available in the market for a scalable and have wealthy backend that matches these criterias don’t create your individual except you suppose you are able to do higher than the likes of MongoDB and Google. Take a look at BaaS as an alternative.

The one actual motive to not is the seller lock-in. When you determine on a vendor there isn’t any turning again. All distributors have particular implementations and there no easy manner of migrating options between totally different distributors.

Although Kubernetes is nice, it’s not essentially one thing all companies want. At the least not one thing you’ll want to handle yourselves. Most BaaS distributors run Kubernetes behind the scenes anyway.

Please take a look at Google Firebase and MongoDB Realm should you can dwell with the seller lock-in and don’t care about managing your individual infrastructure.

I’ve made a small app with MongoDB Actual, please test it out in case you are all for studying extra about Backend-as-a-Service.

MongoDB Realm example

More Posts