Slide 1

Slide 1 text

Guilherme H. Caponetto Streaming decisions with DMN and Kafka Software Engineer Business Automation @ Red Hat bit.ly/caponetto

Slide 2

Slide 2 text

What is this presentation about? 2

Slide 3

Slide 3 text

Content Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox 3

Slide 4

Slide 4 text

Content Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka 4

Slide 5

Slide 5 text

Content Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka How to connect them both with DMN 5 learn-dmn-in-15-minutes.com

Slide 6

Slide 6 text

Content Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka brief introduction How to connect them both with DMN 6 learn-dmn-in-15-minutes.com

Slide 7

Slide 7 text

Content Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka How to connect them both with DMN cool demo 7 brief introduction learn-dmn-in-15-minutes.com

Slide 8

Slide 8 text

Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox 8

Slide 9

Slide 9 text

Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox during this presentation 9

Slide 10

Slide 10 text

Developer Sandbox for Red Hat OpenShift “The sandbox provides you with a private OpenShift environment in a shared, multi-tenant OpenShift cluster that is pre-configured with a set of developer tools. You can easily create containers from your source code or Dockerfile, build new applications using the samples and stacks provided, add services such as databases from our templates catalog, deploy Helm charts, and much more.” red.ht/dev-sandbox during this presentation 10

Slide 11

Slide 11 text

Developer Sandbox for Red Hat OpenShift red.ht/dev-sandbox during this presentation 11

Slide 12

Slide 12 text

Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka 12

Slide 13

Slide 13 text

Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka during this presentation 13

Slide 14

Slide 14 text

Red Hat OpenShift Streams for Apache Kafka red.ht/tryKafka during this presentation “As a fully-managed and hosted Kafka service, Red Hat OpenShift Streams for Apache Kafka enables developers to focus on building better applications more quickly, without having to worry about the underlying requirements of data collection and processing.” 14 “Based on the open source Apache Kafka project, Red Hat OpenShift Streams for Apache Kafka enables development teams to more easily incorporate streaming data into their applications.” (reference) development preview

Slide 15

Slide 15 text

Demo

Slide 16

Slide 16 text

Goals 1. Show around the Sandbox and Kafka 2. Integrate them both with DMN 3. Do not require anything installed 16

Slide 17

Slide 17 text

1. Show around the Sandbox and Kafka 2. Integrate them both with DMN 3. Do not require anything installed Goals reason for you to try it out today! 17

Slide 18

Slide 18 text

A summary of our demo Sandbox Kafka 18 caponetto/streaming-dmn-kafka

Slide 19

Slide 19 text

A summary of our demo Producer Consumer Sandbox Kafka 19 caponetto/streaming-dmn-kafka

Slide 20

Slide 20 text

A summary of our demo Producer Consumer deploy Kafka Sandbox Producer Consumer 20 caponetto/streaming-dmn-kafka loosely-coupled services

Slide 21

Slide 21 text

A summary of our demo Producer Consumer deploy events with decision inputs Kafka Sandbox Producer Consumer 21 caponetto/streaming-dmn-kafka loosely-coupled services

Slide 22

Slide 22 text

A summary of our demo Producer Consumer deploy Kafka event stream Sandbox Producer Consumer 22 caponetto/streaming-dmn-kafka events with decision inputs loosely-coupled services

Slide 23

Slide 23 text

A summary of our demo Producer Consumer deploy Kafka event stream decision evaluation Sandbox Producer Consumer 23 caponetto/streaming-dmn-kafka events with decision inputs loosely-coupled services

Slide 24

Slide 24 text

A summary of our demo a closer look 24

Slide 25

Slide 25 text

A summary of our demo a closer look Let’s inspect our DMN 25 caponetto/streaming-dmn-kafka Traffic Violation.dmn

Slide 26

Slide 26 text

A summary of our demo a closer look Producer Send cloud events every x seconds to a particular topic. The payload contains decision inputs. Some of the inputs are randomly generated. 1 … n 26

Slide 27

Slide 27 text

A summary of our demo a closer look Producer Send cloud events every x seconds to a particular topic. The payload contains decision inputs. Some of the inputs are randomly generated. Payload example taken from this repository. 1 … n 27 Driver and Violation data

Slide 28

Slide 28 text

A summary of our demo a closer look Consumer Receive cloud events from the subscribed topic. Include the Traffic Violation decision model. Using Kogito, evaluate the decision. 1 … n 28

Slide 29

Slide 29 text

A summary of our demo a closer look Consumer Receive cloud events from the subscribed topic. Include the Traffic Violation decision model. Using Kogito, evaluate the decision. Payload example taken from this repository. 1 … n 29 Fine data and whether or not the driver should be suspended

Slide 30

Slide 30 text

30 BOOTSTRAP_SERVER CLIENT_ID CLIENT_SECRET OAUTH_TOKEN_ENDPOINT_URI TOPIC A summary of our demo a closer look environment variables needed to connect with our Kafka instance

Slide 31

Slide 31 text

It’s hands-on time!

Slide 32

Slide 32 text

32 Final Remarks

Slide 33

Slide 33 text

Additional references 33 ● Event-driven decisions with Kogito ● Introducing Red Hat OpenShift Streams for Apache Kafka ● Sending and Receiving Cloud Events with Kafka ● Learn Quarkus faster with quick starts in the Developer Sandbox for Red Hat OpenShift

Slide 34

Slide 34 text

Thank you!

Slide 35

Slide 35 text

developers.redhat.com/register