Slide 1

Slide 1 text

1 Tips & Tricks for Apache Kafka in the Cloud for Java Developers Ricardo Ferreira, Developer Advocate @riferrei

Slide 2

Slide 2 text

2 About me: ● Hi, my name is Ricardo Ferreira ● Developer Advocate @ Confluent ● Ex-Oracle, Red Hat, IONA Tech ● Currently ~70% Dev, ~30% Ops ● https://riferrei.net @riferrei

Slide 3

Slide 3 text

3 #1 Managed Kafka Services ● Kafka is a fine proven technology ● People don’t know/care internals ● Human labor is often too costly ● Install-patch-monitor-scale repeat ● Build applications, not clusters! @riferrei https://www.confluent.io/confluent-cloud

Slide 4

Slide 4 text

4 Let's create a cluster 1. Log in to the Confluent Cloud UI 2. Create a new cluster on-the-fly 3. Swap the credit card. That is it! @riferrei https://confluent.cloud

Slide 5

Slide 5 text

5 #2 Kafka Streams and KSQL ● Create stream processing apps ● Data computation outside Kafka ● Same partitioning/scaling model ● Complex pipelines using filters, aggregations, windows & more. ● Flavors: Java, Scala and KSQL @riferrei https://kafka.apache.org/documentation/ streams https://www.confluent.io/product/ksql

Slide 6

Slide 6 text

6 Getting Number Three 1. Open the URL with your phone 2. Enter your name or nickname 3. Try to perfectly position the dice on number three: -180 | 0 | 180 https://bit.ly/2zCjHG8 @riferrei

Slide 7

Slide 7 text

7 #3 Kafka Connect API ● Moving data in-and-out is hard ● +75 connectors currently available ● Integrated with Schema Registry ● CDC via Red Hat's Debezium ● Domain code is you, let the rest on us: Serialization, Partitioning, Fault-Tolerance, Schema Mgmt. @riferrei http://kafka.apache.org/documentation.ht ml#connect https://docs.confluent.io/current/connect /quickstart.html https://debezium.io

Slide 8

Slide 8 text

8 The Song Is... 1. Access your Twitter account 2. Tweet something as shown in the example below. Make sure you use @kcjug or #KansasCityJUG https://twitter.com @riferrei

Slide 9

Slide 9 text

9 #4 Distributed Tracing ● Monitor distributed transactions ● Glue your Java code with Kafka ● Trace producers and consumers ● Decorators and Interceptors API ● Trace Kafka services such as REST Proxy, Connect and KSQL @riferrei https://github.com/opentracing-contrib/java- kafka-client https://github.com/riferrei/jaeger-tracing- support

Slide 10

Slide 10 text

10 #5 Infrastructure-as-Code ● Create immutable infrastructure ● Detect and handle all changes ● Build your Java code on-the-fly ● Connect with Cloud automatically ● Blend Kafka services with infra @riferrei https://github.com/confluentinc/ccloud- tools https://docs.confluent.io/current/cloud/to ols.html https://www.terraform.io

Slide 11

Slide 11 text

11 11 Free Books by Confluent: https://www.confluent.io/apache-kafka-stream-processing-book-bundle

Slide 12

Slide 12 text

12 Please Stay in Touch: @riferrei riferrei riferrei [email protected] https://riferrei.net https://cnfl.io/slack

Slide 13

Slide 13 text

13