Technical Architecture and Personal Ownership Deep Dive

Medium · Behavioral & Leadership · Software Engineer · Technical Screen

Prompt

During a technical screen for a Software Engineer position at Adyen, the interviewer asks you to walk through a complex engineering system you worked on recently. Begin with a concise bird's-eye overview of the system topology, then zoom into your personal technical contributions: the specific services or schemas you designed and built, critical architectural calls you drove alongside the downsides you accepted, quantified gains in speed or reliability, cross-team coordination, and the toughest engineering defect or bottleneck you personally diagnosed and resolved. Draw a clear boundary between your own deliverables and teammates' work, and share what you would approach differently in hindsight.

Scope & Expectations

  • Top-down architectural clarity: Establish the end-to-end request or event path, data stores, and external boundaries clearly before diving into low-level implementation mechanics.
  • Explicit personal boundaries: Separate components and decisions you personally owned ("I designed...") from adjacent work delivered by teammates or partner engineering groups.
  • Trade-offs and deep debugging: Explain rejected design alternatives and operational costs for your key choices, and walk through the hardest technical problem you solved first-hand.
  • Verified metrics and reflection: Support performance or dependability improvements with internally consistent before-and-after numbers, and name concrete adjustments you would make on a repeat build.

Step-by-step walkthrough

  1. What a project deep dive is really testing

    In a technical screen, a project deep dive tests two skills at the exact same time: systems understanding (can you explain the whole architecture cleanly from 30,000 feet down to a single database row?) and honest ownership (can the interviewer tell which engineering decisions were genuinely yours versus your teammates'?).

    Specifically, the interviewer scores six signals:

    • Top-down clarity: Drawing the end-to-end data flow in ninety seconds before diving into implementation weeds.
    • Crisp "I" vs. "we" boundaries: Naming the exact components you designed and coded, while crediting teammates and partner teams accurately.
    • Trade-off fluency: Explaining not just what you built, but which alternative you rejected and what downside you accepted.
    • Quantified before-and-after outcomes: Latency, error rates, duplicate rates, or manual support load—plus how those numbers were measured.
    • Authentic debugging depth: Walking through the hardest bug you personally diagnosed (symptom -> reproduction -> root cause -> atomic fix).
    • Candid hindsight: Sharing concrete changes you would make if starting over tomorrow.

    Adyen processes online, mobile, and in-store payments globally on a single end-to-end platform built in-house rather than stitched together from third-party acquisitions. In payment infrastructure, a dropped or duplicated event affects real merchant and shopper money—so choosing a project centered on data consistency, failure recovery, or reconciliation aligns naturally with Adyen's engineering culture.

  2. Pick the right project and write down your "Me vs. Others" split

    Choose a recent project (ideally from the past 1–2 years) with multiple interacting components, real failure modes, and measurable metrics where you owned a core piece end to end. Before the interview, sketch a two-column split so you never accidentally overclaim or undersell your work:

    Component or Decision           My Direct Ownership             Owned by Teammates / Other Teams
    ------------------------------  ------------------------------  -----------------------------------
    Payment state machine + worker  Designed schema & coded logic   Code reviews from senior teammate
    Daily reconciliation job        Designed & built end to end     Finance defined settlement rules
    Stateless webhook receiver      Reviewed design & PRs           Implemented by a teammate
    Kafka cluster operations        Configured topic partition key  Operated by infrastructure platform
    Order-service event contract    Co-authored JSON event schema   Order team built downstream consumer
    

    Having this map ready also makes questions about neighboring components effortless: "Our platform team operated the Kafka brokers; I chose payment_id as the partition key so each payment's events stayed ordered, while they managed broker replication."

  3. Draw the high-level architecture before diving into details

    Open the technical portion with a clean five-box pipeline and one plain sentence per component. Key building blocks used here have simple meanings: - Webhook: An automated HTTP notification a payment provider sends to your server whenever a payment changes status (for example, authorized or captured). - Stateless receiver: A lightweight web service storing no local state; it verifies the provider's cryptographic signature, writes the raw event to a durable queue, and returns HTTP 200 fast. - State machine: Explicit rules defining allowed status transitions (such as pending -> captured -> refunded) so illegal transitions are rejected. - Transactional outbox: Saving outgoing downstream messages into a database outbox table inside the same database transaction as the payment update, so the database and downstream services never drift out of sync. - Reconciliation: Comparing internal database states against external provider settlement reports (daily files listing every finalized money movement) to verify zero lost or mismatched payments.

    External Payment Providers
          │  signed HTTP webhook
          ▼
    [1. Stateless Receiver]         Verify signature -> publish to Kafka -> return HTTP 200 (< 100 ms)
          │
          ▼
    [2. Kafka: "payment-events"]    Partition key = payment_id (preserves per-payment event order)
          │
          ▼
    [3. Processor Service]  (MINE)  Atomic Postgres tx: insert unique provider_event_id (idempotency)
          │                         + advance payment state machine (with row version check)
          │                         + insert outbox row
          ▼
    [4. Outbox Relay] ────────────▶ Order Service & Buyer Notifications
    
    [5. Daily Reconciliation] (MINE) Compare Postgres payment states vs. provider settlement files
    

    This diagram preemptively answers the interviewer's first three architectural questions: where events become durable, how duplicates are blocked, and how silent drops would be detected.

  4. Pace your walkthrough across seven structured beats

    Expect the interviewer to interrupt and probe mid-story. Keeping a clear mental outline lets you answer any interruption thoroughly and resume right where you left off ("Going back to the second trade-off I owned…"):

    1. Context & Pain    (~35 s)  Scale, legacy bottleneck, p99 latency (slowest 1% of requests), user pain.
    2. Architecture      (~40 s)  The 5-stage async pipeline above.
    3. Ownership Split   (~30 s)  Exact Me vs. Teammates vs. Partner Teams boundaries.
    4. Key Trade-offs    (~45 s)  2 decisions you owned + rejected option + accepted cost.
    5. Hardest Bug       (~50 s)  Race condition symptom -> load reproduction -> atomic database fix.
    6. Measured Impact   (~25 s)  Consistent before-and-after metrics across latency, retries, and accuracy.
    7. Hindsight         (~20 s)  What you would sequence differently next time.
    
  5. Full sample answer (Software Engineer at Adyen)

    Below is a realistic first-person opening walkthrough (~345 words, about two and a half minutes spoken before follow-up drill-downs). Notice two concurrency concepts explained naturally in context: a consumer rebalance (when Kafka reassigns partitions from a stalled worker to a healthy worker) and optimistic locking (checking a row's version counter during UPDATE so concurrent stale writes fail safely):

    Last year I rebuilt the core processing layer of our payment-events pipeline at an online marketplace handling 100,000 payments a day across two providers. Previously, our webhook endpoint verified each callback, updated Postgres, and called the order service synchronously—taking 2.4 seconds at p99. Slow responses triggered provider retry storms: 18% of deliveries were duplicates, and about 350 orders a week (0.05% of volume) got stuck in "pending payment" or mismatched against settlement files.

    In our new architecture, a stateless receiver verifies the signature, publishes the event to Kafka keyed by payment_id, and returns HTTP 200. Downstream, a processor applies each event to a Postgres payment state machine and writes an outbox row for the order service. A daily reconciliation job compares our states against provider settlement reports.

    Separating my work from others': a teammate built the receiver, the platform team ran Kafka, and the order team built their consumer after I agreed on the schema contract with them in week one. I personally designed and built the state machine, processor, and reconciliation job.

    I owned two key trade-offs. First, acknowledging webhooks right after Kafka durability stopped retry storms, but made updates asynchronous—requiring reconciliation to prove nothing was silently dropped. Second, partitioning by payment_id kept each payment's events in order on one partition, trading away intra-payment parallelism we never needed.

    The hardest bug I solved was duplicate order_paid fulfillment events during Kafka consumer rebalances. When a slow worker lost its partition mid-batch, the new owner re-read the same event, and our initial read-before-write check let both pass concurrently. I reproduced it under forced rebalances and fixed it by combining a unique constraint on provider_event_id, an optimistic version check on the payment row, and the outbox insert inside one atomic Postgres transaction.

    Webhook p99 latency fell from 2.4 seconds to 85 milliseconds, duplicate retries dropped below 1%, and stuck orders fell from 350 a week to under five. Next time, I would build reconciliation in week one for an earlier baseline and review refund states with finance upfront—habits directly suited to Adyen's unified end-to-end payments platform.

  6. Handle technical drill-downs with precision

    Once you finish the overview, a strong technical interviewer will pick one component and ask two or three layers of "what breaks if…?":

    • "Why use Kafka instead of a simple Postgres-backed job queue?" Give a pragmatic, non-dogmatic answer: at 100,000 payments/day (~1.2 events/sec average, ~15–20/sec peak), Postgres FOR UPDATE SKIP LOCKED could handle the throughput, but our platform team already ran multi-AZ Kafka with built-in partition ordering and on-call support, letting my small team focus on payment correctness rather than queue maintenance.
    • "What if the processor crashes right after committing the Postgres transaction, before telling Kafka?" Walk through the atomic guarantee: Kafka redelivers the unacknowledged message to the next worker, which attempts the same transaction, immediately hits the UNIQUE constraint on provider_event_id, catches the duplicate-key error, and safely advances its Kafka offset without writing a second state change or outbox row.
    • "How did you measure duplicate retries and mismatches on identical baselines?" Always name the data source: duplicate rates came from counting repeated provider_event_id values in the edge load-balancer request logs for four weeks before and four weeks after cutover, and baseline mismatch counts came from running the new reconciliation script retroactively against thirty days of legacy payment tables and provider settlement files before launch.

Intuition & how it works

Think of leading a technical project deep dive like giving a building inspector a guided tour of a bridge you helped engineer—blueprint first, then the exact support pier you personally calculated and stress-tested. If you walk straight up to a bolt and talk about steel alloys for five minutes, the inspector has no idea what the bridge carries; if you say "we built the whole bridge together" without naming which pier was yours, the inspector cannot certify your engineering judgment.

Why do capable engineers stumble on this prompt? First, many jump straight into low-level code details without sketching the end-to-end data flow, leaving the interviewer lost within sixty seconds. Second, candidates blur "I" and "we"—either taking vague credit for a five-person architecture (and crumbling when probed on a teammate's service) or speaking so modestly that their personal impact disappears. Third, candidates present technical choices as obvious defaults rather than real trade-offs with downsides, or quote metrics whose numbers do not add up under mental arithmetic.

Walk through a concrete 5-step trace of rebuilding an asynchronous payment-webhook pipeline (100,000 payments/day = 700,000/week) to see how architecture, ownership boundaries, trade-offs, concurrency debugging, and verified numbers fit together:

1. Legacy Bottleneck -> Sync webhook handler takes 2.4s p99 -> provider retry storms (18% dupes)
                        & ~350 stuck/mismatched orders/week (0.05% of 700k weekly payments).
2. Top-Down Design   -> Stateless Receiver -> Kafka (key=payment_id) -> Processor + Outbox -> Order Svc
                        + Daily Reconciliation against provider settlement files.
3. Crisp Ownership   -> Teammate: Receiver | Platform: Kafka | Order Team: Consumer |
                        ME: Payment State Machine, Processor Worker, and Daily Reconciliation.
4. Hardest Race Fix  -> Kafka rebalance caused two workers to pass read-before-write dedupe at once
                        -> fixed in 1 atomic Postgres tx: UNIQUE(provider_event_id) + row version + outbox.
5. Verified Impact   -> p99 latency 2.4s -> 85ms; dupes 18% -> <1%; stuck orders 350/wk -> <5/wk (<0.001%).

Core distributed-systems terms in this deep dive have clear, one-sentence definitions: - Webhook: An automated HTTP callback message sent by an external service (such as a payment provider) whenever a transaction changes state. - p99 latency: The 99th-percentile response time—meaning 99 out of 100 requests finish faster than this threshold and the slowest 1% take at least this long. - Idempotency: Designing an operation so that receiving and processing the same event twice produces the exact same stored state and side effects as processing it once. - Transactional outbox: Writing outgoing integration events into a database outbox table inside the exact same atomic database transaction as the business state update, guaranteeing downstream messages are never lost or emitted without a committed state change. - Consumer rebalance: When a message broker like Kafka revokes partitions from a slow or crashed consumer instance and reassigns them to another worker. - Optimistic locking: Storing a version integer on each row and updating with WHERE version = expected_version so overlapping concurrent writes fail cleanly instead of overwriting each other. - Reconciliation: Auditing internal database records against external bank or provider settlement reports to verify every payment's final state and amount match.

What interviewers look for

  • Top-down architectural clarity: Explaining end-to-end request flow, state storage, and failure boundaries in under two minutes before zooming into code-level specifics.
  • Unambiguous ownership boundaries: Stating clearly which services, schemas, and design calls were yours ("I designed and implemented X") versus teammates' or partner teams', while still understanding how adjacent boxes work.
  • Explicit engineering trade-offs: Pairing every major architectural decision with the concrete alternative you rejected and the operational cost your choice introduced.
  • Internally consistent before-and-after metrics: Reporting latency, error/duplicate rates, and business impact where percentages and absolute weekly counts align mathematically, backed by named measurement sources.
  • First-hand debugging rigor: Explaining a subtle production or load-test bug (such as a concurrency race condition) from observable symptom to deterministic reproduction to root-cause fix.
  • Proactive cross-team contract design: Locking down API or event schemas with partner teams early so parallel workstreams do not block each other.
  • Thoughtful technical hindsight: Identifying specific sequencing or design improvements you would make next time rather than offering generic clichés like "write more unit tests."

Common mistakes

  • Diving straight into implementation minutiae without first giving the interviewer a high-level system map and business problem statement.
  • Saying "we" for every sentence—or claiming credit for teammates' modules, either hiding your personal agency or failing basic drill-down questions on components you did not actually touch.
  • Presenting design choices as cost-free wins, forgetting that every architecture trades something away (for instance, asynchronous queuing trades immediate synchronous feedback for eventual consistency and monitoring overhead).
  • Quoting inconsistent or ungrounded numbers, such as mismatch percentages that contradict your stated daily transaction volume when multiplied out.
  • Confusing check-then-act logic with true idempotency, using a non-transactional SELECT before INSERT that breaks as soon as two workers process a retried message concurrently.
  • Picking a trivial CRUD feature or an ancient project whose edge cases and failure modes you can no longer recall under three layers of "why".
  • Getting defensive when asked what you would change, missing an easy chance to show senior engineering reflection.

Follow-up questions

  • If a message broker or downstream dependency becomes unavailable mid-flow, how does your design prevent silent data loss? Enforce strict durability invariants at every service boundary and back them up with automated reconciliation. In our payment pipeline, if Kafka is unreachable, the stateless receiver returns HTTP 503 Service Unavailable rather than HTTP 200 OK—never claiming acceptance until the event is replicated on disk, which prompts the payment provider's webhook engine to retain and retry automatically. Downstream, writing the payment update and transactional outbox row atomically prevents dropped order notifications, an hourly parity check compares acknowledged vs. processed provider_event_id counts, and nightly reconciliation audits Postgres states against authoritative provider settlement files.
  • How did your components stay correct when retries or parallel workers delivered events twice or out of sequence? For duplicate or concurrent redeliveries (such as during a Kafka consumer rebalance), our processor combined a database UNIQUE constraint on provider_event_id with an optimistic version check on the payment row inside one Postgres transaction—so a second worker immediately hit a duplicate-key conflict and exited cleanly without double-emitting outbox messages. For out-of-sequence provider callbacks (such as refund_succeeded arriving before payment_captured), our state machine rejected illegal transitions without crashing the partition, parking the premature event in a deferred_events table with exponential backoff (1 minute, 5 minutes, 30 minutes) until payment_captured arrived.
  • How did you verify that your before-and-after latency and reliability metrics were measured on an apples-to-apples baseline? Every metric used identical instrumentation and time windows before and after cutover. Webhook p99 latency (2.4 s -> 85 ms) and duplicate retry rates (18% -> < 1%) were measured directly from edge load-balancer request logs counting repeated provider_event_id headers across four weeks pre-launch and four weeks post-launch. To avoid comparing manual support tickets against automated monitoring, we ran our new reconciliation script retroactively across thirty days of legacy Postgres records and provider settlement reports before launch to establish the true ~350/week mismatch baseline that later dropped below five.

Follow-up questions

Similar questions

More Adyen interview questions

All 4 Adyen questions →