SlideShare a Scribd company logo
1 of 43
Building a Secure, Tamper-Proof & Scalable
Blockchain on Top of Apache Kafka
Kai Waehner
Technology Evangelist
Confluent
kai.waehner@confluent.io
LinkedIn
@KaiWaehner
confluent.io
kai-waehner.de
Stephen Reed
CEO, Co-founder
AiB
stephen@ai-blockchain.com
LinkedIn
ai-blockchain.com
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
1. Use Cases for Secure and Tamper-Proof Data Processing
2. Distributed Ledger and Blockchain Technologies
3. Event Streaming with Apache Kafka
4. Relation between Kafka and Blockchain
5. A Tamper-Proof Blockchain implemented with Kafka
6. Live Demo
Agenda
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Blockchain for Supply Chain Management
(Manufacturing, Logistics, …)
3
https://coletiv.com/blog/blockchain-supply-chain-management-system/
https://www.disruptordaily.com/blockchain-use-cases-supply-chain-management/
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Blockchain in Healthcare
4
• Use Cases
• Management of patient data, especially
access control
• RVU Agreements with Ai-Blockchain
• Management and use of academic research
data
• Logistics / Supply chain for drugs, medical
technology, and other products
• Often no need for Blockchain /
DLT
• Only for Identity
Management
• Processing and (big) data storage outside
blockchain
https://digiforest.io/en/blog/blockchain-examples-in-healthcare
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Blockchain for
Financial Services
5
https://www.accenture.com/t20170120T074124Z__w__/us-en/_acnmedia/Accenture/Conversion-Assets/DotCom/Documents/Global/PDF/Consulting/Accenture-Banking-on-Blockchain.pdf%23zoom=50
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
1. Use Cases for Secure and Tamper-Proof Data Processing
2. Distributed Ledger and Blockchain Technologies
3. Event Streaming with Apache Kafka
4. Relation between Kafka and Blockchain
5. A Tamper-Proof Blockchain implemented with Kafka
6. Live Demo
Agenda
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Bitcoin – The Tip of the Iceberg!
7
‘Bitcoin’ compared to
‘blockchain’, ‘distributed
ledger’, etc.
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Blockchain vs. Distributed Ledger Technology (DLT)
8
https://www.da.ventures/post/gaining-clarity-on-key-terminology-bitcoin-versus-blockchain-versus-distributed-ledger-technology
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Blockchain Concepts
• Permissionless or permissioned (or consortium)
• Consensus algorithm (Proof of work, Proof of Stake, or Voting systems)
• Blockchain: Global Consensus across all nodes
• DLT: Consensus without having to validate across the entire Blockchain
• Blockchain
• Growing list of records, called blocks, linked using cryptography
• Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data
11
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Challenges and Concerns of Blockchains
• Technical and organizational
complexity
• Transaction speed and
scalability
• Energy consumption
• Security
• Data tenancy
• Lifecycle costs
• Ease of integration
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Purpose-built solutions
• Ripple: Payment settling, currency exchange and remittance system
• Libra: Global payment system and financial infrastructure
• IOTA: IoT transactions
Non-Blockchain DLTs
to solve the challenges to provide better performance and scalability
13
Open and flexible solution for many use cases
• Apache Kafka: Open, scalable, real time event
streaming
Technology Partners
• Ai-Blockchain: “AiB”
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
1. Use Cases for Secure and Tamper-Proof Data Processing
2. Distributed Ledger and Blockchain Technologies
3. Event Streaming with Apache Kafka
4. Relation between Kafka and Blockchain
5. A Tamper-Proof Blockchain implemented with Kafka
6. Live Demo
Agenda
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Event Streaming in the Finance Industry
Check past Kafka Summit videos for details about the use cases:
https://kafka-summit.org/past-events/
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Tamper-Proof Event Streaming for
(some of the) Use Cases in the Finance Industry
Real Time Processing Digital Transformation Strategic Goals
Short-Sale Risk Calculation
/ Trade Approval
Mainframe Offloading
and Replacement
Instant Payment
Next-Best
Offer
Robot Process Automation
(e.g. Know Your Customer, KYC)
Customer Service
(e.g. Chat Bots)
IT
ModernizationRegulatory
Reporting
Fraud Detection
Anomaly Detection
Across Assets and Locations
Derivatives
Pricing Compliance
Trading Post-
Processing
Strategic
Planning and
Simulations
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
STREAM
PROCESSING
Create and store
materialized views
Filter
Analyze in-flight
Time
C CC
Event Streaming
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Event Streaming Platform –
The Immutable Commit Log
Time
P
C1 C2
C3
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Event Streaming Platform –
A Distributed System for 24/7 and Zero Data Loss
Broker 1
Topic1
partition1
Broker 2 Broker 3 Broker 4
Topic1
partition1
Topic1
partition1
Leader Follower
Topic1
partition2
Topic1
partition2
Topic1
partition2
Topic1
partition3
Topic1
partition4
Topic1
partition3
Topic1
partition3
Topic1
partition4
Topic1
partition4
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
An Event Streaming Platform
is the Underpinning of an Event-driven Architecture
Microservices
Mainframes
SaaS apps
Mobile
Customer 360
Real-time fraud
detection
Data warehouse
Producers
Consumers
Database
change
Microservices
events
SaaS
data
Customer
experiences
Streams of real time events
Stream processing apps
Connectors
Connectors
Stream processing apps
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Kafka Connect
with Ethereum Connector
Kafka Cluster
Blockchain
Integration
Domain-Driven Design and Decoupled Applications
Legacy
Integration
Custom
Application
ETL Tool
with Mainframe Connector
Java / C++ /
Go / Python / KSQL
Schema
Registry
Event Streaming Platform
Blockchain Domain Payment Domain Fraud Domain
Audit Logs,
RBAC, etc.
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Reasons for Event Streaming with Apache Kafka
Real Time
Scalable
High Throughput
Cost Reduction
24/7 – Zero downtime, zero data loss
Decoupling – Storage, Domain-driven Design
Data (re-)processing and stateful client applications
Integration – Connectivity to IoT, legacy, big data, everything
Hybrid Architecture – On Premises, multi cloud, edge computing
Fully managed cloud
No vendor locking
24
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Kafka Clusters
can stretch over
Regions
Zero Downtime + Zero Data loss
(RPO=0 and RTO=0)
e.g. Stretched over US East + Mid +
West
Automate Disaster Recovery
Sync or Async Replication per Topic
Offset Preserving
Automated Client Failover without
Custom Code
Multi-Region Cluster
(Only available in Confluent Platform)
26
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Example of a Multi-Region Cluster in a Bank
Large FinServ Customer
Payment
Log
Payment
Log
Location Location
synchronous
asynchronous
● ‘Payment’ transactions enter
from us-east and us-west with
fully synchronous replication
● ‘Log’ and ‘Location’ information
in the same cluster use async -
optimized for latency
● Automated disaster recovery
(zero downtime, zero data loss)
Result: Clearing time from ‘deposit’ to
‘available’ goes from 5 days to 5 seconds
(including security checks)
(Only available in Confluent Platform)
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
1. Use Cases for Secure and Tamper-Proof Data Processing
2. Distributed Ledger and Blockchain Technologies
3. Event Streaming with Apache Kafka
4. Relation between Kafka and Blockchain
5. A Tamper-Proof Blockchain implemented with Kafka
6. Live Demo
Agenda
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Real-time
High Throughput
Decentralized database
Distributed log of records
Immutable log
Replication
High availability
Decoupling of applications / clients
Role-based access control to data
Tamper-Proof
Encrypted payloads
Deployment over independent organizations
is not a Blockchain!
X
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Kafka AND Blockchain
32
Kafka
Real Time
Instant Payment
App
(Java, C++,
Python, etc.)
Batch
Analytics Platform
(Spark, Splunk,
etc.)
Blockchain
(Bitcoin)
Blockchain
(Ethereum)
Kafka-native
Blockchain
Kafka AS Blockchain
Real Time
Instant Payment
App
(Java, C++,
Python, etc.)
Batch
Analytics Platform
(Spark, Splunk,
etc.)
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Kafka AND Blockchain:
Financial services platform
combining Kafka and Blockchains
• Provides the speed and convenience of
traditional exchanges and the security of
non-custodial approaches.
• Invest in, make payments with and trade
Bitcoin, Ethereum, NEO, and other digital
assets.
• The exchange is the first of its kind, offering
non-custodial cross-chain trading with the
full power of a real order book
• Deterministic replayability in its exact order
at any time
33
https://community.nash.io/t/first-of-its-kind-non-custodial-exchange-using-confluent-cloud/8254
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Kafka AS Blockchain:
Consensus algorithm
in Hyperledger Fabric
using Kafka to be fault tolerant,
highly scalable and performant
34
https://hyperledger-fabric.readthedocs.io/en/release-2.0/kafka.html
https://www.meetup.com/Dubai-Kafka/events/268001616/ (presented by Farrukh Munir)
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
1. Use Cases for Secure and Tamper-Proof Data Processing
2. Distributed Ledger and Blockchain Technologies
3. Event Streaming with Apache Kafka
4. Relation between Kafka and Blockchain
5. A Tamper-Proof Blockchain implemented with Kafka
6. Live Demo
Agenda
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
PRODUCTS
Built FIRST DocuSign Blockchain
product.
Allows for the writing of contracts on
the blockchain with proof of trust
Software agents keep the blockchain
tamper proof and immutable
Current POC’s across eCommerce,
Healthcare and Supply Chain
SOLUTIONS
• Artificial Intelligence, Blockchain, Ecommerce,
Healthcare, Media, Payments and Supply Chain
• Securely store commercial and non-commercial
transactions
• Energy efficient and ESG
GROWTH OPPORTUNITIES
How do we expand globally with new customers
using AiB products?
AiB offers services for scalability to meet all of the
demands of global businesses offering architecture
assessment diagrams to clients.
TECHNOLOGY
We employ one of a kind Artificial Agents on
the Blockchain to give world class security
and to ensure all data is immutable.
PLATFORM
Its most visible success is in the unique
approach to financial transactions through its
implementation of its Artificial Intelligent
Blockchain Cloud Payment Platform.
Enterprise
Grade
Platform
COMPANY
Since its founding in 2014, Ai-
Blockchain has built a
combination of innovative IP
and blockchain products
that have been recognized in
the marketplace and USPTO.
Potential
Customer
Use Cases
and
Problems
Ai-Blockchain
Products
Ai-Blockchain
Solutions and
advantages
Industry
Expansion
Ai-Blockchain – Patented Private-Permissioned Blockchain
for Smart Contracts
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
AiB’s BRICK Messaging Platform
For security, privacy and scalability, the AiB’s BRICK
platform is a platform agnostic layer that is built for
enterprise and micro payments in the cloud.
Third-Party Audited
AiB’s technology stack has been
security audited and stress tested by
third-party global cloud providers.
Full-Stack Capability
Deploying nodes and writing smart contracts
up to front end development and deployment.
Thought Leaders
Consistently asked to
speak at international
events to share our
Blockchain expertise.
Blockchain Experts
Established in 2014
Ai Blockchain’s team of over
100 Blockchain developers &
experts have been building
solutions for over six years
and are ready today for any
and all market
opportunities.
Ai-Blockchain – Proprietary Blockchain Technology Stack
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
39
KafkaBlockchain Architecture
Producers reuse the KafkaBlockchain
library and Tamper-Evident Records.
Consumers reuse the KafkaBlockchain library and Tamper-Evident Records.
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
KafkaBlockchain – Producer, Consumer & Verifier
Open Source Apache
Licensed on GitHub
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
41
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
1. Use Cases for Secure and Tamper-Proof Data Processing
2. Distributed Ledger and Blockchain Technologies
3. Event Streaming with Apache Kafka
4. Relation between Kafka and Blockchain
5. A Tamper-Proof Blockchain implemented with Kafka
6. Live Demo
Agenda
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Demonstration:
run-kafka-blockchain.demo.sh
• Demonstrate putting messages into a Kafka blockchain with one partition, one
producer and one consumer.
• Describe the single blockchain partition
• Demonstrate verifying messages with one consumer
Demonstration:
run-kafka-blockchain-multiple-partition.demo.sh
• Demonstrate putting messages into a Kafka blockchain with five partitions, one
producer and one consumer.
• Describe the five blockchain partitions
• Demonstrate verifying messages with five cooperating consumers - one for each
partition.
43
KafkaBlockchain – Live Demo
https://github.com/ai-coin/KafkaBlockchain
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Next steps…
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
When to use
Kafka vs. a “real blockchain framework”?
45
Use Apache Kafka
with AIBlockchain for
• Enterprise infrastructure
• Open, scalable, real-time
requirements
• Flexible architectures for many
use cases
Use Hyperledger,
Ethereum, et al. for
• Deployment over various
independent organizations
• Participants verify the
distributed ledger contents
themselves.
• Specific use cases
• Server-side managed and
controlled by multiple
organizations
• Scenarios where the
business value overturns the
added complexity and
project risk
Use Kafka and Blockchain
together to combine the
benefits of both
(where this makes sense!)
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
What about long-term storage in Kafka?
46
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Today, Kafka works well for
recent events, short
horizon storage, and
manual data balancing
Kafka’s present-day design offers
extraordinarily low messaging latency by
storing topic data on fast disks that are
collocated with brokers. This is usually good.
But sometimes, you need to store a huge
amount of data for a long time.
Blockchain is such a use case!
Kafka
Processing
App
Storage
Transactions, auth,
quota
enforcement,
compaction, ...
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Confluent Tiered Storage for Kafka
Object Store
Processing Storage
Transactions,
auth, quota
enforcement,
compaction, ...
Local
Remote
Kafka
Apps
Store Forever – AiB’s Tamper-Proof Blockchain
with KafkaBlockchain
Older data is offloaded to inexpensive object storage,
permitting it to be consumed at any time. Using AiB, storage
can be made tamper-proof and immutable
Save $$$
Storage limitations, like capacity and duration, are effectively
uncapped.
Instantaneously scale up and down
Your Kafka clusters will be able to automatically self-balance
load and hence elastically scale
(Only available in Confluent Platform)
kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
Tamper-proof, encrypted event streaming
Time
P
C1
C2
Payment
Real-time data processing and historical analytics with one scalable infrastructure
Compliance check on historical data
Real-time
fraud detection
Questions? Feedback?
Let’s connect!
Kai Waehner
Technology Evangelist
kai.waehner@confluent.io
LinkedIn
@KaiWaehner
confluent.io
kai-waehner.de
Stephen Reed
CEO, Co-founder
AiB
stephen@ai-blockchain.com
LinkedIn
ai-blockchain.com

More Related Content

What's hot

What's hot (20)

Exactly-Once Financial Data Processing at Scale with Flink and Pinot
Exactly-Once Financial Data Processing at Scale with Flink and PinotExactly-Once Financial Data Processing at Scale with Flink and Pinot
Exactly-Once Financial Data Processing at Scale with Flink and Pinot
 
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
 
Elasticsearch for beginners
Elasticsearch for beginnersElasticsearch for beginners
Elasticsearch for beginners
 
Improve monitoring and observability for kubernetes with oss tools
Improve monitoring and observability for kubernetes with oss toolsImprove monitoring and observability for kubernetes with oss tools
Improve monitoring and observability for kubernetes with oss tools
 
Everything You wanted to Know About Distributed Tracing
Everything You wanted to Know About Distributed TracingEverything You wanted to Know About Distributed Tracing
Everything You wanted to Know About Distributed Tracing
 
Introduction to Ethereum Blockchain & Smart Contract
Introduction to Ethereum Blockchain & Smart ContractIntroduction to Ethereum Blockchain & Smart Contract
Introduction to Ethereum Blockchain & Smart Contract
 
Understanding hd wallets design and implementation
Understanding hd wallets  design and implementationUnderstanding hd wallets  design and implementation
Understanding hd wallets design and implementation
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
OSMC 2022 | Ignite: Observability with Grafana & Prometheus for Kafka on Kube...
OSMC 2022 | Ignite: Observability with Grafana & Prometheus for Kafka on Kube...OSMC 2022 | Ignite: Observability with Grafana & Prometheus for Kafka on Kube...
OSMC 2022 | Ignite: Observability with Grafana & Prometheus for Kafka on Kube...
 
IIoT / Industry 4.0 with Apache Kafka, Connect, KSQL, Apache PLC4X
IIoT / Industry 4.0 with Apache Kafka, Connect, KSQL, Apache PLC4X IIoT / Industry 4.0 with Apache Kafka, Connect, KSQL, Apache PLC4X
IIoT / Industry 4.0 with Apache Kafka, Connect, KSQL, Apache PLC4X
 
Log analysis using elk
Log analysis using elkLog analysis using elk
Log analysis using elk
 
Introduction to Structured Streaming
Introduction to Structured StreamingIntroduction to Structured Streaming
Introduction to Structured Streaming
 
Monitoring Microservices
Monitoring MicroservicesMonitoring Microservices
Monitoring Microservices
 
A Deep Dive into Query Execution Engine of Spark SQL
A Deep Dive into Query Execution Engine of Spark SQLA Deep Dive into Query Execution Engine of Spark SQL
A Deep Dive into Query Execution Engine of Spark SQL
 
Building an Observability platform with ClickHouse
Building an Observability platform with ClickHouseBuilding an Observability platform with ClickHouse
Building an Observability platform with ClickHouse
 
ELK Stack
ELK StackELK Stack
ELK Stack
 
初探 Elastic Observability 的實踐方法
初探 Elastic Observability 的實踐方法初探 Elastic Observability 的實踐方法
初探 Elastic Observability 的實踐方法
 
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and LinkerdService Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
 
The Patterns of Distributed Logging and Containers
The Patterns of Distributed Logging and ContainersThe Patterns of Distributed Logging and Containers
The Patterns of Distributed Logging and Containers
 
Blockchain Study(1) - What is Blockchain?
Blockchain Study(1) - What is Blockchain?Blockchain Study(1) - What is Blockchain?
Blockchain Study(1) - What is Blockchain?
 

Similar to Apache Kafka and Blockchain - Comparison and a Kafka-native Implementation

Kappa vs Lambda Architectures and Technology Comparison
Kappa vs Lambda Architectures and Technology ComparisonKappa vs Lambda Architectures and Technology Comparison
Kappa vs Lambda Architectures and Technology Comparison
Kai Wähner
 
Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...
Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...
Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...
confluent
 
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Kai Wähner
 
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and ConfluentEvent Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
confluent
 
Mainframe Integration, Offloading and Replacement with Apache Kafka
Mainframe Integration, Offloading and Replacement with Apache KafkaMainframe Integration, Offloading and Replacement with Apache Kafka
Mainframe Integration, Offloading and Replacement with Apache Kafka
Kai Wähner
 
Can Apache Kafka Replace a Database?
Can Apache Kafka Replace a Database?Can Apache Kafka Replace a Database?
Can Apache Kafka Replace a Database?
Kai Wähner
 
Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...
Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...
Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...
Kai Wähner
 

Similar to Apache Kafka and Blockchain - Comparison and a Kafka-native Implementation (20)

Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka ...
Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka ...Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka ...
Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka ...
 
Architecture patterns for distributed, hybrid, edge and global Apache Kafka d...
Architecture patterns for distributed, hybrid, edge and global Apache Kafka d...Architecture patterns for distributed, hybrid, edge and global Apache Kafka d...
Architecture patterns for distributed, hybrid, edge and global Apache Kafka d...
 
Supply Chain Optimization with Apache Kafka
Supply Chain Optimization with Apache KafkaSupply Chain Optimization with Apache Kafka
Supply Chain Optimization with Apache Kafka
 
Apache Kafka in the Airline, Aviation and Travel Industry
Apache Kafka in the Airline, Aviation and Travel IndustryApache Kafka in the Airline, Aviation and Travel Industry
Apache Kafka in the Airline, Aviation and Travel Industry
 
Can Apache Kafka Replace a Database? – The 2021 Update | Kai Waehner, Confluent
Can Apache Kafka Replace a Database? – The 2021 Update | Kai Waehner, ConfluentCan Apache Kafka Replace a Database? – The 2021 Update | Kai Waehner, Confluent
Can Apache Kafka Replace a Database? – The 2021 Update | Kai Waehner, Confluent
 
Kappa vs Lambda Architectures and Technology Comparison
Kappa vs Lambda Architectures and Technology ComparisonKappa vs Lambda Architectures and Technology Comparison
Kappa vs Lambda Architectures and Technology Comparison
 
Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...
Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...
Streamsheets and Apache Kafka – Interactively build real-time Dashboards and ...
 
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
 
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and ConfluentEvent Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
 
Mainframe Integration, Offloading and Replacement with Apache Kafka
Mainframe Integration, Offloading and Replacement with Apache KafkaMainframe Integration, Offloading and Replacement with Apache Kafka
Mainframe Integration, Offloading and Replacement with Apache Kafka
 
Kafka at the Edge: an IoT scenario with OpenShift Streams for Apache Kafka | ...
Kafka at the Edge: an IoT scenario with OpenShift Streams for Apache Kafka | ...Kafka at the Edge: an IoT scenario with OpenShift Streams for Apache Kafka | ...
Kafka at the Edge: an IoT scenario with OpenShift Streams for Apache Kafka | ...
 
Applying ML on your Data in Motion with AWS and Confluent | Joseph Morais, Co...
Applying ML on your Data in Motion with AWS and Confluent | Joseph Morais, Co...Applying ML on your Data in Motion with AWS and Confluent | Joseph Morais, Co...
Applying ML on your Data in Motion with AWS and Confluent | Joseph Morais, Co...
 
Apache Kafka as Event Streaming Platform for Microservice Architectures
Apache Kafka as Event Streaming Platform for Microservice ArchitecturesApache Kafka as Event Streaming Platform for Microservice Architectures
Apache Kafka as Event Streaming Platform for Microservice Architectures
 
IoT and Event Streaming at Scale with Apache Kafka
IoT and Event Streaming at Scale with Apache KafkaIoT and Event Streaming at Scale with Apache Kafka
IoT and Event Streaming at Scale with Apache Kafka
 
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
 
Kubernetes connectivity to Cloud Native Kafka | Evan Shortiss and Hugo Guerre...
Kubernetes connectivity to Cloud Native Kafka | Evan Shortiss and Hugo Guerre...Kubernetes connectivity to Cloud Native Kafka | Evan Shortiss and Hugo Guerre...
Kubernetes connectivity to Cloud Native Kafka | Evan Shortiss and Hugo Guerre...
 
Can Apache Kafka Replace a Database?
Can Apache Kafka Replace a Database?Can Apache Kafka Replace a Database?
Can Apache Kafka Replace a Database?
 
Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...
Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...
Apache Kafka + Apache Mesos + Kafka Streams - Highly Scalable Streaming Micro...
 
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies...
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies...Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies...
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies...
 
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies?
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies?Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies?
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies?
 

More from Kai Wähner

The Top 5 Apache Kafka Use Cases and Architectures in 2022
The Top 5 Apache Kafka Use Cases and Architectures in 2022The Top 5 Apache Kafka Use Cases and Architectures in 2022
The Top 5 Apache Kafka Use Cases and Architectures in 2022
Kai Wähner
 
Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....
Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....
Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....
Kai Wähner
 
Serverless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
Serverless Kafka on AWS as Part of a Cloud-native Data Lake ArchitectureServerless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
Serverless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
Kai Wähner
 

More from Kai Wähner (20)

Kafka for Live Commerce to Transform the Retail and Shopping Metaverse
Kafka for Live Commerce to Transform the Retail and Shopping MetaverseKafka for Live Commerce to Transform the Retail and Shopping Metaverse
Kafka for Live Commerce to Transform the Retail and Shopping Metaverse
 
Apache Kafka vs. Cloud-native iPaaS Integration Platform Middleware
Apache Kafka vs. Cloud-native iPaaS Integration Platform MiddlewareApache Kafka vs. Cloud-native iPaaS Integration Platform Middleware
Apache Kafka vs. Cloud-native iPaaS Integration Platform Middleware
 
Data Warehouse vs. Data Lake vs. Data Streaming – Friends, Enemies, Frenemies?
Data Warehouse vs. Data Lake vs. Data Streaming – Friends, Enemies, Frenemies?Data Warehouse vs. Data Lake vs. Data Streaming – Friends, Enemies, Frenemies?
Data Warehouse vs. Data Lake vs. Data Streaming – Friends, Enemies, Frenemies?
 
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
Serverless Kafka and Spark in a Multi-Cloud Lakehouse ArchitectureServerless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
 
Resilient Real-time Data Streaming across the Edge and Hybrid Cloud with Apac...
Resilient Real-time Data Streaming across the Edge and Hybrid Cloud with Apac...Resilient Real-time Data Streaming across the Edge and Hybrid Cloud with Apac...
Resilient Real-time Data Streaming across the Edge and Hybrid Cloud with Apac...
 
Data Streaming with Apache Kafka in the Defence and Cybersecurity Industry
Data Streaming with Apache Kafka in the Defence and Cybersecurity IndustryData Streaming with Apache Kafka in the Defence and Cybersecurity Industry
Data Streaming with Apache Kafka in the Defence and Cybersecurity Industry
 
Apache Kafka in the Healthcare Industry
Apache Kafka in the Healthcare IndustryApache Kafka in the Healthcare Industry
Apache Kafka in the Healthcare Industry
 
Apache Kafka in the Healthcare Industry
Apache Kafka in the Healthcare IndustryApache Kafka in the Healthcare Industry
Apache Kafka in the Healthcare Industry
 
Apache Kafka for Real-time Supply Chain in the Food and Retail Industry
Apache Kafka for Real-time Supply Chainin the Food and Retail IndustryApache Kafka for Real-time Supply Chainin the Food and Retail Industry
Apache Kafka for Real-time Supply Chain in the Food and Retail Industry
 
Kafka for Real-Time Replication between Edge and Hybrid Cloud
Kafka for Real-Time Replication between Edge and Hybrid CloudKafka for Real-Time Replication between Edge and Hybrid Cloud
Kafka for Real-Time Replication between Edge and Hybrid Cloud
 
Apache Kafka for Predictive Maintenance in Industrial IoT / Industry 4.0
Apache Kafka for Predictive Maintenance in Industrial IoT / Industry 4.0Apache Kafka for Predictive Maintenance in Industrial IoT / Industry 4.0
Apache Kafka for Predictive Maintenance in Industrial IoT / Industry 4.0
 
Apache Kafka Landscape for Automotive and Manufacturing
Apache Kafka Landscape for Automotive and ManufacturingApache Kafka Landscape for Automotive and Manufacturing
Apache Kafka Landscape for Automotive and Manufacturing
 
The Top 5 Apache Kafka Use Cases and Architectures in 2022
The Top 5 Apache Kafka Use Cases and Architectures in 2022The Top 5 Apache Kafka Use Cases and Architectures in 2022
The Top 5 Apache Kafka Use Cases and Architectures in 2022
 
Event Streaming CTO Roundtable for Cloud-native Kafka Architectures
Event Streaming CTO Roundtable for Cloud-native Kafka ArchitecturesEvent Streaming CTO Roundtable for Cloud-native Kafka Architectures
Event Streaming CTO Roundtable for Cloud-native Kafka Architectures
 
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
 
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
 
Apache Kafka in the Transportation and Logistics
Apache Kafka in the Transportation and LogisticsApache Kafka in the Transportation and Logistics
Apache Kafka in the Transportation and Logistics
 
Apache Kafka for Cybersecurity and SIEM / SOAR Modernization
Apache Kafka for Cybersecurity and SIEM / SOAR ModernizationApache Kafka for Cybersecurity and SIEM / SOAR Modernization
Apache Kafka for Cybersecurity and SIEM / SOAR Modernization
 
Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....
Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....
Apache Kafka in the Automotive Industry (Connected Vehicles, Manufacturing 4....
 
Serverless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
Serverless Kafka on AWS as Part of a Cloud-native Data Lake ArchitectureServerless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
Serverless Kafka on AWS as Part of a Cloud-native Data Lake Architecture
 

Recently uploaded

Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
mbmh111980
 
JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
Max Lee
 

Recently uploaded (20)

OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024
 
how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdf
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
 
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdfStrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
 
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product UpdatesGraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
 
JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
 
How to install and activate eGrabber JobGrabber
How to install and activate eGrabber JobGrabberHow to install and activate eGrabber JobGrabber
How to install and activate eGrabber JobGrabber
 
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
 
The Impact of PLM Software on Fashion Production
The Impact of PLM Software on Fashion ProductionThe Impact of PLM Software on Fashion Production
The Impact of PLM Software on Fashion Production
 
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
SQL Injection Introduction and Prevention
SQL Injection Introduction and PreventionSQL Injection Introduction and Prevention
SQL Injection Introduction and Prevention
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024
 
Malaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptxMalaysia E-Invoice digital signature docpptx
Malaysia E-Invoice digital signature docpptx
 
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
 
INGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by DesignINGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by Design
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdf
 
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdfMicrosoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
 

Apache Kafka and Blockchain - Comparison and a Kafka-native Implementation

  • 1. Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Kai Waehner Technology Evangelist Confluent kai.waehner@confluent.io LinkedIn @KaiWaehner confluent.io kai-waehner.de Stephen Reed CEO, Co-founder AiB stephen@ai-blockchain.com LinkedIn ai-blockchain.com
  • 2. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 1. Use Cases for Secure and Tamper-Proof Data Processing 2. Distributed Ledger and Blockchain Technologies 3. Event Streaming with Apache Kafka 4. Relation between Kafka and Blockchain 5. A Tamper-Proof Blockchain implemented with Kafka 6. Live Demo Agenda
  • 3. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Blockchain for Supply Chain Management (Manufacturing, Logistics, …) 3 https://coletiv.com/blog/blockchain-supply-chain-management-system/ https://www.disruptordaily.com/blockchain-use-cases-supply-chain-management/
  • 4. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Blockchain in Healthcare 4 • Use Cases • Management of patient data, especially access control • RVU Agreements with Ai-Blockchain • Management and use of academic research data • Logistics / Supply chain for drugs, medical technology, and other products • Often no need for Blockchain / DLT • Only for Identity Management • Processing and (big) data storage outside blockchain https://digiforest.io/en/blog/blockchain-examples-in-healthcare
  • 5. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Blockchain for Financial Services 5 https://www.accenture.com/t20170120T074124Z__w__/us-en/_acnmedia/Accenture/Conversion-Assets/DotCom/Documents/Global/PDF/Consulting/Accenture-Banking-on-Blockchain.pdf%23zoom=50
  • 6. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 1. Use Cases for Secure and Tamper-Proof Data Processing 2. Distributed Ledger and Blockchain Technologies 3. Event Streaming with Apache Kafka 4. Relation between Kafka and Blockchain 5. A Tamper-Proof Blockchain implemented with Kafka 6. Live Demo Agenda
  • 7. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Bitcoin – The Tip of the Iceberg! 7 ‘Bitcoin’ compared to ‘blockchain’, ‘distributed ledger’, etc.
  • 8. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Blockchain vs. Distributed Ledger Technology (DLT) 8 https://www.da.ventures/post/gaining-clarity-on-key-terminology-bitcoin-versus-blockchain-versus-distributed-ledger-technology
  • 9. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Blockchain Concepts • Permissionless or permissioned (or consortium) • Consensus algorithm (Proof of work, Proof of Stake, or Voting systems) • Blockchain: Global Consensus across all nodes • DLT: Consensus without having to validate across the entire Blockchain • Blockchain • Growing list of records, called blocks, linked using cryptography • Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data 11
  • 10. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Challenges and Concerns of Blockchains • Technical and organizational complexity • Transaction speed and scalability • Energy consumption • Security • Data tenancy • Lifecycle costs • Ease of integration
  • 11. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Purpose-built solutions • Ripple: Payment settling, currency exchange and remittance system • Libra: Global payment system and financial infrastructure • IOTA: IoT transactions Non-Blockchain DLTs to solve the challenges to provide better performance and scalability 13 Open and flexible solution for many use cases • Apache Kafka: Open, scalable, real time event streaming Technology Partners • Ai-Blockchain: “AiB”
  • 12. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 1. Use Cases for Secure and Tamper-Proof Data Processing 2. Distributed Ledger and Blockchain Technologies 3. Event Streaming with Apache Kafka 4. Relation between Kafka and Blockchain 5. A Tamper-Proof Blockchain implemented with Kafka 6. Live Demo Agenda
  • 13. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Event Streaming in the Finance Industry Check past Kafka Summit videos for details about the use cases: https://kafka-summit.org/past-events/
  • 14. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Tamper-Proof Event Streaming for (some of the) Use Cases in the Finance Industry Real Time Processing Digital Transformation Strategic Goals Short-Sale Risk Calculation / Trade Approval Mainframe Offloading and Replacement Instant Payment Next-Best Offer Robot Process Automation (e.g. Know Your Customer, KYC) Customer Service (e.g. Chat Bots) IT ModernizationRegulatory Reporting Fraud Detection Anomaly Detection Across Assets and Locations Derivatives Pricing Compliance Trading Post- Processing Strategic Planning and Simulations
  • 15. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka STREAM PROCESSING Create and store materialized views Filter Analyze in-flight Time C CC Event Streaming
  • 16. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Event Streaming Platform – The Immutable Commit Log Time P C1 C2 C3
  • 17. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Event Streaming Platform – A Distributed System for 24/7 and Zero Data Loss Broker 1 Topic1 partition1 Broker 2 Broker 3 Broker 4 Topic1 partition1 Topic1 partition1 Leader Follower Topic1 partition2 Topic1 partition2 Topic1 partition2 Topic1 partition3 Topic1 partition4 Topic1 partition3 Topic1 partition3 Topic1 partition4 Topic1 partition4
  • 18. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka An Event Streaming Platform is the Underpinning of an Event-driven Architecture Microservices Mainframes SaaS apps Mobile Customer 360 Real-time fraud detection Data warehouse Producers Consumers Database change Microservices events SaaS data Customer experiences Streams of real time events Stream processing apps Connectors Connectors Stream processing apps
  • 19. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Kafka Connect with Ethereum Connector Kafka Cluster Blockchain Integration Domain-Driven Design and Decoupled Applications Legacy Integration Custom Application ETL Tool with Mainframe Connector Java / C++ / Go / Python / KSQL Schema Registry Event Streaming Platform Blockchain Domain Payment Domain Fraud Domain Audit Logs, RBAC, etc.
  • 20. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Reasons for Event Streaming with Apache Kafka Real Time Scalable High Throughput Cost Reduction 24/7 – Zero downtime, zero data loss Decoupling – Storage, Domain-driven Design Data (re-)processing and stateful client applications Integration – Connectivity to IoT, legacy, big data, everything Hybrid Architecture – On Premises, multi cloud, edge computing Fully managed cloud No vendor locking 24
  • 21. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Kafka Clusters can stretch over Regions Zero Downtime + Zero Data loss (RPO=0 and RTO=0) e.g. Stretched over US East + Mid + West Automate Disaster Recovery Sync or Async Replication per Topic Offset Preserving Automated Client Failover without Custom Code Multi-Region Cluster (Only available in Confluent Platform) 26
  • 22. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Example of a Multi-Region Cluster in a Bank Large FinServ Customer Payment Log Payment Log Location Location synchronous asynchronous ● ‘Payment’ transactions enter from us-east and us-west with fully synchronous replication ● ‘Log’ and ‘Location’ information in the same cluster use async - optimized for latency ● Automated disaster recovery (zero downtime, zero data loss) Result: Clearing time from ‘deposit’ to ‘available’ goes from 5 days to 5 seconds (including security checks) (Only available in Confluent Platform)
  • 23. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 1. Use Cases for Secure and Tamper-Proof Data Processing 2. Distributed Ledger and Blockchain Technologies 3. Event Streaming with Apache Kafka 4. Relation between Kafka and Blockchain 5. A Tamper-Proof Blockchain implemented with Kafka 6. Live Demo Agenda
  • 24. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Real-time High Throughput Decentralized database Distributed log of records Immutable log Replication High availability Decoupling of applications / clients Role-based access control to data Tamper-Proof Encrypted payloads Deployment over independent organizations is not a Blockchain! X
  • 25. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Kafka AND Blockchain 32 Kafka Real Time Instant Payment App (Java, C++, Python, etc.) Batch Analytics Platform (Spark, Splunk, etc.) Blockchain (Bitcoin) Blockchain (Ethereum) Kafka-native Blockchain Kafka AS Blockchain Real Time Instant Payment App (Java, C++, Python, etc.) Batch Analytics Platform (Spark, Splunk, etc.)
  • 26. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Kafka AND Blockchain: Financial services platform combining Kafka and Blockchains • Provides the speed and convenience of traditional exchanges and the security of non-custodial approaches. • Invest in, make payments with and trade Bitcoin, Ethereum, NEO, and other digital assets. • The exchange is the first of its kind, offering non-custodial cross-chain trading with the full power of a real order book • Deterministic replayability in its exact order at any time 33 https://community.nash.io/t/first-of-its-kind-non-custodial-exchange-using-confluent-cloud/8254
  • 27. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Kafka AS Blockchain: Consensus algorithm in Hyperledger Fabric using Kafka to be fault tolerant, highly scalable and performant 34 https://hyperledger-fabric.readthedocs.io/en/release-2.0/kafka.html https://www.meetup.com/Dubai-Kafka/events/268001616/ (presented by Farrukh Munir)
  • 28. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 1. Use Cases for Secure and Tamper-Proof Data Processing 2. Distributed Ledger and Blockchain Technologies 3. Event Streaming with Apache Kafka 4. Relation between Kafka and Blockchain 5. A Tamper-Proof Blockchain implemented with Kafka 6. Live Demo Agenda
  • 29. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka
  • 30. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka PRODUCTS Built FIRST DocuSign Blockchain product. Allows for the writing of contracts on the blockchain with proof of trust Software agents keep the blockchain tamper proof and immutable Current POC’s across eCommerce, Healthcare and Supply Chain SOLUTIONS • Artificial Intelligence, Blockchain, Ecommerce, Healthcare, Media, Payments and Supply Chain • Securely store commercial and non-commercial transactions • Energy efficient and ESG GROWTH OPPORTUNITIES How do we expand globally with new customers using AiB products? AiB offers services for scalability to meet all of the demands of global businesses offering architecture assessment diagrams to clients. TECHNOLOGY We employ one of a kind Artificial Agents on the Blockchain to give world class security and to ensure all data is immutable. PLATFORM Its most visible success is in the unique approach to financial transactions through its implementation of its Artificial Intelligent Blockchain Cloud Payment Platform. Enterprise Grade Platform COMPANY Since its founding in 2014, Ai- Blockchain has built a combination of innovative IP and blockchain products that have been recognized in the marketplace and USPTO. Potential Customer Use Cases and Problems Ai-Blockchain Products Ai-Blockchain Solutions and advantages Industry Expansion Ai-Blockchain – Patented Private-Permissioned Blockchain for Smart Contracts
  • 31. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka AiB’s BRICK Messaging Platform For security, privacy and scalability, the AiB’s BRICK platform is a platform agnostic layer that is built for enterprise and micro payments in the cloud. Third-Party Audited AiB’s technology stack has been security audited and stress tested by third-party global cloud providers. Full-Stack Capability Deploying nodes and writing smart contracts up to front end development and deployment. Thought Leaders Consistently asked to speak at international events to share our Blockchain expertise. Blockchain Experts Established in 2014 Ai Blockchain’s team of over 100 Blockchain developers & experts have been building solutions for over six years and are ready today for any and all market opportunities. Ai-Blockchain – Proprietary Blockchain Technology Stack
  • 32. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 39 KafkaBlockchain Architecture Producers reuse the KafkaBlockchain library and Tamper-Evident Records. Consumers reuse the KafkaBlockchain library and Tamper-Evident Records.
  • 33. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka KafkaBlockchain – Producer, Consumer & Verifier Open Source Apache Licensed on GitHub
  • 34. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 41
  • 35. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka 1. Use Cases for Secure and Tamper-Proof Data Processing 2. Distributed Ledger and Blockchain Technologies 3. Event Streaming with Apache Kafka 4. Relation between Kafka and Blockchain 5. A Tamper-Proof Blockchain implemented with Kafka 6. Live Demo Agenda
  • 36. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Demonstration: run-kafka-blockchain.demo.sh • Demonstrate putting messages into a Kafka blockchain with one partition, one producer and one consumer. • Describe the single blockchain partition • Demonstrate verifying messages with one consumer Demonstration: run-kafka-blockchain-multiple-partition.demo.sh • Demonstrate putting messages into a Kafka blockchain with five partitions, one producer and one consumer. • Describe the five blockchain partitions • Demonstrate verifying messages with five cooperating consumers - one for each partition. 43 KafkaBlockchain – Live Demo https://github.com/ai-coin/KafkaBlockchain
  • 37. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Next steps…
  • 38. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka When to use Kafka vs. a “real blockchain framework”? 45 Use Apache Kafka with AIBlockchain for • Enterprise infrastructure • Open, scalable, real-time requirements • Flexible architectures for many use cases Use Hyperledger, Ethereum, et al. for • Deployment over various independent organizations • Participants verify the distributed ledger contents themselves. • Specific use cases • Server-side managed and controlled by multiple organizations • Scenarios where the business value overturns the added complexity and project risk Use Kafka and Blockchain together to combine the benefits of both (where this makes sense!)
  • 39. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka What about long-term storage in Kafka? 46
  • 40. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Today, Kafka works well for recent events, short horizon storage, and manual data balancing Kafka’s present-day design offers extraordinarily low messaging latency by storing topic data on fast disks that are collocated with brokers. This is usually good. But sometimes, you need to store a huge amount of data for a long time. Blockchain is such a use case! Kafka Processing App Storage Transactions, auth, quota enforcement, compaction, ...
  • 41. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Confluent Tiered Storage for Kafka Object Store Processing Storage Transactions, auth, quota enforcement, compaction, ... Local Remote Kafka Apps Store Forever – AiB’s Tamper-Proof Blockchain with KafkaBlockchain Older data is offloaded to inexpensive object storage, permitting it to be consumed at any time. Using AiB, storage can be made tamper-proof and immutable Save $$$ Storage limitations, like capacity and duration, are effectively uncapped. Instantaneously scale up and down Your Kafka clusters will be able to automatically self-balance load and hence elastically scale (Only available in Confluent Platform)
  • 42. kai-waehner.de | @KaiWaehner | Building a Secure, Tamper-Proof & Scalable Blockchain on Top of Apache Kafka Tamper-proof, encrypted event streaming Time P C1 C2 Payment Real-time data processing and historical analytics with one scalable infrastructure Compliance check on historical data Real-time fraud detection
  • 43. Questions? Feedback? Let’s connect! Kai Waehner Technology Evangelist kai.waehner@confluent.io LinkedIn @KaiWaehner confluent.io kai-waehner.de Stephen Reed CEO, Co-founder AiB stephen@ai-blockchain.com LinkedIn ai-blockchain.com