Todas las especialidadesTecnología · Entrevista de trabajo

Diseño de sistemas

Una entrevista de diseño de sistemas es una conversación. El reto para quien no habla inglés como lengua materna es mantener una estructura clara mientras piensa y habla a la vez.

Palabras → expresiones → frases → conversación

Probar SpeakRole ↗
Entrevista de trabajoDiseño de sistemas
V

Design a URL shortener. Where are the bottlenecks?

0:18
Pregunta del entrevistador

Diseño de sistemas

No existe un único diseño correcto. Los entrevistadores evalúan cómo aclaras el problema, cómo razonas con números y cómo explicas los trade-offs. Hablar en un orden claro es más importante que nombrar muchas tecnologías.

Usa una estructura fija y dila en voz alta: requisitos, números aproximados, un diseño sencillo y, después, los cuellos de botella y cómo escalar. Cuando dices "now I will estimate the load", el entrevistador puede seguirte y tú ganas un momento para pensar.

  • ✓Palabras → expresiones → frases → conversación
  • ✓Sentido de la respuesta
  • ✓Idioma

Preguntas habituales y respuestas de ejemplo

Design a URL shortener. Where are the bottlenecks?

Diseña un acortador de URL. ¿Dónde están los cuellos de botella?

Qué quiere oír el entrevistador. Primero preguntas para aclarar, luego un diseño sencillo y después el cuello de botella real: las lecturas y los códigos únicos.

Respuesta de ejemplo en inglés para practicar en voz alta

First I clarify the requirements: how many new links per day, how many redirects, and whether links expire. Let us say 100 million new links a month and a hundred times more reads. The design is simple: an API to create a link, a service that generates a unique short code, a database that maps the code to the URL, and a redirect service with a cache. Reads are the main load, so I put a cache in front of the database and use a store that scales for key-value access. The hard part is generating unique codes without collisions, for example with ranges of a counter given to each server, and base-62 encoding. I would also add rate limiting against abuse.

How do you structure your answer in a system design interview?

¿Cómo estructuras tu respuesta en una entrevista de diseño de sistemas?

Qué quiere oír el entrevistador. Un orden repetible que dices en voz alta.

Respuesta de ejemplo en inglés para practicar en voz alta

I follow the same order every time. First, I ask about requirements, both functional and non-functional, like latency and availability. Second, I make a rough estimate of the traffic and the storage, so I know the scale. Third, I draw a simple high-level design with the main components and the data model. Then I go deeper into the part that matters most, usually the data store or the bottleneck. At the end I discuss failure, monitoring and how the system can grow. I say each step aloud, so the interviewer can follow my thinking and guide me.

How would you use a cache, and what are the risks?

¿Cómo usarías una caché y cuáles son los riesgos?

Qué quiere oír el entrevistador. Un patrón con nombre, la caducidad y al menos dos riesgos reales.

Respuesta de ejemplo en inglés para practicar en voz alta

I would use a cache for data that is read often and changes rarely. The most common pattern is cache-aside: the application checks the cache first, and on a miss it reads from the database and saves the result with a time to live. The risks are stale data, a cache stampede when a popular key expires and many requests hit the database together, and an unclear invalidation strategy. To reduce these risks, I choose a sensible expiry time, add a small random variation to it, and decide how much stale data the business accepts.

How do you scale a database?

¿Cómo se escala una base de datos?

Qué quiere oír el entrevistador. Un orden razonable: primero pasos sencillos, luego réplicas y después sharding con su precio.

Respuesta de ejemplo en inglés para practicar en voz alta

I start with the simplest options: better indexes, query tuning and a bigger machine. Then I add read replicas, which help when reads dominate, but replicas can lag behind the primary. When writes or data size become the problem, I use sharding: splitting data by a key, such as a user ID, across several databases. Sharding brings complexity. Queries across shards are hard, and moving data between shards is painful. So I pick the shard key carefully and delay sharding until it is really needed.

How do you talk about trade-offs and consistency?

¿Cómo hablas de trade-offs y de consistencia?

Qué quiere oír el entrevistador. Cada decisión expresada junto con su precio y ligada al producto.

Respuesta de ejemplo en inglés para practicar en voz alta

I try to say each decision together with its cost. For example, I choose eventual consistency for a news feed, because it gives lower latency and higher availability, and users can accept a delay of a few seconds. For payments, I choose strong consistency, because correctness is more important than speed. When a network partition happens, a distributed system must choose between consistency and availability, and I explain which one the business prefers for each part of the system. This shows that I think about the product, not only about technology.

Cómo pronunciar los términos clave

scalability
skei-la-bí-li-ti
sharding
shár-ding
cache
cash
availability
a-vei-la-bí-li-ti
latency
léi-ten-si
bottleneck
bó-tol-nek

Frases útiles para responder

  • Let me clarify the requirements first.Déjame aclarar primero los requisitos.
  • Can I assume that…?¿Puedo asumir que…?
  • Let me do a rough estimate.Voy a hacer una estimación aproximada.
  • The main bottleneck here is…El principal cuello de botella aquí es…
  • The trade-off is…, so I would choose…El trade-off es…, así que elegiría…
  • To summarise the design,Para resumir el diseño,
  • If we have time, I would go deeper into…Si tenemos tiempo, profundizaría en…

Errores habituales que debes evitar

  • Ponerte a dibujar antes de hacer preguntas. Dedica los primeros minutos a los requisitos.
  • Quedarte callado mientras piensas. Di "I need a moment to think about the data model" para que el entrevistador sepa que estás trabajando.
  • Nombrar muchas tecnologías sin motivos. Elige una y explica por qué encaja.
  • Ignorar los fallos y la monitorización. Una frase sobre qué ocurre cuando cae un nodo demuestra experiencia.

Preguntas frecuentes

¿Necesito números en una entrevista de diseño de sistemas?

Sí, aproximados. Dilos en voz alta: peticiones por segundo, almacenamiento por año. No tienen que ser exactos, pero demuestran que piensas en la escala.

¿Qué hago si no conozco una tecnología que menciona el entrevistador?

Dilo y razona a partir de las propiedades que necesitas: "I have not used it, but if it is a key-value store with low latency, I would use it for…"

¿Cuánto tiempo puedo hablar sin hacer una pausa?

No más de uno o dos minutos. Detente en puntos naturales y pregunta: "Does this direction make sense to you?"

Leer una respuesta no es lo mismo que decirla. Practica cada pregunta en voz alta y después compara el sentido y el idioma de tu propia respuesta.

Probar SpeakRole ↗

Otros temas de esta área