14. ksqlDB at a glance
What is it?
ksqlDB is an event-streaming
database for working with
streams and tables of data
All the key features of a
modern streaming solution
Aggregations Joins
Windowing
Event-time
Dual query
support
Exactly-once
semantics
Out-of-order
handling
User-defined
functions
CREATE TABLE activePromotions AS
SELECT rideId,
qualifyPromotion(distanceToDst) AS
promotion
FROM locations
GROUP BY rideId
EMIT CHANGES
How does it work?
It separates compute from storage, and scales
elastically in a fault-tolerant manner
It remains highly available during disruption, even in
the face of failure to a quorum of its servers
19. Filters CREATE STREAM high_readings AS
SELECT sensor,
reading,
FROM readings
WHERE reading > 41
EMIT CHANGES;
** The above “Create Stream As Select (CSAS)” statement is a Persistent Query that runs
indefinitely and produces the resulting stream backed by a new topic “high readings”.
20. Joins
CREATE STREAM enriched_readings AS
SELECT reading, area, brand_name,
FROM readings
INNER JOIN brands b
ON b.sensor = readings.sensor
EMIT CHANGES;
21. Aggregate CREATE TABLE avg_readings AS
SELECT sensor,
AVG(reading) AS location
FROM readings
GROUP BY sensor
EMIT CHANGES;
** The above “Create Table As Select (CTAS)” statement is a Persistent Query that runs indefinitely
and produces the resulting table backed by a new topic “avg_readings”.
25. Ably = Kafka for the public Internet
Ably is a realtime experiences infrastructure platform
designed for streaming large volumes of event data
over the public Internet.
28. What does Ably provide?
28
Predictable performance
Low-latency global edge network across 385 PoPs. Global median
latencies of <65ms.
Guaranteed ordering & delivery
We guarantee in-order and exactly once data delivery, even after
disconnections.
Fault tolerant infrastructure
Redundant at regional and global levels with 99.999% uptime SLAs.
High scalability & availability
Elastic, battle-tested global infrastructure for massive, instant scale.
32. Copyright 2020, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express written permission of Confluent, Inc. 33
Play the Game!!!
33. Copyright 2020, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express written permission of Confluent, Inc.
34. Copyright 2020, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express written permission of Confluent, Inc.