Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Exponential Backoff Retries

Front

How can you use exponential backoff to handle network failures?

Introduce increasing delay between retries. Exponential backoff is a retry mechanism where the time between retries increases exponentially.…

View Card →
Flashcard Study

Java: Exponential Backoff Retries

Front

How would you explain the first fallacy of distributed computing in an interview?

Assuming the network is reliable. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Exponential Backoff Retries

Front

When should you retry with backoff?

When failures are transient, such as timeouts or temporary network trouble. Retries are appropriate when time might actually…

View Card →
Flashcard Study

Java: Eventual Consistency (Sagas)

Front

Why do microservices often accept eventual consistency instead of one global transaction?

Services may briefly disagree, but asynchronous processing should move them toward the correct final state. In distributed workflows,…

View Card →
Flashcard Study

Java: Distributed Tracing

Front

How does injecting a unique Correlation ID at the API Edge router aid in service decoupling?

It helps trace requests across services without tightly coupling them. In distributed systems, injecting a unique Correlation ID…

View Card →
Flashcard Study

Java: Distributed Tracing

Front

Why is Kubernetes crucial for managing microservices?

Kubernetes automates deployment, scaling, and management. Kubernetes orchestrates containerized applications, handling the deployment, scaling, and management of microservices.…

View Card →
Flashcard Study

Java: Distributed Tracing

Front

What issues arise if Correlation IDs are not consistently propagated?

It leads to incomplete tracing and difficult debugging. If Correlation IDs are not propagated across all services, tracing…

View Card →
Flashcard Study

Java: Distributed Tracing

Front

What are the benefits of using OpenTelemetry for tracing?

It provides a unified view of service interactions. OpenTelemetry is a framework for collecting and visualizing telemetry data…

View Card →
Flashcard Study

Java: Distributed Tracing

Front

How do Correlation IDs aid in debugging network failures?

They trace the path of requests, identifying failure points. When a network failure occurs in a distributed system,…

View Card →
Flashcard Study

Java: Distributed Tracing

Front

How does MDC enhance logging in microservices?

MDC adds context to logs by attaching trace information. Mapped Diagnostic Context (MDC) in logging frameworks like Logback…

View Card →