쉐도잉 연습: System Design: Why is Kafka fast? - 영상으로 영어 말하기 배우기

로딩 중...
1
Why is Kafka fast?
2
What is the secret?
3
We will talk about it in this video.
4
Let's dive right in.
5
We'll first start by acknowledging that the term fast is ambiguous.
6
What does it even mean that Kafka is fast?
7
Are we talking latency?
8
Are we talking throughput?
9
Is fast compared to what?
10
Kafka is optimized for high throughput.
11
It is designed to move a large number of records in a short amount of time.
12
Think of it as a very large pipe moving liquid.
13
The bigger the diameter of the pipe, the larger the volume of liquid that can move through it.
14
So when someone says Kafka is fast, they usually refer to Kafka's ability to move a lot of data efficiently.
15
What are some of the design decisions that help Kafka move a lot of data quickly?
16
There are many design decisions that contributed to Kafka's performance.
17
In this video, we'll focus on two.
18
We think these two carry the most weight.
19
The first one is Kafka's reliance on sequential I.O.
20
What is sequential I.O.?
21
Let's dig deeper into that.
22
There's a common misconception that disk access is slow compared to memory access.
23
But this largely depends on data access patterns.
24
There are two types of disk access patterns, random and sequential.
25
For hard drives, it takes time to physically move the arm to different locations on the magnetic disks.
26
This is what makes random access slow.
27
For sequential access though, since the arm doesn't need to jump around it is much faster to read
28
and write blocks of data one after the other kafka takes
29
advantage of this by using an append only log as its primary data structure
30
and the pen only log adds new data to the end
31
of the file this access pattern is sequential now let's bring
32
this idea home with some numbers on modern hardware with an
33
array of this hard disks sequential will write reach hundreds of megabytes per second,
34
while random writes are measured in hundreds of kilobytes per second.
35
Sequential access is several order of magnitude faster.
36
Using hard disks has its cost advantage too.
37
Compared to SSD, hard disks come as one-third of the price, but with about three times the capacity.
38
Giving Kafka a large pool of cheap disk space without any performance penalty, means that Kafka can cost-effectively retain messages for a long period of time,
39
a feature that was uncommon to messaging systems before Kafka.
40
The second design choice that gives Kafka its performance advantage is its focus on efficiency.
41
Kafka has moved a lot of data from network to disk and then from disk to network.
42
It is critically important to eliminate excess copy when moving pages and pages of data between the disk and the network.
43
This is where zero copy principle comes into the picture.
44
Modern Unix operating systems are highly optimized to transfer data from disk to network without copying data excessively.
45
Let's dive deeper to see how this is done.
46
First, we look at how Kafka sends a page of data on disk to the consumer
47
when zero copy is not used at all.
48
First, the data is loaded from disk to the OS cache.
49
Second, the data is copied from the OS cache into the Kafka application.
50
Third, the data is copied from Kafka to the socket buffer.
51
And fourth, the data is copied from the socket buffer to the network interface card buffer.
52
And finally, the data is sent over the network to the consumer.
53
Now this is clearly inefficient.
54
There are four copies and two system calls.
55
Now let's compare this to zero copy.
56
The first step is the same.
57
The data page is loaded from the disk to the OS cache.
58
With zero copy, the Kafka application uses a system call called send file to
59
tell the operating system to directly copy the data from the OS cache to the network interface card buffer.
60
In this optimized path, the only copy is from the OS cache into the network card buffer.
61
With a modern network card, this copying is done with DMA.
62
DMA stands for Direct Memory Access.
63
When DMA is used, the CPU is not involved, making it even more efficient.
64
To recap, sequential I.O and zero copy principle are the cornerstone to Kafka's high performance.
65
Kafka uses other techniques to squeeze every ounce of performance of modern hardware, but these two are the most important in our view.
66
If you'd like to learn more about system design, check out our books and weekly newsletter.
67
Please subscribe if you learned something new.
68
Thank you so much and we'll see you next time.

컨텍스트와 배경

이 비디오는 "카프카가 왜 빠른가"에 대해 설명하는 기술적 내용이지만, 영어 회화 연습에 좋은 자료입니다. 전문 용어가 포함되어 있지만, 명확한 발음과 논리적인 구조가 돋보여 shadowspeaks 연습에 적합합니다. 기술 주제의 대화를 통해 영어로 복잡한 내용을 전달하는 능력을 키울 수 있습니다.

일상 대화에 쓸 수 있는 인기 표현 5가지

  • Let's dive right in - 바로 시작해 봅시다. (자연스럽게 대화를 진행할 때 사용)
  • Think of it as - ~라고 생각해 보세요. (비유를 할 때 유용)
  • Dig deeper into that - 자세히 알아봅시다. (추가 설명을 요청하거나 제공할 때)
  • Bring this idea home with - ~로 이해를 돕겠습니다. (예시로 설명할 때)
  • Eliminate excess copy - 불필요한 복사를 제거하다. (기술적 내용에서 효율성을 강조할 때)

Shadow speech 연습 가이드: 단계별 방법

이 비디오는 발음과 리듬이 중요한데, shadow speak 연습을 통해 영어 발음 교정과 동시에 회화 능력을 키울 수 있습니다. 다음 단계를 따라 해 보세요:

  1. 1단계: 듣고 따라하기 - 5초 간격으로 비디오를 멈추며 "Let's dive right in"과 같은 구문을 반복합니다. 발음의 강세와 억양을 주의깊게 따라합니다.
  2. 2단계: 속도 조절하기 - 처음에는 느린 속도로 연습하고, 점차 원래 속도에 맞춥니다. "Think of it as"와 같은 구문은 자연스럽게 연결되는 부분을 주의하세요.
  3. 3단계: 녹음하고 비교하기 - 자신의 목소리를 녹음해 원본과 비교합니다. 영어 발음 교정이 필요한 부분을 찾아 반복 연습합니다.

이 방법으로 하루 10분만 연습해도 shadow speech 실력이 빠르게 향상됩니다. 영어 회화 연습은 지속적인 노력이 중요하니, 매일 꾸준히 해 보세요!

쉐도잉이란? 영어 실력을 빠르게 키우는 과학적 방법

쉐도잉(Shadowing)은 원래 전문 통역사 훈련을 위해 개발된 언어 학습 기법으로, 다언어 학자인 Dr. Alexander Arguelles에 의해 대중화된 방법입니다. 핵심 원리는 간단하지만 매우 강력합니다: 원어민의 영어를 들으면서 1~2초의 짧은 지연으로 즉시 소리 내어 따라 말하는 것——마치 '그림자(shadow)'처럼 화자를 따라가는 것입니다. 문법 공부나 수동적인 청취와 달리, 쉐도잉은 뇌와 입 근육이 동시에 실시간으로 영어를 처리하고 재현하도록 훈련합니다. 연구에 따르면 이 방법은 발음 정확도, 억양, 리듬, 연음, 청취력, 말하기 유창성을 크게 향상시킵니다. IELTS 스피킹 준비와 자연스러운 영어 소통을 원하는 분들에게 특히 효과적입니다.