Serverless? Containers? How about something new?

Get a modern and flexible infrastructure that deploys running, usable servers in seconds, eliminates unnecessary code build times and context switching during reviews while maintaining full scalability.

May 12, 2023 5 Min Read
Serverless? Containers? How about something new?
Serverless? Containers? How about something new?

Codesphere

From everyone in the Codesphere Team:)

Table of Contents

Recently Amazon made headlines among developers. They published an article, outlining why they are ditching their serverless AWS services in favor of a monolithic infrastructure. The headline that this switch will reduce their cloud bill by 90% propelled the article into a viral wave, sparking heavy discussions on the future of serverless infrastructure setups.

This move comes as a surprise to some, after-all Amazonā€™s own AWS has been a strong proponent and first mover of serverless with the introduction of Lambda functions in 2014.

At Codesphere, we have been pointing out the limitations of serverless for a while now. Instead we believe in making cloud, including complex container landscapes as easy and fast to setup as serverless. Innovation in this field requires deep access, therefore we built low level kubernetes container services from scratch - the benefits are immense but more on that later.

In theory, serverless functions should allow you to scale effortlessly even at scale. Serverless apps still have servers in the background, but the developers do not need to concern themselves with capacity planning, configuration or maintenance of these servers. When an app doesnā€™t use resources the cloud provider also doesnā€™t allocate any cluster resources and charges nothing. Users only pay for what they really use.

Sounds like it's too good to be true? Not quite but still true somehow. But one thing at a time, the popularity of this approach has hit all-time highs in recent years. There is a whole industry of startups whose USP basically is to make AWS serverless resources easier to use. One popular example would be Vercel. The allure of running and scaling any Javascript application within seconds, and without any DevOps effort is appealing for both smaller teams, individual hobby developers and corporates alike. Complete with comfortable real-time collaboration features web development suddenly seems like it has gotten a lot easier than it used to be.

For many use cases that promise actually comes through. A lot of hassle can be avoided without sacrificing scalability. However as the Amazon Prime example shows this can come at quite a cost, up to a point where it is no longer feasible to maintain. In their blog article, Amazon Prime Video outlined that their initial infrastructure design for the prime video/audio monitoring service was to have many smaller, distributed, serverless functions (mainly AWS step functions and Lambda functions) that can scale individually. They concede the main reason for this decision was the fast setup compared to alternatives. As it turns out, the scalability was not as smooth as expected, they hit a hard scaling limit at 5% of the expected load capacity. On top, because you are charged by state change, orchestration and data moving between the distributed components made the entire system majorly expensive.

Their article outlines how switching to a ā€œmonolithicā€ infrastructure (everything runs within one AWS EC2 container) reduced their cloud spend by 90%. You might consider this transparency surprising, especially because thatā€™s 90% off their spend on AWS services. Amazon saves money by spending less on Amazon services (Iā€™m sure the irony is not lost to anyone here šŸ˜€).

There has been some debate on whether the new infrastructure should actually be called monolithic but since there is plenty of content on that out there, letā€™s move on to a more general point here. Does this mean any project that needs to work at scale needs to go back to month long infrastructure planning, hiring expensive DevOps engineers to configure and maintain containers and worry about provisioning enough capacity beforehand?

Not necessarily. We are arguing there is a third solution. Just like the Vercelā€™s of this world who made using AWS serverless functions much easier by standardizing configuration and embedding everything you need for efficient development and operations into a user friendly UI there is an opportunity to do just that for the container infrastructure approach. What might sound like a distant fantasy to some or like a limiting and claustrophobic nightmare like Heroku containers to others is already available for many use cases.

Codesphere provides a modern and flexible infrastructure (built on bare metal instead of reselling cluttered AWS instances) that deploys running, usable servers in seconds with zero configuration, embedded in an environment optimized to improve your team's workflow, while maintaining full scalability. To be fair, there are still some features missing in order to run very complex landscapes with full global auto scaling ability from the UI but we are close. Most use cases can already be handled and the rest will follow later this year. The best thing about it? You can get started for free, no commitment, host up to 3 smaller projects free forever and pay only as you grow.

Zero config cloud made for developers

From GitHub to deployment in under 5 seconds.

Sign Up!

Review Faster by spawning fast Preview Environments for every Pull Request.

AB Test anything from individual components to entire user experiences.

Scale globally as easy as you would with serverless but without all the limitations.

In time the entire software development process will move into the cloud, just like Figma managed to move the design process into the cloud. Making the cloud development experience as good as local is hard, but if that can be achieved the opportunity for improvement is open ended - imagine reducing your build times by 10x or more by allocating flexible cloud resources where they are needed most, more powerful code completion, no more context switching during reviews, instant deployments and much more. Codesphere already achieves much of that for reviews, through near instant preview deployments and a connected cloud IDE for reviews - but of course we are just getting started.


About the Author

Serverless? Containers? How about something new?

Codesphere

From everyone in the Codesphere Team:)

We are building the next generation of Cloud, combining Infrastructure and IDE in one place, enabling a seamless DevEx and eliminating the need for DevOps specialists.

More Posts

Cloud Native Meetup Recap

Cloud Native Meetup Recap

Karlsruhe offers a vibrant tech scene and we are proud to be part of a group organizing expert & community meetups like this one.

Full Metal

Full Metal

Buying a used server on ebay kleinanzeigen and preparing it to be cloudified? Follow along to see what it takes to get a piece of metal running.