"Kafka Connect is the highway to our central nervous system for streaming data into Kafka. This highway has allowed us to connect hundreds of external services without the need to write code for each individual integration. Kafka Connect is based on the concept of having Connectors and tasks that do the work for us. There’s two fundamental questions that come up when it comes to our highway:
• How is this highway made? How are connectors created/started?
• How do we make sure there’s no traffic jams? Also known as,
• How are connectors evenly distributed across nodes?
In this presentation, we will answer the above questions and cover the following topics:
• Breaking down how a Connector/task is created
• Breaking down each Kafka Connect protocol(eager, compatible, sessioned)
• Walk through rebalances for each protocol
• Pros/cons of each protocol"
Deep Dive into Kafka Connect Protocol with Catalin Pop
1. Deep Dive in Connect Protocol
@cdpop_
Catalin Pop
2. ❏ High level overview of Connect
❏ Breaking down creation of Connectors
❏ Breaking down Connect Protocols
❏ Walk through rebalance
❏ Pros/Cons of each protocol
@cdpop_
12. ✓ High level overview of Connect
❏ Breaking down creation of Connectors
❏ Breaking down Connect Protocols
❏ Walk through rebalance
❏ Pros/Cons of each protocol
@cdpop_
37. ✓ High level overview of Connect
✓ Breaking down creation of Connectors
❏ Breaking down Connect Protocols
❏ Walk through rebalance
❏ Pros/Cons of each protocol
@cdpop_
@cdpop_
41. Compatible Protocol
● Revoke connectors when the worker left the group or connector/task change
● Generate connector assignment only for the revoked connectors
● Send Connector assignment to queue
● Workers pickup assignment
● Start assigned connectors
@cdpop_
42. Sessioned Protocol
● Setup Session key for encrypted authentication
● Revoke connectors when the worker left the group or connector/task change
● Generate connector assignment only for the revoked connectors
● Send Connector assignment to queue
● Workers pickup assignment
● Start assigned connectors
@cdpop_
43. ✓ High level overview of Connect
✓ Breaking down creation of Connectors
✓ Breaking down Connect Protocols
❏ Walk through rebalance
❏ Pros/Cons of each protocol
@cdpop_
66. ✓ High level overview of Connect
✓ Breaking down creation of Connectors
✓ Breaking down Connect Protocols
✓ Walk through rebalance
❏ Pros/Cons of each protocol
@cdpop_
69. Pros/Cons of protocols
Eager
Pro
Evenly
distributed
Con
Not secured
Stops all
connectors
Sessioned
Pro
Secure
Incremental
rebalance
Con
Uneven
distribution
Compatible
Pro
Incremental
rebalance
Con
Not secured
Uneven
distribution
@cdpop_