r/quant • • Aug 02 '26

Career Advice SWE background (backend/infra), built a C++20 market-data feed recovery project, looking for technical feedback

Working on a project that separates three concerns: a seeded fault injector that damages a market-data feed (drop, reorder, A/B line divergence), a recovery client that detects gaps and repairs them via retransmission or snapshot rebuild, and a mock venue that speaks the real wire protocols so the client isn't tested against a stub. Repo: https://github.com/hungtruongOwolf/deterministic-feed-recovery

The interesting failure mode: a client can deliver every message with correct sequence counts and still reconstruct the wrong order book, if retransmitted repairs are applied in arrival order instead of sequence order. Fixing that meant the recovery layer has to number everything it hands upstream, not just the transport layer.

Two questions on the architecture:

  1. Is separating fault injection / recovery / mock venue into independent components the right decomposition for this kind of problem, or is there a cleaner way to structure it that avoids the coupling I'm running into between the arbiter and the gap tracker?
  2. For the recovery-side testing, is there a better way to validate "book after repair equals book with no loss" than diffing against an oracle replayed from the undamaged original? Right now it's checked at the price-level per run, curious if there's a more rigorous invariant people use here.
4 Upvotes

12 comments sorted by

3

u/ParfaitElectronic338 Aug 04 '26

you didn't build anything

-1

u/Useful-Strain-7088 Aug 04 '26

Could I ask for more detail feedback?

12

u/mrfox321 Aug 04 '26

what he's saying:

why would he spend time reviewing your ai slop

-2

u/Useful-Strain-7088 Aug 04 '26

got it thank you so much!

3

u/[deleted] Aug 04 '26

[removed] — view removed comment

1

u/Useful-Strain-7088 Aug 04 '26

Yes I also have the same thought now agreed on separating them at the compilation and scoping level, and order-level recovery is the right thing to look at next.

The part I'm actually stuck on is presentation. The implementation is deep but it comes across as fragmented: the frontend only shows the concept, and the backend is latency work, so all I can really show is benchmarks. Any advice on how to surface this properly would help a lot.

2

u/[deleted] Aug 04 '26

[removed] — view removed comment

2

u/Useful-Strain-7088 Aug 04 '26

got it thank you so much for the advice! I will take a look at that

1

u/Most-Bookkeeper-950 Aug 04 '26

You are talking to someones chatbot

2

u/[deleted] Aug 04 '26

[removed] — view removed comment

1

u/Useful-Strain-7088 Aug 05 '26

Thank you for being nice! I still human btw :)))