Serverless Blog
all
guides & tutorials
user stories
operations & observability
engineering culture
news

Introducing: the Serverless Open Runtime

written by  
  Jared Short

It’s time to get excited: AWS has just announced “Bring Your Own Runtime” (BYOR) for AWS Lambda.

While running your own languages has some pretty obvious benefits, we at Serverless, Inc want to take things to the next level. We see this as an opportunity to unlock more flexibility, organization and customization within your serverless runtimes and use cases—not just for AWS, but for any event-driven compute platform.

That is why we are releasing the Serverless Open Runtime!

Check it out now on GitHub, or keep reading for all the details.

The Serverless Open Runtime

The Serverless Open Runtime makes it simple to build and share common solutions to complex problems. Better yet, it makes it possible to solve these problems before they even get to your business logic.

This could mean capabilities like:

  • more graceful timeouts
  • the ability to transform AWS (or other provider-specific) events to CloudEvent spec or HTTP requests
  • more detailed tracing and debugging
  • middleware implementations in any language, compatible with your service regardless of the language you chose to use
  • prepackaging of common libraries
  • better local development experience and emulation
  • security implementations
  • or perhaps even running a sidecar for service discovery, managed by the runtime

What a list. And I’m sure there are many interesting and powerful use cases yet to be thought of.

How it works

This is all possible with the concept of middlewares and pluggable architecture to the Serverless Open Runtime.

With a pipelined approach to the event request/response lifecycle, it’s straightforward to build and integrate new capabilities. And if middleware is written as simple binaries, in many cases the middleware could be language-independent to increase reusability.

Here’s an example of a constructed runtime that leverages some request and response middleware examples (explanation below):

Serverless open runtime

The Open Runtime gets started when Lambda first receives a lambda execution request. It then actually fetches a request from the AWS Runtime API. This request is then processed by middlewares, by invoking them as executables and passing the event in via STDIN and reading the processed event back via STDOUT. It is then passed to the language specific runtime which invokes your handler code. The response is then processed by middlewares similarly to how they were invoked for the event.

These are just examples, and the capabilities of middleware extend well beyond them.

The important thing to note, is that the only thing you would have to worry about is Your Business Logic. The Serverless Open Runtime and it’s middlewares get out of you, the developer’s, way; you continue to focus on producing value for the business.

Why Serverless Open Runtime?

We see this initiative as joining the layerability and flexibility of containers, with the serverless promises of on-demand, event-driven compute. In sum: this is containers as they should be.

Of course, your environment and requirements are going to have many similarities with others. The Serverless Open Runtime will enable you to customize your serverless experience within your organization, while still remaining standardized.

Contribute to Serverless Open Runtime

The opportunity to do something great is here, and we are excited about what will be built on the Open Runtime concepts!

You can check out the github repository to learn more, and peep the initial drafts of source code. As always, the Serverless community is relentlessly innovative, and we are always open to your thoughts as we push forward on this new initiative.

More re:Invent news

About Jared Short

Jared Short is the Head of Developer Relations and Experience at Serverless, Inc.

 - 27.10.16

Introducing Serverless Office Hours

Join the Serverless team in our first edition of Office Hours for a live chat to answer all your questions about the latest release.

written by Stefanie Monge

user-stories - 22.09.16

Introducing Serverless Partners: Meet Parallax

Learn how Parallax built An Infinitely Scalable Online Recording Campaign For David Guetta & UEFA

written by Nick Gottlieb

Join 16,000 other developers and keep up to speed on the latest serverless news and releases.

Join 16,000 other developers and keep up to speed on the latest serverless news and releases.

Made with love in San Francisco + Atlanta, Austria, Germany, Pakistan, Poland, Nebraska & Thailand

Serverless, Inc. © 2018

Join our monthly newsletter to get the latest Serverless news, updates and happenings.