4 Pulsar Functions
This chapter covers
- Introduction to the Pulsar Functions framework
- The Pulsar Functions programming model and API
- Writing your first Pulsar Function in Java
- Configuring, submitting, and monitoring a Pulsar Function
In our previous chapter, we started to see how you can work with Pulsar using some of the various client libraries. In this chapter we will look at a stream native processing engine known as Pulsar Functions that makes the development of Pulsar-based applications much simpler. This lightweight processing framework automatically handles a lot of the boilerplate coding required to setup Pulsar consumers and producers, allowing you to focus on the processing logic itself rather than the consumption and processing of the messages.
4.1 Stream Native Processing
Included with Apache Pulsar is a lightweight computing engine named “Pulsar Functions” which allows developers to deploy a simple function implementation in Java or Python. This feature allows users to enjoy the benefits of serverless computing, similar to AWS Lambda computing within an open-source messaging platform without being tied to a proprietary cloud providers API.