📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 .NET Interview Questions

1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.

Phase 17 — Distributed Systems

How distributed .NET systems behave and fail: partial failure, latency and consistency models, microservice boundaries, messaging with Service Bus, RabbitMQ and Kafka, reliability patterns, and keeping data consistent across services.

  1. Events are stored for years and read by consumers you don't control, but the event shapes keep changing. How do you version events? Explain additive (weak-schema) changes, upcasting old events when they are read, new event types for breaking changes, schema registries and their compatibility modes, and how you keep old consumers working during a rollout.

    Event versioning for event stores and integration events: weak-schema tolerant readers, upcasting chains at read time, new event types and parallel publishing for breaking changes, copy-and-transform migrations, schema registries (Confluent, Azure Schema Registry) with backward, forward and full compatibility, and System.Text.Json behaviour.

    Senior Theory Data Consistency · 🔗 3 follow-ups · 🛠 1 real-world
  2. A business process spans several steps and services. How do you decide between keeping it in one service with one database transaction, using an outbox with eventual consistency, and building a saga with compensations? Walk me through the questions you ask, the trade-offs, and an example of each choice.

    Choosing a consistency mechanism for a multi-step process: when to keep data in one service and one transaction, when an outbox with idempotent consumers and eventual consistency is enough, and when a saga (orchestrated or choreographed) with compensations and timeouts is needed, plus reservations, the UX of pending states and the operating cost.

    Senior Architecture Data Consistency · 🔗 3 follow-ups · 🛠 1 real-world
  3. A customer complains that $2,000 left their account in the Accounts service, but the transfer never arrived in the Payments service and nothing is in progress. Support finds dozens of similar cases from the last week. How do you trace the inconsistency across services, contain it, repair the data safely, and stop it happening again?

    A real-world cross-service money inconsistency: tracing a transfer by correlation id through the ledger, outbox, broker, dead-letter queues, inbox and saga state; containing the damage; repairing with idempotent, audited compensating or completing commands driven by a reconciliation report; and preventing recurrence with reconciliation, outbox-age and DLQ alerts.

    Senior RealWorldScenario Data Consistency · 🔗 3 follow-ups · 🛠 1 real-world

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me