Shadowing Practice: CAP Theorem Simplified - Learn English Speaking with Video

Elige un modo de práctica

Cada modo abre una sala de práctica a pantalla completa.

82 oraciones
Si las oraciones son demasiado cortas o largas, haz clic en Editar para ajustarlas.
1
What is CAP theorem?
2
How useful is it to system design?
3
Let's take a look.
4
The CAP theorem is a concept in computer science that explains the trade-offs between consistency,
5
availability, and partition tolerance in distributed systems.
6
Consistency refers to the property of a system where all nodes have a consistent view of the data.
7
It means all clients see the same data at the same time,
8
no matter which node they connect to.
9
Availability refers to the ability of a system to respond to requests from users at all times.
10
Partition tolerance refers to the ability of a system to continue operating even if there is a network partition.
11
But what is a network partition?
12
A network partition happens when nodes in a distributed system are unable to communicate with each other due to network failures.
13
When there is a network partition,
14
a system must choose between consistency and availability.
15
If the system prioritizes consistency,
16
it may become unavailable until the partition is resolved.
17
If the system prioritizes availability,
18
it may allow updates to the data.
19
This could result in data inconsistencies until the partition is resolved.
20
Now let's go through a concrete example.
21
Let's say we have a tiny bank with two ATMs connected over the network.
22
The ATM supports three operations,
23
deposit, withdrawal, and check balance.
24
No matter what happens, the balance should never go below zero.
25
There is no central database in this bank to keep the account balance.
26
It is stored on both ATMs.
27
When a customer uses an ATM,
28
the balance is updated on both ATMs over the network.
29
This ensures that the ATMs have a consistent view of the account balance.
30
If there is a network partition and the ATMs are unable to communicate with each other,
31
the system must choose between consistency and unavailability.
32
If the bank prioritizes consistency,
33
the ATM may refuse to process deposits or withdrawals until the partition is resolved.
34
This ensures that the balance remains consistent,
35
but the system is unavailable to customers.
36
If the bank prioritizes availability,
37
the ATM may allow deposits and withdrawals to occur,
38
but the balance may become inconsistent until the partition is resolved.
39
When there is a network partition,
40
the customer could withdraw the entire balance from both ATMs.
41
When the network comes back online,
42
the inconsistency is resolved and now the balance is negative.
43
That is not good.
44
Now let's go through another example and see how a social media platform could apply the cap theorem.
45
During a network partition, if two users are commenting on the same post at the same time,
46
one user's comment may not be visible to the other users until the partition is resolved.
47
Alternatively, if the platform prioritizes consistency,
48
the commenting feature may be unavailable to users until the partition is resolved.
49
For a social network,
50
it is often acceptable to prioritize availability at the cost of users seeing slightly different views some of the time.
51
The CAP theorem may sound very simple,
52
but the real world is messy.
53
As with many things in software engineering,
54
this is all about trade-offs,
55
and the choices are not always so black and white.
56
The CAPS theorem assumes 100% availability or 100% consistency.
57
In the real world, there are degrees of consistency and availability that distributed system designers must carefully consider.
58
This is where the simplistic model of the CAPS theorem could be misleading.
59
Back to the bank example.
60
a network partition, the ATM could allow only balanced inquiries to be processed while deposits and withdrawals are blocked.
61
Alternatively, the bank could implement a hybrid approach.
62
For example, the ATM could allow balanced inquiries and small withdrawals to be processed during a partition,
63
but block large withdrawals and or deposits until the partition is resolved.
64
It is worth noting that in the real world,
65
reconciliation after a network partition could get very messy.
66
The bank example above is simple to reconcile.
67
In real life, the data structures involved could be complex and challenging to reconcile.
68
A good example of a complex data structure is Google Docs.
69
Resolving conflicting updates could be tricky.
70
So is the CAT theorem useful?
71
Yes, it is a useful tool to help us think through the high-level trade-offs to consider when there is a network partition.
72
This is a good starting point,
73
but it does not provide a complete picture of the trade-offs to consider when designing a well-rounded distributed system.
74
Specifically, when the system is operating normally without a network failure,
75
which is most of the time,
76
there is an entire set of interesting trade-offs to consider between latency and consistency.
77
This is covered by the Pakel theorem,
78
which we should cover in another video.
79
If you would like to learn more about system design,
80
check out our books and weekly newsletter.
81
Please subscribe if you learned something new.
82
Thank you so much and we'll see you next time.

Descargar app

Todo lo que necesitas para hablar con fluidez

Pronunciación con IAEvalúa cada oración
Práctica de IPADomina cada sonido
VocabularioConstruye tu banco de palabras
Juego de vocabularioAprende mientras juegas

Mismo canal

FOR YOU

Recomendar Video

Vocabulario y notas de pronunciación para esta lección

Este vídeo tiene 82 frases y 820 palabras para practicar shadowing. La parte hablada dura 5:23. El hablante habla a un ritmo natural de unas 152 palabras por minuto, cercano a una conversación cotidiana. Solo el 75 % de las palabras está entre las 3.000 más comunes del inglés, por lo que el vocabulario es exigente.

Vocabulario clave de este vídeo

15 palabras del vídeo que vale la pena aprender, con su pronunciación y significado:

PalabraPronunciaciónSignificado
partition sustantivo/pɑɹˈtɪ.ʃən/parte
consistency sustantivo/kənˈsɪs.tən.si/consistencia
resolve verbo/ɹɪˈzɑlv/resolver, solventar
availability sustantivo/əˌveɪ.ləˈbɪl.ɪ.ti/disponibilidad
theorem sustantivo/ˈθiərəm/teorema
withdrawal sustantivo/wɪðˈdɹɔ(ə)l/retirada
deposit sustantivo/dɪˈpɑ.zɪt/depósito
distribute verbo/dɪˈstɹɪbjuːt/distribuir
consistent adjetivo/kənˈsɪs.tənt/consistente
refer verbo/ɹɪˈfɜː/referir, remitir
node sustantivo/noʊd/nudo, ñudo
connect verbo/kəˈnɛkt/conectar, empalmar
inquiry sustantivo/ɪnˈkwaɪ(ə)ɹi/indagatoria, pesquisa
tolerance sustantivo/ˈtɑ.lə.ɹəns/tolerancia
messy adjetivo/ˈmɛsi/desordenado, desprolijo

Phrasal verbs que vas a escuchar

PalabraSignificado
go through verboatravesar
check out verboinvestigar, chequear
think through verbocavilar

Pronunciación a tener en cuenta

  • Los sonidos de “th”: theorem /ˈθiərəm/, withdrawal /wɪðˈdɹɔ(ə)l/, withdraw /wɪðˈdɹɔ/
  • Los sonidos de “sh” y “zh”: partition /pɑɹˈtɪ.ʃən/, reconciliation /ˌɹɛkənˌsɪliˈeɪʃ(ə)n/
  • Palabras largas — cuida el acento: consistency /kənˈsɪs.tən.si/, availability /əˌveɪ.ləˈbɪl.ɪ.ti/, unavailable /ˌʌnəˈveɪləbəl/, inquiry /ɪnˈkwaɪ(ə)ɹi/, communicate /kəˈmjuːnɪkeɪt/

Cómo practicar con este vídeo

  1. Escucha el vídeo entero una vez sin hablar y anota las palabras que no conoces.
  2. Empieza a velocidad 0,75×, haz shadowing frase por frase y vuelve a la velocidad normal cuando te resulte fácil.
  3. Grábate y compara con el original, prestando atención a palabras como partition, consistency, resolve.

¿Qué es la Técnica de Shadowing?

Shadowing es una técnica de aprendizaje de idiomas respaldada por la ciencia, desarrollada originalmente para la formación de intérpretes profesionales y popularizada por el políglota Dr. Alexander Arguelles. El método es simple pero poderoso: escuchas audio en inglés nativo y lo repites en voz alta de inmediato, como una sombra que sigue al hablante con solo 1-2 segundos de retraso. A diferencia de la escucha pasiva o los ejercicios de gramática, el shadowing obliga a tu cerebro y músculos de la boca a procesar y reproducir simultáneamente patrones de habla reales. Las investigaciones muestran que mejora significativamente la precisión de la pronunciación, la entonación, el ritmo, el habla conectada, la comprensión auditiva y la fluidez al hablar, convirtiéndola en una de las metodologías más efectivas para la preparación del IELTS Speaking y la comunicación en inglés en el mundo real.

Técnica de shadowing: lee la guía completa paso a paso →