WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:02.794
We built a real-time pipeline,

00:00:04.713 --> 00:00:07.173
so leadership can ignore insights...

00:00:07.173 --> 00:00:09.467
...at millisecond speeds.

00:00:13.013 --> 00:00:14.347
What was the question?

00:00:17.976 --> 00:00:18.810
Okay, sorry,

00:00:18.810 --> 00:00:21.521
I had a quick problem in database,

00:00:21.521 --> 00:00:22.230
but no worries.

00:00:22.230 --> 00:00:23.023
All

00:00:23.023 --> 00:00:23.732
200PB

00:00:23.732 --> 00:00:24.774
200PB recovered.

00:00:24.774 --> 00:00:25.483
*chuckles*

00:00:25.483 --> 00:00:26.359
Big data.

00:00:26.359 --> 00:00:28.862
Most companies don't actually have big data

00:00:28.862 --> 00:00:30.321
they have medium data.

00:00:30.321 --> 00:00:32.073
Big data is anything

00:00:32.073 --> 00:00:33.199
Big data is anything that crashes Excel.

00:00:33.199 --> 00:00:35.410
We actually have two big datas...

00:00:35.410 --> 00:00:36.745
...for fault tolerance.

00:00:36.745 --> 00:00:38.413
Two wrongs don't make a right.

00:00:38.413 --> 00:00:39.289
...except in 

00:00:39.289 --> 00:00:40.749
a distributed database.

00:00:40.749 --> 00:00:41.916
Big data is different math.

00:00:42.292 --> 00:00:43.084
1+1

00:00:44.085 --> 00:00:45.128
≈1.9.

00:00:45.128 --> 00:00:46.171
95%

00:00:46.171 --> 00:00:47.338
95% confidence interval.

00:00:47.338 --> 00:00:49.507
Our 15-million-row dataset

00:00:49.507 --> 00:00:51.426
has 800 columns.

00:00:51.426 --> 00:00:52.969
The rows aren't wide.

00:00:53.636 --> 00:00:54.387
They are panoramic.

00:00:54.387 --> 00:00:56.431
If the join fits in memory,

00:00:56.431 --> 00:00:57.682
it belongs in Postgres.

00:00:57.682 --> 00:01:00.727
Our architecture preserves every invariant

00:01:00.727 --> 00:01:01.811
except the budget.

00:01:01.811 --> 00:01:04.481
Our cloud bill was $340,000.

00:01:04.481 --> 00:01:06.858
We don't know if the processing even ran,

00:01:06.858 --> 00:01:08.276
That was just observability.

00:01:08.276 --> 00:01:10.403
We support real-time processing,

00:01:10.403 --> 00:01:11.029
of course,

00:01:11.029 --> 00:01:12.530
unless the event arrives

00:01:12.530 --> 00:01:13.364
unless the event arrives early,

00:01:13.364 --> 00:01:14.365
unless the event arrives early, late,

00:01:14.365 --> 00:01:15.450
unless the event arrives early, late, duplicated,

00:01:15.450 --> 00:01:16.284
unless the event arrives early, late, duplicated, malformed

00:01:17.410 --> 00:01:18.244
unless the event arrives early, late, duplicated, malformed, reordered.

00:01:18.244 --> 00:01:20.205
Eventual consistency was too hard,

00:01:20.205 --> 00:01:22.123
so we went with ‘immediately inaccurate’.

00:01:22.123 --> 00:01:24.542
70% of records are accurate.

00:01:24.542 --> 00:01:26.169
That's higher than the weather forecast.

00:01:26.169 --> 00:01:28.171
The numbers are not wrong.

00:01:28.171 --> 00:01:29.422
They are early.

00:01:29.422 --> 00:01:30.965
Wait two, three, maybe...

00:01:30.965 --> 00:01:31.925
...four days,

00:01:31.925 --> 00:01:33.426
they will be late.

00:01:33.426 --> 00:01:35.804
It's almost interactive analytics.

00:01:35.804 --> 00:01:37.680
‘Final numbers’ mean

00:01:37.680 --> 00:01:38.807
numbers

00:01:38.807 --> 00:01:40.558
we have stopped refreshing...

00:01:40.558 --> 00:01:41.643
The slide says

00:01:41.643 --> 00:01:43.561
we handle billions of events.

00:01:43.561 --> 00:01:45.522
It does not say we handle them well.

00:01:45.522 --> 00:01:47.565
It is only truly idempotent

00:01:47.565 --> 00:01:50.026
if all availability zones go down

00:01:50.026 --> 00:01:51.361
equally during the outage.

00:01:51.986 --> 00:01:53.196
Management...

00:01:53.196 --> 00:01:56.116
Management asked us to build a data lake,

00:01:56.116 --> 00:01:58.076
but it wasn't scalable enough.

00:01:58.743 --> 00:02:00.328
So McKinsey asked us to build a

00:02:00.328 --> 00:02:01.121
data swamp.

00:02:01.121 --> 00:02:03.373
The project was declared successful

00:02:03.373 --> 00:02:06.501
before all the metrics arrived.

00:02:06.501 --> 00:02:07.961
We call that watermarking.

00:02:07.961 --> 00:02:09.754
The dashboard is green because the job

00:02:09.754 --> 00:02:11.464
that checks if the dashboard is wrong

00:02:11.464 --> 00:02:12.215
is red.

00:02:12.215 --> 00:02:13.758
Ah, what happened here?

00:02:13.758 --> 00:02:15.385
Let me quickly roll back...

00:02:15.385 --> 00:02:17.137
...30 billion events.

00:02:17.137 --> 00:02:19.681
A production workaround becomes durable

00:02:19.681 --> 00:02:20.890
the moment the engineer

00:02:21.266 --> 00:02:22.517
who wrote it leaves.

00:02:22.517 --> 00:02:23.143
Yes,

00:02:23.143 --> 00:02:24.811
We removed an unused column,

00:02:24.811 --> 00:02:25.895
and it broke

00:02:25.895 --> 00:02:26.521
 Portugal.

00:02:26.521 --> 00:02:29.524
The bug has existed for eight years.

00:02:29.524 --> 00:02:30.525
At this point,

00:02:30.525 --> 00:02:31.442
it’s an interface.

00:02:31.442 --> 00:02:33.069
Quick Slack message.

00:02:34.445 --> 00:02:35.947
20TB lost again.

00:02:35.947 --> 00:02:37.824
This is our architecture.

00:02:37.824 --> 00:02:38.616
Very simple.

00:02:38.616 --> 00:02:39.450
Kafka,

00:02:39.450 --> 00:02:40.243
Kafka, Airflow,

00:02:40.243 --> 00:02:41.202
Kafka, Airflow, Databricks,

00:02:41.202 --> 00:02:41.911
Kafka, Airflow, Databricks, Flink,

00:02:41.911 --> 00:02:42.745
Kafka, Airflow, Databricks, Flink, Spark,

00:02:42.745 --> 00:02:43.288
Kafka, Airflow, Databricks, Flink, Spark, SQL,

00:02:43.288 --> 00:02:44.122
Kafka, Airflow, Databricks, Flink, Spark, SQL, Iceberg,

00:02:44.122 --> 00:02:44.914
Kafka, Airflow, Databricks, Flink, Spark, SQL, Iceberg, S3,

00:02:44.914 --> 00:02:45.707
Kafka, Airflow, Databricks, Flink, Spark, SQL, Iceberg, S3, Presto,

00:02:45.707 --> 00:02:46.666
Kafka, Airflow, Databricks, Flink, Spark, SQL, Iceberg, S3, Presto, dbt.

00:02:46.666 --> 00:02:48.168
What does dbt stand for?

00:02:48.168 --> 00:02:49.669
Dialectical behavioral therapy.

00:02:49.669 --> 00:02:51.004
We need that to avoid going

00:02:51.004 --> 00:02:51.796
cra-.

00:02:51.796 --> 00:02:53.715
We have the most modern stack

00:02:53.715 --> 00:02:54.549
in the industry.

00:02:54.549 --> 00:02:55.592
Only 10% is

00:02:55.592 --> 00:02:56.342
Only 10% is COBOL.

00:02:56.342 --> 00:02:57.677
HDFS is not dead.

00:02:57.677 --> 00:02:58.761
It's waiting for someone

00:02:58.761 --> 00:02:59.679
with root access.

00:02:59.679 --> 00:03:02.557
We migrated from cron to Airflow

00:03:02.557 --> 00:03:03.516
for reliability.

00:03:03.516 --> 00:03:05.101
Then we wrote a cron job

00:03:05.101 --> 00:03:06.853
to check if Airflow silently died.

00:03:06.853 --> 00:03:09.480
We would switch from Databricks to Excel.

00:03:09.480 --> 00:03:11.524
If it wasn't for date parsing,

00:03:11.524 --> 00:03:13.568
We are a data-driven company, of course.

00:03:13.568 --> 00:03:15.403
Every week somebody reads the invoices

00:03:15.403 --> 00:03:16.738
out of PDFs

00:03:16.738 --> 00:03:18.114
 and types the data into Excel.

00:03:18.114 --> 00:03:20.074
Running on Kubernetes.

00:03:20.074 --> 00:03:21.701
We moved from Hive tables

00:03:21.701 --> 00:03:22.619
to Iceberg tables

00:03:22.619 --> 00:03:24.704
because we wanted the metadata to fail.

00:03:24.704 --> 00:03:25.872
...to fail with better governance,

00:03:25.955 --> 00:03:28.291
Last week, we had some ransomware attack...

00:03:28.291 --> 00:03:29.083
we did eh...

00:03:29.083 --> 00:03:30.585
we lost the backups, yes.

00:03:30.585 --> 00:03:32.170
Whenever we lose a backup,

00:03:32.170 --> 00:03:34.464
we reconstruct what the customer did

00:03:34.464 --> 00:03:35.423
from the logs.

00:03:35.423 --> 00:03:36.799
No, that's one of our

00:03:36.799 --> 00:03:38.176
industry's best practices.

00:03:38.176 --> 00:03:39.802
Our customers didn't even know.

00:03:39.802 --> 00:03:42.055
To be honest, most of our customers

00:03:42.055 --> 00:03:43.640
don't even use our product anyway.

00:03:43.640 --> 00:03:46.392
The board deck says petabyte scale, yeah.

00:03:46.392 --> 00:03:48.603
Scale is a direction, not a quantity.

00:03:48.603 --> 00:03:49.979
I checked with legal.

00:03:49.979 --> 00:03:51.648
Management says 1PB.

00:03:51.648 --> 00:03:52.690
I checked, yeah,

00:03:52.690 --> 00:03:54.359
we only process 18TB,

00:03:54.359 --> 00:03:55.568
but we round up,

00:03:55.568 --> 00:03:58.571
Our P99 is 4 minutes,

00:03:58.571 --> 00:04:00.490
but the P50 is excellent,

00:04:00.490 --> 00:04:02.283
and most people are median.

00:04:02.283 --> 00:04:04.118
Streaming gets simple

00:04:04.118 --> 00:04:05.745
once you understand watermarks

00:04:05.745 --> 00:04:08.957
, event time, processing time,

00:04:08.957 --> 00:04:10.667
state, backpressure,

00:04:10.667 --> 00:04:13.086
Batch and streaming

00:04:13.086 --> 00:04:14.921
produce different numbers.

00:04:14.921 --> 00:04:16.005
We average them.

00:04:16.005 --> 00:04:18.132
Our recommendation pipeline

00:04:18.132 --> 00:04:19.884
had three hours of Kafka lag.

00:04:19.884 --> 00:04:21.719
So technically it was a real-time

00:04:21.719 --> 00:04:23.554
recommendation for your past self.

00:04:23.596 --> 00:04:25.139
Kafka rebalanced often,

00:04:25.139 --> 00:04:26.474
I started listing it under

00:04:26.474 --> 00:04:27.475
team-building activities.

00:04:27.475 --> 00:04:30.103
We decoupled storage and compute

00:04:30.812 --> 00:04:32.730
  Now the storage team and the compute team

00:04:32.730 --> 00:04:34.399
have separate outages.

00:04:34.399 --> 00:04:36.359
Ah, again,

00:04:36.359 --> 00:04:37.944
we lost the logs from Tuesday.

00:04:37.944 --> 00:04:38.736
The data team?

00:04:38.945 --> 00:04:40.989
The data team has excellent isolation.

00:04:40.989 --> 00:04:42.407
We haven't spoken to Product

00:04:42.407 --> 00:04:43.449
in seven months.

00:04:43.449 --> 00:04:45.410
All problems become your problems

00:04:45.410 --> 00:04:47.078
at 1TB/hour.

00:04:47.287 --> 00:04:49.372
Exactly-once processing is easy.

00:04:49.372 --> 00:04:49.998
You just need...

00:04:49.998 --> 00:04:51.332
...two topics

00:04:51.332 --> 00:04:52.500
...two topics, transactions

00:04:52.500 --> 00:04:53.251
...two topics, transactions, offsets,

00:04:53.251 --> 00:04:54.460
...two topics, transactions, offsets, recovery states,

00:04:55.461 --> 00:04:57.005
and a relaxed interpretation of “easy.”

00:04:57.005 --> 00:04:58.923
GDPR in a data warehouse.

00:04:59.424 --> 00:05:00.591
There's a funny joke.

00:05:00.925 --> 00:05:02.260
We anonymized the data...

00:05:02.260 --> 00:05:03.594
...by removing the column

00:05:03.594 --> 00:05:04.095
‘name’.

00:05:04.095 --> 00:05:06.014
We persist it in places

00:05:06.014 --> 00:05:07.515
nobody knows how to query.

00:05:07.807 --> 00:05:10.893
The only thing in this company

00:05:10.893 --> 00:05:13.438
...is a bad architectural decision.

00:05:13.438 --> 00:05:16.941
Salary, job security, holidays,

00:05:16.941 --> 00:05:17.608
pick two.

00:05:17.608 --> 00:05:18.776
 CAP-compliant.

00:05:18.776 --> 00:05:20.528
Can we have this by Friday?

00:05:20.528 --> 00:05:22.280
In distributed systems,

00:05:22.280 --> 00:05:23.865
what does Friday mean?

00:05:23.865 --> 00:05:24.782
Before the meeting,

00:05:24.782 --> 00:05:26.409
it's only a partial order.

00:05:26.409 --> 00:05:27.744
The project isn't late.

00:05:27.744 --> 00:05:29.579
The clocks just disagree.

00:05:29.579 --> 00:05:31.706
It's a distributed organization.

00:05:31.706 --> 00:05:32.665
Every quarter,

00:05:32.665 --> 00:05:34.250
we solve capacity problems...

00:05:34.250 --> 00:05:35.835
...by increasing input.

00:05:35.835 --> 00:05:38.338
We maintain system availability

00:05:38.338 --> 00:05:39.339
by shedding

00:05:39.339 --> 00:05:40.173
by shedding Jira tickets.

00:05:40.173 --> 00:05:43.301
Last year, they fired 80% of our team

00:05:43.301 --> 00:05:44.344
as part of our...

00:05:44.927 --> 00:05:46.763
...“operational transformation.”

00:05:46.763 --> 00:05:48.890
They should have used CRDTs instead.

00:05:48.890 --> 00:05:50.683
A backfill is when you fix

00:05:50.683 --> 00:05:50.850
one historical bug by introducing

00:05:50.850 --> 00:05:51.768
one historical bug by introducing

00:05:51.768 --> 00:05:52.727
one historical bug by introducing

00:05:52.727 --> 00:05:53.686
a brand-new

00:05:53.686 --> 00:05:54.604
 historical bug.

00:05:54.604 --> 00:05:56.647
The Snowflake warehouse runs

00:05:56.647 --> 00:05:58.775
a 2-second query every minute,

00:05:58.775 --> 00:06:00.109
Very sophisticated way

00:06:00.109 --> 00:06:01.944
of never letting it turn off.

00:06:01.944 --> 00:06:03.571
Artificial intelligence?

00:06:03.571 --> 00:06:04.113
No.

00:06:04.113 --> 00:06:05.531
We still rely on

00:06:05.531 --> 00:06:05.948
human

00:06:05.948 --> 00:06:07.325
human single point of failure.

00:06:07.325 --> 00:06:07.700
Yes.

00:06:07.700 --> 00:06:08.284
Yes, David.

00:06:12.163 --> 00:06:13.498
It’s a game.

00:06:13.664 --> 00:06:15.958
You pull something from the bottom,

00:06:15.958 --> 00:06:17.543
everything falls apart.

00:06:17.543 --> 00:06:19.879
It's educational game for industry...

00:06:19.962 --> 00:06:24.384
...back in 2016 learning Hadoop

00:06:24.384 --> 00:06:25.468
...in the simple

00:06:25.468 --> 00:06:27.053
...in the simple 760 steps.

00:06:27.053 --> 00:06:29.222
That's right, Hadoop certified,

00:06:29.222 --> 00:06:30.598
Cloudera certified.

00:06:30.598 --> 00:06:32.809
Cloudera no longer offers this cert.

00:06:33.559 --> 00:06:35.561
We migrated to Apache Iceberg this year...

00:06:36.771 --> 00:06:38.272
Quick

00:06:38.272 --> 00:06:39.649
43-month migration.

00:06:39.649 --> 00:06:41.192
We still use protobuf.

00:06:41.192 --> 00:06:42.777
Yes, we are still confused,

00:06:42.777 --> 00:06:44.195
but at least confused...

00:06:44.195 --> 00:06:45.446
...strongly typed.

00:06:45.446 --> 00:06:47.240
Some say data is the new oil.

00:06:47.240 --> 00:06:47.782
*chuckles*

00:06:47.782 --> 00:06:49.534
We cannot stop producing it,

00:06:49.534 --> 00:06:53.079
and we will pay to clean it up for years.

00:06:53.079 --> 00:06:53.913
From what I see,

00:06:53.913 --> 00:06:55.289
data is the new asbestos.

00:06:55.289 --> 00:06:56.332
The AI teams...

00:06:56.999 --> 00:06:57.875
...spent $4 million

00:06:57.875 --> 00:06:59.168
and it called investment.

00:06:59.168 --> 00:07:01.712
I spent $340,000...

00:07:01.712 --> 00:07:03.172
...and this called a review.

00:07:03.172 --> 00:07:05.967
I'm in a FinOps review every Thursday.

00:07:05.967 --> 00:07:08.344
The AI team has never, ever

00:07:08.344 --> 00:07:09.262
been to FinOps.

00:07:09.262 --> 00:07:11.264
They have a different word for money.

00:07:11.264 --> 00:07:13.057
My cluster is a cost center,

00:07:13.057 --> 00:07:14.892
their cluster is a strategy.

00:07:14.892 --> 00:07:17.145
Same rack in AWS.

00:07:17.145 --> 00:07:18.396
Where are my...

00:07:18.396 --> 00:07:19.605
There are my glasses.

00:07:20.064 --> 00:07:20.898
Bah!

00:07:20.898 --> 00:07:23.693
Ah, only disk usage 80%,

00:07:23.693 --> 00:07:24.777
this is sweet spot.

00:07:24.777 --> 00:07:26.279
A soft outage is when

00:07:26.279 --> 00:07:28.823
the checkpoint directory grows faster...

00:07:28.823 --> 00:07:31.117
...than S3 versioning can bill.

00:07:31.117 --> 00:07:33.244
Back in the days, big data means

00:07:33.244 --> 00:07:35.496
you bring the intelligence to the data.

00:07:35.496 --> 00:07:38.541
That’s why I go straight to Big Data center

00:07:42.336 --> 00:07:44.547
we have two big data centers

00:07:44.547 --> 00:07:46.257
...for fault tolerance.

00:07:46.257 --> 00:07:48.634
I wanted to become simple app developer.

00:07:48.634 --> 00:07:50.219
Take app, build it,

00:07:50.219 --> 00:07:52.180
host it on Railway, no problems.

00:07:52.180 --> 00:07:53.514
No thinking required.

00:07:53.514 --> 00:07:54.974
I can go on holidays.

00:07:54.974 --> 00:07:57.852
But the team came with Airflow graph,

00:07:57.852 --> 00:07:58.895
We use what?

00:07:58.895 --> 00:07:59.896
1, 2, 3, 4,

00:07:59.896 --> 00:08:01.230
13, 14,

00:08:01.230 --> 00:08:02.148
23,

00:08:02.148 --> 00:08:04.525
6,400 services...

00:08:04.525 --> 00:08:06.319
...just to clean the logs.

00:08:06.319 --> 00:08:07.570
Whole dashboard?

00:08:07.570 --> 00:08:08.946
you need whole company.

00:08:10.573 --> 00:08:12.116
I am on-call today

00:08:12.116 --> 00:08:13.159
Yes.

00:08:13.159 --> 00:08:15.036
As you can see.

00:08:15.077 --> 00:08:16.412
Oh, I turned my phone off.

00:08:16.412 --> 00:08:18.039
If it burns, it burns.

00:08:18.039 --> 00:08:20.291
I don't have keys to servers anyway.

00:08:20.291 --> 00:08:21.042
What am I gonna do?

00:08:21.042 --> 00:08:22.835
I'm not ignoring Slack.

00:08:22.835 --> 00:08:25.796
I'm just following our

00:08:25.796 --> 00:08:26.714
load-shedding policy.

