VOOZH about

URL: https://thenewstack.io/cloudstate-is-lightbends-attempt-to-define-serverless-2-0/

⇱ Cloudstate Is Lightbend's Attempt to Define Serverless 2.0 - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-09-14 06:00:00
Cloudstate Is Lightbend's Attempt to Define Serverless 2.0
op-ed,profile,
Cloud Native Ecosystem / Frontend Development / Kubernetes / Serverless

Cloudstate Is Lightbend’s Attempt to Define Serverless 2.0

Cloudstate, launched last August by cloud native vendor Lightbend, aims to build a foundation for “Serverless 2.0” by adding stateful functions to the mix.
Sep 14th, 2020 6:00am by Richard MacManus
👁 Featued image for: Cloudstate Is Lightbend’s Attempt to Define Serverless 2.0
Richard MacManus
Richard is senior editor at The New Stack and writes a weekly column about what's next on the cloud native internet. Previously he founded ReadWriteWeb in 2003 and built it into one of the world’s most influential technology news and analysis sites.

Serverless has its limits; and chief among them is management of state. AWS Lambda is the dominant serverless platform currently and its functions are, by decree, stateless — meaning there can be no record of previous interactions in a Lambda function. But a relatively new open source project is hoping to change all that. Cloudstate, launched last August by cloud native vendor Lightbend, aims to build a foundation for “Serverless 2.0” by adding stateful functions to the mix.

I spoke to James Roper, a Cloud Architect at Lightbend and the technical lead of Cloudstate, about why stateful functions are needed — and why Lightbend has recently jumped on the serverless bandwagon.

At last month’s KubeCon, Roper accompanied Lightbend founder and CTO Jonas Bonér in a session about Cloudstate. In his opening presentation, Bonér said that serverless is more than just Functions as a Service (FaaS) — which, as the name suggests, is a service that allows users to easily execute functions. AWS Lambda is the original FaaS service, but Cloudstate wants to expand serverless well beyond what Lambda does. The goal of Cloudstate, said Bonér, is to enable the development of general-purpose applications — which includes stateful applications like online banking, e-commerce shopping carts, and messaging.

In my conversation a couple of weeks later with Roper, I asked him why a developer would want to build a stateful application using serverless? He replied that serverless is ultimately about reducing friction.

“If we think of Functions as a Service as being the first iteration of how do we remove this friction,” Roper explained, “the next iteration of that […] is to look at state management, and how to remove that friction; so that a developer can not only be productive on day one, but also producing production-ready code that will scale, that will be resilient, that will be elastic, [and] scale up and down according to their needs.”

Roper added that going beyond FaaS means handling the subtleties of state management too.

“When we talk about state we’re not just talking about state that gets persisted, we’re talking about state that gets coordinated — which could include session state.”

How the Cloudstate Approach Differs from FaaS

It should be noted that the FaaS serverless model doesn’t preclude using stateful data — it’s just that you have to do it by connecting to a database or another storage system. An AWS Lambda FAQ puts it this way:

“While AWS Lambda’s programming model is stateless, your code can access stateful data by calling other web services, such as Amazon S3 or Amazon DynamoDB.”

The main problem with this approach is that the application has to talk to the database or storage service, and that needs to be set up and configured by the developer. To borrow Roper’s terminology, this adds “friction” to the process of creating a stateful application. In the Cloudstate model, the application is no longer responsible for going back and forth to the database in order to manage state. That’s now handled by the Cloudstate protocol, which acts as a kind of middleman between the application and the data store. Here’s how the project’s documentation explains it:

“In a traditional n-tier architecture, one tier (an application tier) will invoke another tier (a database tier) to retrieve and manipulate its state. […] Cloudstate inverts this model. The application code does not call out to the state management system, the state management system calls out to the application code.”

To achieve this inversion, Cloudstate uses “state management proxies” and gRPC Remote Procedure Calls to communicate state. In the KubeCon session, Bonér used the following graphic to illustrate:

👁 Image

“The essence of the protocol approach to state management,” Bonér later clarified to me by email, “is that it is abstracting away (hiding and delegating) all the mechanics of managing the state to the backend, and leaves the user function/service to only have to care about the domain data itself — not how it is persisted, replicated, cached, made consistent, etc. Additionally, now since the backend is managing the state on behalf of all functions it can look more broadly, see general usage patterns, and optimize the data management across services (sharding, caching, batching, etc.).”

Lightbend Goes Serverless

Cloudstate was inspired by — and will be used in conjunction with — Knative, an open source serverless framework based on Kubernetes. Cloudstate is also going to be added to Lightbend’s product line, as a managed service. Roper described this strategy as “a bit of a pivot.”

“So historically we’ve had a bunch of open source projects that we’ve then sold a subscription to, that people run themselves,” he said. “Whereas Cloudstate is moving into the managed, hosted, selling a service, side of things.”

The key product for Lightbend currently is Akka, an open source project for building concurrent and distributed applications that runs on the JVM (Java Virtual Machine). Akka was created by Jonas Bonér in 2009 and became one of the founding technologies of Lightbend when the company launched in 2011 (then named Typesafe). Another founding technology of Lightbend was Scala, a popular Java-based programming language.

Cloudstate is the latest extension of the Akka platform. “Cloudstate is an open source project built on Akka that runs in Kubernetes,” explained Roper.

In one sense, Lightbend is jumping on the serverless gravy train here — the market for serverless is projected to grow by 22.7% per year for the next five years according to MarketandMarkets. Before the Cloudstate announcement last August, the word “serverless” wasn’t even mentioned on Lightbend’s homepage. But it’s now listed as one of the company’s core products, under the banner of Akka Serverless (which is the upcoming managed service version of Cloudstate).

But tackling the serverless market also makes sense technically for Lightbend, because one of the strengths of the Akka platform is its ability to manage state in a distributed system — something that, as noted above, is deficient in the FaaS paradigm. However, Akka is not necessarily easy to deploy. So making it a serverless platform will have benefits to Lightbend’s customers too.

As Roper explained it, the inspiration for Cloudstate came from a combination of the deployment challenges for Akka and the missing stateful functions piece in serverless platforms.

“There were a few things coming together,” said Roper. “One is we wanted to solve the problems of deployment of Akka and we saw [an] opportunity for Akka to be a really important piece in cloud technology. And we saw the gap in serverless.”

Will Cloudstate Get Take-up?

Cloudstate is an effort at standardizing stateful functions in serverless, so Lightbend will need to gather community support for it. I asked Roper if all the key players in the cloud native ecosystem are getting behind the Cloudstate project? He replied that they’ve been talking to people from Dapr (an open source event-driven runtime from Microsoft) and the companies behind Knative (including Google, VMware and Red Hat).

It remains to be seen whether momentum builds for the project; and it’s worth noting that there are alternative stateful serverless projects to choose from, such as Azure Durable Functions (based on Dapr) and RIFF. But it seems like Lightbend is committed to the serverless paradigm and has a lot of motivation to make its Serverless 2.0 vision stick — including that it strengthens Lightbend’s own core platform, Akka.

Lightbend, Amazon Web Services, Red Hat and VMware are sponsors of The New Stack.

Feature image via Pixabay.

At this time, The New Stack does not allow comments directly on this website. We invite all readers who wish to discuss a story to visit us on Twitter or Facebook. We also welcome your news tips and feedback via email: feedback@thenewstack.io.

TRENDING STORIES
Richard MacManus is a Senior Editor at The New Stack and writes about web and application development trends. Previously he founded ReadWriteWeb in 2003 and built it into one of the world’s most influential technology news sites. From the early...
Read more from Richard MacManus
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.