SlideShare uma empresa Scribd logo
1 de 24
Baixar para ler offline
who am i
user ID Dani
Alias DTrapezoid
Bg Apache Proj
Dist Sys
f s Real time
event driven Sys
slaying legacy
How did we
get here
QqEg
3L ksqeipgggaqqm.o.mg
aknafakuatww.sn
what are we
doing
Y
KSQL Architecture
KSQL Use cases
3 KS Q performance considerations
4 When to use K SQL when to not
g introduce KST Reams
Ok let's learn more
about
you
What letter best describes your ego
on
T
select hope
for
your
cluster
select profit
I
l select
y
it
depends
select make
a wish
it
y.souyewieqsm
bzdr.my
give
select
eqsocluster
select x
smeary
it
qnaEg
depends
select
y
make
a
wish
Why does it matter to
think about a
Query
before you
eE
execute it p
P 77
27
n
p
Lots of
led sons
we do hit always have control over stuff
E
ear
to
I can r
jeng'd
s
g
FEI
a
WH
e
Iigigggqiioniaz
ebay.ki.g.de
RDBMS
ao.ge
ei
sa
initial use cases thinking Benefits
11
DB integration Broering
l Back pressure
message
bus
Decouples systems
Pub Sub Distributed
Highly Available
Lowly latent
0 Data governance
Event Driven
box wait there's
moire as a
streaming Platform
K2fk2 Streams API
Event Driven systems
Transform once use
many
haepwp
z
I customer
µIgsffIe etc
ftp.eamprocessing
23 2
1 a Ii
ieTfF
ii
ieIfF
KSQL KSTREAMS
ice creams
0 Stream ProcessingQ.it
Ea
hEEyYyEFE'i
w Kafka
ftp.PEFFEEEF
abstracts ihIfEf
9 to
KSQL KSTREAMS
ffffgt.EE
CkafkaastEeamg
Let's talk about what KSQL is
what happens when you KSQL
CREATE STREAM AS SELECT
CREATE TABLE AS SELECT
14
Output
To P l C
Name Default same
2Tstream
table Or
stoma with KAFKA TOPIC prop WITH clause
partitions Default 4 or customise
with PARTITIONS prop WITH clause
Replication Factor Default RF topic L
customial with REPLICAS property WITH clause
Aggregations leverage embedded storage
engine to locally manage state
A compacted changelog topic persistsaggregation
state
compacted changelogtopics have the same
ofpartitions as the input stream Default L
replies
IS KSQL a better version of SQL
tmrw
0 KSQLO
O A
O 11
I
IT Aggregate
µ
IT
11111T t Ss
HT
11111T
Join
IT
Filter
HDMI
0 8 connect 0 7
Nfb 0 sink E
oTsource 1 0 connect
connector T O Eld s ti
a EEEtor lot FEt
jq.mggEonE0
4 f
Eia ago 53
o L.eeEiEfEEiEE.EE
tEEBtaaE
Golf connect
cassandr
Ksar is a
continuous Queryengine
t's a DBA's worst nightmare it's a
Query that
never
why would someone want to use
KSQL then
Mumia
to write
EE
Stream processing programs
simply
my Run SQL Queries against
date
2g nostoc of programming language
my works contrhously in Real time
Queries won't Quit until the messages
do
my Fault tolerant
my scales horizontally Vertically
f Distributed
what does the architecture of Ksa
look like
EE
ii
I I I
I
Ksai clients
if
EEE
SQL Engine
www.gesksQLstdtemeuts
Quenes
rest API
itow client aeu.esasffctohememra ee.me
384 tzfnkqgtopykosurtkso.ie Apps w confluentcontrol
Ksar server fEosgedneofsikEEEEIYEE.EEaEEa
ADD KSQL servers who Restarting APPS
https://www.confluent.io/blog/ksql-in-action-real-time-streaming-etl-from-oracle-
transactional-data
https://www.confluent.io/blog/ksql-in-action-enriching-csv-events-with-data-from-rdbms-into-AWS/
https://docs.confluent.io/current/ksql/docs/developer-guide/transform-a-stream-with-ksql.html
https://www.confluent.io/stream-processing-cookbook/ksql-recipes/detecting-abnormal-transactions
what are some cool KSQL use cases
if
t
my streaming E 14 RT monitoring
rders Kafka
CDC 1
4 4 69905 connect elastic
login Debezium ksypez.ms Elasticus KSQL
T Data Enrichment
card Eeo
Kwangyez qq.io
gEioE9oqzIksapfoko98cnr're'tflog 2
Egg53
Kafkaconnect
Debezium KSQL
my Data Transformation
change data format of message Wes
timestamp field
of partitions timestamp format
of replicas Kafkatopic name
F Anomaly Detection
create a of time to write to a ksactableftopic
collect anomalous behavior
WINDOW TUMBLING
{
"order_id": 1,
"customer_name": "Maryanna Andryszczak",
"date_of_birth": "1922-06-06T02:21:59Z",
"product": "Nut - Walnut, Pieces",
"order_total_usd": "1.65",
"town": "Portland",
"country": "United States"
}
ksql> CREATE STREAM purchases 
(order_id INT, customer_name VARCHAR, date_of_birth
VARCHAR, 
product VARCHAR, order_total_usd VARCHAR, town
VARCHAR, country VARCHAR) 
WITH (KAFKA_TOPIC='purchases', VALUE_FORMAT='JSON');
Message
----------------
Stream created
----------------
SELECT * FROM PURCHASES LIMIT 5;
SELECT ORDER_ID, PRODUCT, TOWN, COUNTRY FROM PURCHASES WHERE
COUNTRY='Germany';
CREATE STREAM PUCHASES_GERMANY AS SELECT * FROM PURCHASES
WHERE COUNTRY='Germany';
ksql> LIST TOPICS;
Kafka Topic | Registered | Partitions | Partition
Replicas | Consumers | ConsumerGroups
-------------------------------------------------------------
-----------------------------------
_confluent-metrics | false | 12 | 1
| 0 | 0
PUCHASES_GERMANY | true | 4 | 1
| 0 | 0
purchases | true | 1 | 1
| 1 | 1
-------------------------------------------------------------
-----------------------------------
ksql>
https://www.confluent.io/stream-processing-cookbook/ksql-
recipes/data-filtering
Let's just get the German orders on
one
topic1 table
cool Now we have all the purchases
from Germany in a separate topic
Try it
if
https://docs.confluent.io/current/ksql/docs/capacity-
planning.html
HttRDWARET Performance
Considerations
MemoryCPU
Resource used by
0h heap
message
SQL to serialize 2 Processing
des endre messages off heap Aggregations
to KStreams ktables
then executequeries
Joins
4 cores min
32GB Min
Network
Disk
Aggregations
I join Always the
persist temp state today Biggest
bottle
100 GB SSD s min heck for good
throughput
I GBit Nlc
people
into Mr
Sizing
considerations
It may need to add more brokers
KSQL Queries consume I produce
from topics
Repartitioning
stateful Queries mean changelog
topics
Throughput
Decreases relative to every count due
to message sculcomplexity
Query Types
project joins AggregationsFilter
2X CPU
sumSELECT
COUNT
FROM ETC
WHERE
What about headless
TIP D Test in
deployment
indeYET.info
Yekssg
ii
JVM
I
af
s
E0ag
TDEEjagTOE.gg
path to confluent bin1kSqlnodequery file pathltolmyquery Sql
create Drop streams
start Stop Queries
Start Server nodes
Already using k8s
VC your workflow
When to use KSQL when to not
are you a Java team
How will
you deploy
what hardware do you have
access to
8
Do
you want to be overlord
maintainer
Kafka Streams
Processer API low level
Imperative customizable
streams API built in abstractions
Functional
KSTREAM
KTABLE
GLOBAL K TABLE
Stateless Stateful
transformations
RADHA
g
t gqIt
affstrapezoidFooloewarnmmore
D
g2 bout Kafka
my dog my losing
battle against
the girl
scouts of America
https://mockaroo.com/
EYE 99
earn more
j
F YEE FEELEY
more
Yekikes
l
get
Ksac
what if l want to use differentdats
https://docs.confluent.io/
current/ksql/docs/index.html
https://www.confluent.io/
stream-processing-cookbook/
https://docs.confluent.io/
current/streams/concepts.html
To Ksql Or Live the KStream

Mais conteúdo relacionado

Semelhante a To Ksql Or Live the KStream

When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...
When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...
When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...confluent
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deploymentsOdoo
 
Elasticsearch on Kubernetes
Elasticsearch on KubernetesElasticsearch on Kubernetes
Elasticsearch on KubernetesJoerg Henning
 
Real time analytics at uber @ strata data 2019
Real time analytics at uber @ strata data 2019Real time analytics at uber @ strata data 2019
Real time analytics at uber @ strata data 2019Zhenxiao Luo
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New FeaturesAmazon Web Services
 
Macy's: Changing Engines in Mid-Flight
Macy's: Changing Engines in Mid-FlightMacy's: Changing Engines in Mid-Flight
Macy's: Changing Engines in Mid-FlightDataStax Academy
 
Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...
Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...
Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...Andre Essing
 
Observability of InfluxDB IOx: Tracing, Metrics and System Tables
Observability of InfluxDB IOx: Tracing, Metrics and System TablesObservability of InfluxDB IOx: Tracing, Metrics and System Tables
Observability of InfluxDB IOx: Tracing, Metrics and System TablesInfluxData
 
Launching Your First Big Data Project on AWS
Launching Your First Big Data Project on AWSLaunching Your First Big Data Project on AWS
Launching Your First Big Data Project on AWSAmazon Web Services
 
Altitude San Francisco 2018: Logging at the Edge
Altitude San Francisco 2018: Logging at the Edge Altitude San Francisco 2018: Logging at the Edge
Altitude San Francisco 2018: Logging at the Edge Fastly
 
6 tips for improving ruby performance
6 tips for improving ruby performance6 tips for improving ruby performance
6 tips for improving ruby performanceEngine Yard
 
Code4Lib 2007: MyResearch Portal
Code4Lib 2007: MyResearch PortalCode4Lib 2007: MyResearch Portal
Code4Lib 2007: MyResearch Portaleby
 
http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151xlight
 
Oracle Database In-Memory Option in Action
Oracle Database In-Memory Option in ActionOracle Database In-Memory Option in Action
Oracle Database In-Memory Option in ActionTanel Poder
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneEnkitec
 
Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018
Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018
Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018Codemotion
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016Derek Downey
 

Semelhante a To Ksql Or Live the KStream (20)

When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...
When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...
When to KSQL & When to Live the KStream (Dani Traphagen, Confluent) Kafka Sum...
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deployments
 
Elasticsearch on Kubernetes
Elasticsearch on KubernetesElasticsearch on Kubernetes
Elasticsearch on Kubernetes
 
Real time analytics at uber @ strata data 2019
Real time analytics at uber @ strata data 2019Real time analytics at uber @ strata data 2019
Real time analytics at uber @ strata data 2019
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
 
Macy's: Changing Engines in Mid-Flight
Macy's: Changing Engines in Mid-FlightMacy's: Changing Engines in Mid-Flight
Macy's: Changing Engines in Mid-Flight
 
Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...
Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...
Azure Cosmos DB - NoSQL Strikes Back (An introduction to the dark side of you...
 
Ashawr perf kscope
Ashawr perf kscopeAshawr perf kscope
Ashawr perf kscope
 
Observability of InfluxDB IOx: Tracing, Metrics and System Tables
Observability of InfluxDB IOx: Tracing, Metrics and System TablesObservability of InfluxDB IOx: Tracing, Metrics and System Tables
Observability of InfluxDB IOx: Tracing, Metrics and System Tables
 
Launching Your First Big Data Project on AWS
Launching Your First Big Data Project on AWSLaunching Your First Big Data Project on AWS
Launching Your First Big Data Project on AWS
 
Altitude San Francisco 2018: Logging at the Edge
Altitude San Francisco 2018: Logging at the Edge Altitude San Francisco 2018: Logging at the Edge
Altitude San Francisco 2018: Logging at the Edge
 
6 tips for improving ruby performance
6 tips for improving ruby performance6 tips for improving ruby performance
6 tips for improving ruby performance
 
Using AWR for SQL Analysis
Using AWR for SQL AnalysisUsing AWR for SQL Analysis
Using AWR for SQL Analysis
 
Code4Lib 2007: MyResearch Portal
Code4Lib 2007: MyResearch PortalCode4Lib 2007: MyResearch Portal
Code4Lib 2007: MyResearch Portal
 
Ash and awr performance data2
Ash and awr performance data2Ash and awr performance data2
Ash and awr performance data2
 
http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151http://www.hfadeel.com/Blog/?p=151
http://www.hfadeel.com/Blog/?p=151
 
Oracle Database In-Memory Option in Action
Oracle Database In-Memory Option in ActionOracle Database In-Memory Option in Action
Oracle Database In-Memory Option in Action
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry Osborne
 
Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018
Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018
Managing your Black Friday Logs - Antonio Bonuccelli - Codemotion Rome 2018
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
 

Mais de Dani Traphagen

Kafka + Kubernetes + why you maybe should
Kafka + Kubernetes + why you maybe shouldKafka + Kubernetes + why you maybe should
Kafka + Kubernetes + why you maybe shouldDani Traphagen
 
Verizon k8-ignite-meetup
Verizon k8-ignite-meetupVerizon k8-ignite-meetup
Verizon k8-ignite-meetupDani Traphagen
 
Deploy like a Boss: Using Kubernetes and Apache Ignite!
Deploy like a Boss: Using Kubernetes and Apache Ignite!Deploy like a Boss: Using Kubernetes and Apache Ignite!
Deploy like a Boss: Using Kubernetes and Apache Ignite!Dani Traphagen
 
Nike tech-talk-intro-to-apache-ignite
Nike tech-talk-intro-to-apache-igniteNike tech-talk-intro-to-apache-ignite
Nike tech-talk-intro-to-apache-igniteDani Traphagen
 
The next-phase-of-distributed-systems-with-apache-ignite
The next-phase-of-distributed-systems-with-apache-igniteThe next-phase-of-distributed-systems-with-apache-ignite
The next-phase-of-distributed-systems-with-apache-igniteDani Traphagen
 
Data Modeling with Cassandra and Time Series Data
Data Modeling with Cassandra and Time Series DataData Modeling with Cassandra and Time Series Data
Data Modeling with Cassandra and Time Series DataDani Traphagen
 
Diving into DSE Graph
Diving into DSE Graph Diving into DSE Graph
Diving into DSE Graph Dani Traphagen
 
OSCON TALK: Becoming Friends with Cassandra and Spark
OSCON TALK: Becoming Friends with Cassandra and SparkOSCON TALK: Becoming Friends with Cassandra and Spark
OSCON TALK: Becoming Friends with Cassandra and SparkDani Traphagen
 

Mais de Dani Traphagen (9)

Kafka + Kubernetes + why you maybe should
Kafka + Kubernetes + why you maybe shouldKafka + Kubernetes + why you maybe should
Kafka + Kubernetes + why you maybe should
 
Sf k8-ignite-meetup
Sf k8-ignite-meetupSf k8-ignite-meetup
Sf k8-ignite-meetup
 
Verizon k8-ignite-meetup
Verizon k8-ignite-meetupVerizon k8-ignite-meetup
Verizon k8-ignite-meetup
 
Deploy like a Boss: Using Kubernetes and Apache Ignite!
Deploy like a Boss: Using Kubernetes and Apache Ignite!Deploy like a Boss: Using Kubernetes and Apache Ignite!
Deploy like a Boss: Using Kubernetes and Apache Ignite!
 
Nike tech-talk-intro-to-apache-ignite
Nike tech-talk-intro-to-apache-igniteNike tech-talk-intro-to-apache-ignite
Nike tech-talk-intro-to-apache-ignite
 
The next-phase-of-distributed-systems-with-apache-ignite
The next-phase-of-distributed-systems-with-apache-igniteThe next-phase-of-distributed-systems-with-apache-ignite
The next-phase-of-distributed-systems-with-apache-ignite
 
Data Modeling with Cassandra and Time Series Data
Data Modeling with Cassandra and Time Series DataData Modeling with Cassandra and Time Series Data
Data Modeling with Cassandra and Time Series Data
 
Diving into DSE Graph
Diving into DSE Graph Diving into DSE Graph
Diving into DSE Graph
 
OSCON TALK: Becoming Friends with Cassandra and Spark
OSCON TALK: Becoming Friends with Cassandra and SparkOSCON TALK: Becoming Friends with Cassandra and Spark
OSCON TALK: Becoming Friends with Cassandra and Spark
 

Último

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Último (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

To Ksql Or Live the KStream

  • 1. who am i user ID Dani Alias DTrapezoid Bg Apache Proj Dist Sys f s Real time event driven Sys slaying legacy How did we get here QqEg 3L ksqeipgggaqqm.o.mg aknafakuatww.sn what are we doing Y KSQL Architecture KSQL Use cases 3 KS Q performance considerations 4 When to use K SQL when to not g introduce KST Reams
  • 2. Ok let's learn more about you
  • 3. What letter best describes your ego on T select hope for your cluster select profit I l select y it depends select make a wish
  • 5. Why does it matter to think about a Query before you eE execute it p P 77 27 n p Lots of led sons
  • 6. we do hit always have control over stuff E ear to I can r jeng'd s g FEI a
  • 7. WH e Iigigggqiioniaz ebay.ki.g.de RDBMS ao.ge ei sa initial use cases thinking Benefits 11 DB integration Broering l Back pressure message bus Decouples systems Pub Sub Distributed Highly Available Lowly latent 0 Data governance Event Driven box wait there's moire as a streaming Platform K2fk2 Streams API
  • 8. Event Driven systems Transform once use many haepwp z I customer µIgsffIe etc ftp.eamprocessing 23 2 1 a Ii ieTfF ii ieIfF KSQL KSTREAMS ice creams
  • 9. 0 Stream ProcessingQ.it Ea hEEyYyEFE'i w Kafka ftp.PEFFEEEF abstracts ihIfEf 9 to KSQL KSTREAMS ffffgt.EE CkafkaastEeamg Let's talk about what KSQL is
  • 10. what happens when you KSQL CREATE STREAM AS SELECT CREATE TABLE AS SELECT 14 Output To P l C Name Default same 2Tstream table Or stoma with KAFKA TOPIC prop WITH clause partitions Default 4 or customise with PARTITIONS prop WITH clause Replication Factor Default RF topic L customial with REPLICAS property WITH clause Aggregations leverage embedded storage engine to locally manage state A compacted changelog topic persistsaggregation state compacted changelogtopics have the same ofpartitions as the input stream Default L replies
  • 11. IS KSQL a better version of SQL tmrw 0 KSQLO O A O 11 I IT Aggregate µ IT 11111T t Ss HT 11111T Join IT Filter HDMI 0 8 connect 0 7 Nfb 0 sink E oTsource 1 0 connect connector T O Eld s ti a EEEtor lot FEt jq.mggEonE0 4 f Eia ago 53 o L.eeEiEfEEiEE.EE tEEBtaaE Golf connect cassandr Ksar is a continuous Queryengine t's a DBA's worst nightmare it's a Query that never
  • 12. why would someone want to use KSQL then Mumia to write EE Stream processing programs simply my Run SQL Queries against date 2g nostoc of programming language my works contrhously in Real time Queries won't Quit until the messages do my Fault tolerant my scales horizontally Vertically f Distributed
  • 13. what does the architecture of Ksa look like EE ii I I I I Ksai clients if EEE SQL Engine www.gesksQLstdtemeuts Quenes rest API itow client aeu.esasffctohememra ee.me 384 tzfnkqgtopykosurtkso.ie Apps w confluentcontrol Ksar server fEosgedneofsikEEEEIYEE.EEaEEa ADD KSQL servers who Restarting APPS
  • 14. https://www.confluent.io/blog/ksql-in-action-real-time-streaming-etl-from-oracle- transactional-data https://www.confluent.io/blog/ksql-in-action-enriching-csv-events-with-data-from-rdbms-into-AWS/ https://docs.confluent.io/current/ksql/docs/developer-guide/transform-a-stream-with-ksql.html https://www.confluent.io/stream-processing-cookbook/ksql-recipes/detecting-abnormal-transactions what are some cool KSQL use cases if t my streaming E 14 RT monitoring rders Kafka CDC 1 4 4 69905 connect elastic login Debezium ksypez.ms Elasticus KSQL T Data Enrichment card Eeo Kwangyez qq.io gEioE9oqzIksapfoko98cnr're'tflog 2 Egg53 Kafkaconnect Debezium KSQL my Data Transformation change data format of message Wes timestamp field of partitions timestamp format of replicas Kafkatopic name F Anomaly Detection create a of time to write to a ksactableftopic collect anomalous behavior WINDOW TUMBLING
  • 15. { "order_id": 1, "customer_name": "Maryanna Andryszczak", "date_of_birth": "1922-06-06T02:21:59Z", "product": "Nut - Walnut, Pieces", "order_total_usd": "1.65", "town": "Portland", "country": "United States" } ksql> CREATE STREAM purchases (order_id INT, customer_name VARCHAR, date_of_birth VARCHAR, product VARCHAR, order_total_usd VARCHAR, town VARCHAR, country VARCHAR) WITH (KAFKA_TOPIC='purchases', VALUE_FORMAT='JSON'); Message ---------------- Stream created ---------------- SELECT * FROM PURCHASES LIMIT 5; SELECT ORDER_ID, PRODUCT, TOWN, COUNTRY FROM PURCHASES WHERE COUNTRY='Germany';
  • 16. CREATE STREAM PUCHASES_GERMANY AS SELECT * FROM PURCHASES WHERE COUNTRY='Germany'; ksql> LIST TOPICS; Kafka Topic | Registered | Partitions | Partition Replicas | Consumers | ConsumerGroups ------------------------------------------------------------- ----------------------------------- _confluent-metrics | false | 12 | 1 | 0 | 0 PUCHASES_GERMANY | true | 4 | 1 | 0 | 0 purchases | true | 1 | 1 | 1 | 1 ------------------------------------------------------------- ----------------------------------- ksql> https://www.confluent.io/stream-processing-cookbook/ksql- recipes/data-filtering Let's just get the German orders on one topic1 table cool Now we have all the purchases from Germany in a separate topic Try it if
  • 17. https://docs.confluent.io/current/ksql/docs/capacity- planning.html HttRDWARET Performance Considerations MemoryCPU Resource used by 0h heap message SQL to serialize 2 Processing des endre messages off heap Aggregations to KStreams ktables then executequeries Joins 4 cores min 32GB Min Network Disk Aggregations I join Always the persist temp state today Biggest bottle 100 GB SSD s min heck for good throughput I GBit Nlc people into Mr
  • 18. Sizing considerations It may need to add more brokers KSQL Queries consume I produce from topics Repartitioning stateful Queries mean changelog topics Throughput Decreases relative to every count due to message sculcomplexity Query Types project joins AggregationsFilter 2X CPU sumSELECT COUNT FROM ETC WHERE
  • 19. What about headless TIP D Test in deployment indeYET.info Yekssg ii JVM I af s E0ag TDEEjagTOE.gg path to confluent bin1kSqlnodequery file pathltolmyquery Sql create Drop streams start Stop Queries Start Server nodes Already using k8s VC your workflow
  • 20. When to use KSQL when to not are you a Java team How will you deploy what hardware do you have access to 8 Do you want to be overlord maintainer
  • 21. Kafka Streams Processer API low level Imperative customizable streams API built in abstractions Functional KSTREAM KTABLE GLOBAL K TABLE Stateless Stateful transformations
  • 22. RADHA g t gqIt affstrapezoidFooloewarnmmore D g2 bout Kafka my dog my losing battle against the girl scouts of America
  • 23. https://mockaroo.com/ EYE 99 earn more j F YEE FEELEY more Yekikes l get Ksac what if l want to use differentdats https://docs.confluent.io/ current/ksql/docs/index.html https://www.confluent.io/ stream-processing-cookbook/ https://docs.confluent.io/ current/streams/concepts.html