Skip to content

Ververica Cloud, a fully-managed cloud service for stream processing!

Learn more

Session Preview: Stateful Functions for Stateful Serverless Applications


by

Stateful Functions, Flink’s newest API and runtime, attempts to solve the problem of building rapidly scalable and resilient distributed stateful applications. Users implement polyglot event-driven functions that can be operated on FaaS solutions, harnessing the serverless benefits for applications such as elasticity and zero-downtime upgrades, all the while efficiently maintaining consistency and fault-tolerance for application state. To find out how Stateful Functions works and what makes the approach unique to application developers, join my session Stateful Functions: Polyglot Event-Driven Functions for Distributed Stateful Applications at the Virtual Flink Forward, April 23, and immerse yourself in the project’s latest advancement towards the world of Stateful Serverless and event-driven applications!

Stateful Functions: Polyglot Event-Driven Functions for Distributed Stateful Applications

Stateful Functions- Polyglot Event-Driven

Modern frameworks like Kubernetes and FaaS solutions, such as AWS Lambda and GCP Cloud Functions, have solved most of the challenges of dealing with stateless applications by providing management and operational benefits of serverless deployments. But for stateful applications, we are still struggling with the same issues of data consistency and complex failure semantics since a decade ago. This is rooted in the fact that we are still clinging to the ancient wisdom that state shall be someone else’s problem: just put it in a database! For complex stateful applications, we are still far away from the hassle-free experience of stateless applications.

Stateful Functions 2.0, Apache Flink’s newest API and runtime, attempts to bridge that gap by supporting standalone deployments of functions on serverless solutions, external to the Flink cluster. In this setup, Flink takes the role of an “event-driven database” that handles dynamic and arbitrary messaging between functions and state consistency in a fault tolerant way, while the functions that build up the application logic exist as separate stateless (micro-)services invoked by Flink. These functions simply implement a well-defined request/reply invocation protocol using any language that can set up an HTTP server.

Topics covered

This talk aims at going through the following topics:

  • Developing a Stateful Functions application: We will do a thorough walkthrough on developing a distributed stateful application with Stateful Functions. This will include a look at the different language SDKs and how to deploy these applications.

  • Seeing stateful serverless in action: One of the most exciting features of the 2.0 release is how the new runtime works seamlessly with FaaS platforms to enable stateful serverless deployments. You’ll get to see this in action in this talk with a demo implemented using Stateful Functions and AWS Lambda!

  • Deep dive into the runtime internals: Join in on a technical deep dive into a look under the hood. What are the key design principles of the runtime? How does the runtime support running an infinite number of function instances? How are the strong consistency semantics and fault-tolerance achieved?

Key takeaways

  • Have a good grip on the core building blocks provided for developing Stateful Functions applications, so that you may start developing your own! This also applies to developers without knowledge of Apache Flink.

  • A good understanding of the runtime and how it runs on top of Apache Flink. With knowledge of the internals and design principles, you should have a better picture of the key benefits provided by Stateful Functions.

We look forward to sharing how the Stateful Functions runtime works and showcasing how you can build a Stateful Functions application using the newly-introduced framework to the Apache Flink project. If you want to get familiar with Stateful Functions and learn more about the ins-and-outs of the technology, make sure to register for the Virtual event on April 22-24.

New call-to-action

New call-to-action

New call-to-action

Topics:
Tzu-Li (Gordon) Tai
Article by:

Tzu-Li (Gordon) Tai

Find me on:

Comments

Our Latest Blogs

Q&A with Erik de Nooij: Insights into Apache Flink and the Future of Streaming Data featured image
by Kaye Lincoln 09 April 2024

Q&A with Erik de Nooij: Insights into Apache Flink and the Future of Streaming Data

Ververica is proud to host the Flink Forward conferences, uniting Apache Flink® and streaming data communities. Each year we nominate a Program Chair to select a broad range of Program Committee...
Read More
Ververica donates Flink CDC - Empowering Real-Time Data Integration for the Community featured image
by Ververica 03 April 2024

Ververica donates Flink CDC - Empowering Real-Time Data Integration for the Community

Ververica has officially donated Flink Change Data Capture (CDC) to the Apache Software Foundation. In this blog, we’ll explore the significance of this milestone, and how it positions Flink CDC as a...
Read More
Announcing the Release of Apache Flink 1.19 featured image
by Lincoln Lee 18 March 2024

Announcing the Release of Apache Flink 1.19

The Apache Flink PMC is pleased to announce the release of Apache Flink 1.19.0. As usual, we are looking at a packed release with a wide variety of improvements and new features. Overall, 162 people...
Read More