chapter eight

8 Pulsar Function Patterns

 

This chapter covers:

  • Designing an application based on Pulsar Functions.
  • Implementing well-established messaging patterns using Pulsar Functions.

In the previous chapter I introduced a hypothetical food delivery service named GottaEat and outlined the basic order entry use case in which customers place orders with the company’s mobile application. As you may recall, the first microservice in that process was the OrderValidationService which is responsible for ensuring that the order is valid before forwarding the order to the drivers for delivery if it was valid or notifying the customer of any errors with the order.

8.1   Data Pipelines

8.1.1   Procedural Programming

8.1.2   DataFlow Programming

8.2   Message Routing Patterns

8.2.1   Splitter

8.2.2   Dynamic Router

8.2.3   Content Based Router

8.3   Message Transformation Patterns

8.3.1   Message Translator

8.3.2   Content Enricher

8.3.3   Content Filter

8.4   Summary