Build Low-Latency Rust Applications on ScyllaDB

ScyllaDB 1,036 views 19 slides Aug 29, 2024
Slide 1
Slide 1 of 19
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19

About This Presentation

Get practical tips for building high-performance Rust apps for real-time data streaming

During this free interactive workshop oriented for developers, engineers, and architects, you will learn how to:

- Create and compile a sample social media app with Rust
- Connect the application to ScyllaDB (N...


Slide Content

Felipe Cardeneti Mendes, Technical Director, ScyllaDB
Tim Koopmans, Product Experience, ScyllaDB

Build Low-Latency
Applications in Rust
on ScyllaDB

Poll:
Where are you in
your NoSQL adoption?

Felipe Cardeneti Mendes, Technical Director, ScyllaDB
Tim Koopmans, Product Experience, ScyllaDB
Build Low-Latency
Applications in Rust
on ScyllaDB

+For data-intensive applications that require high
throughput and predictable low latencies
+Close-to-the-metal design takes full advantage of
modern infrastructure
+>5x higher throughput
+>20x lower latency
+>75% TCO savings
+Compatible with Apache Cassandra and Amazon
DynamoDB
+DBaaS/Cloud, Enterprise and Open Source
solutions

The Database for Gamechangers
“ScyllaDB stands apart...It’s the rare product
that exceeds my expectations.”
– Martin Heller, InfoWorld contributing editor and reviewer
“For 99.9% of applications, ScyllaDB delivers all the
power a customer will ever need, on workloads that other
databases can’t touch – and at a fraction of the cost of
an in-memory solution.”
– Adrian Bridgewater, Forbes senior contributor

+400 Gamechangers Leverage ScyllaDB
Seamless experiences
across content + devices
Digital experiences at
massive scale
Corporate fleet
management
Real-time analytics 2,000,000 SKU -commerce
management
Video recommendation
management
Threat intelligence service
using JanusGraph
Real time fraud detection
across 6M transactions/day
Uber scale, mission critical
chat & messaging app
Network security threat
detection
Power ~50M X1 DVRs with
billions of reqs/day
Precision healthcare via
Edison AI
Inventory hub for retail
operations

Property listings and
updates
Unified ML feature store
across the business
Cryptocurrency exchange
app
Geography-based
recommendations
Global operations- Avon,
Body Shop + more
Predictable performance for
on sale surges
GPS-based exercise
tracking
Serving dynamic live
streams at scale
Powering India's top
social media platform
Personalized
advertising to players
Distribution of game
assets in Unreal Engine

Presenters
Felipe Cardeneti Mendes, Technical Director
+Puppy Lover
+Open Source Enthusiast
+ScyllaDB passionate!

Tim Koopmans, Product Experience
+Rust devy
+Marathon Swimmer
+Love all things P99

Agenda

●Background: Why Rust, Tokio, ScyllaDB?
●App Walkthrough
●The ScyllaDB Rust driver
●Let's break it!

+Asynchronous, non-blocking runtimes
+Tokio: Most widely used Rust runtime
+Seastar: C++ runtime for ScyllaDB
+Fast, flexible, and reliable
+Scalable, allows high concurrency and low latency
+Green and sustainable
Why Rust? Why Tokio? Why ScyllaDB?
Rust Driver ScyllaDB

Low latency, close
to hardware schedulers
Perfect horizontal & vertical scale
1000 Nodes Cluster
2000 Cluster
K8S Deployment
TBs per Node 256 Cores per Node
1B Operations
per Second
About ScyllaDB: Fast and Scalable

Poll:
How proficient are you
with the Rust language?

Social Network App

BUT...
We need a Driver!
:-)

ScyllaDB Native Rust Driver

1.cargo add scylla
2.Follow examples
3.Profit!
Getting Started

Crate Features
See SerializeCql

Let’s Code

Poll:
What databases do you
use (or plan to use)
for Rust Apps?

Performance Pitfalls
of Rust Async Function
Pointers (And Why It
Might Not Matter)
Byron Wasti
Founder & CEO at Balter Load Testing
Guilherme Nogueira
[email protected]
Q&A
Rust + io_uring + ktls:
How Fast Can We Make
HTTP?
Amos Wenger
Creator of Faster Than Lime
Rust: A Productive
Language for Writing
Database Applications
Carl Lerche
Principal Engineer at AWS
ONLINE | OCT 23 + 24

Thank you
for joining us today.
@scylladb scylladb/
slack.scylladb.com@scylladb company/scylladb/
scylladb/
Tags