Stripe Core Infra SWE Interview: Chunked Parser, Config Bug Squash

Stripe SWE, Core Infrastructure (Sydney): phone screen on a chunked settlement file parser (UTF-8, quotes, minor units); Bug Squash on a config library.

StripeSoftware Engineer, Core InfrastructureUpdated Nov 3, 20262 min read

Interview Experience | Backend / Infra | πŸ”₯πŸ”₯ | Stripe

2026 (Oct) Software Engineer, Core Infrastructure @ Stripe β€” Sydney, AU β€” Phone + VO β€” 2 rounds | 😐 Neutral | Medium-Hard

Round 1 β€” Phone Coding

60 min, one problem, four parts. Code has to run, own IDE over screen share.

A settlement file arrives in chunks, rows are payout_id,merchant,currency,amount. Write feed(chunk: bytes) that returns whatever rows are complete so far.

Part 1 is split on \n and carry the rest. His case had merchant CafΓ© with the Γ© split across two chunks, and my plain decode blew up. Switched to an incremental decoder kept on the object.

Part 2: merchant can be quoted, quotes can hold commas, newlines and "", all of which can span chunks. Small state machine. I first treated any " as closing, which breaks when a chunk ends on " and the next one starts with ". Added a "just saw a quote, undecided" state. He had me fuzz random splits a few hundred times, passed.

Part 3: amount to integer minor units. USD 2, JPY 0, KWD 3. Almost wrote float(amount)*100, caught it, split the string instead. He asked about 1.5 JPY, I said reject, don't round. Negative is a refund; forgot the sign on -0.125 KWD at first.

Part 4: reversal rows reference a payout_id but can arrive before the payout. Output net per merchant with bounded memory. I said park unmatched reversals and spill to disk past the limit; he asked when you know a merchant is final after spilling. Didn't get there, out of time.

Round 2 β€” VO Bug Squash

Small repo layercfg: defaults β†’ file (with include) β†’ env vars like APP_DB__HOST. pytest is red, fix in any order.

Ran the tests first instead of reading code.

  • Env didn't override file: the two merges in load were in the wrong order.
  • deep_merge replaced nested dicts wholesale. Made it recursive.
  • APP_FEATURE_X=false came back True. bool("false").
  • "1m" parsed as 1 ms, m/ms suffix mixup. Match longest suffix first; he asked about "1.5h", fine.
  • Two files including each other β†’ RecursionError. Added visited set on realpath.
  • Hold expiry used now > exp instead of >=. Stared at it a while thinking the test was wrong.

Once green he asked about hot reload β€” do in-flight requests see old or new config. Said snapshot a reference and swap atomically, didn't go deeper.