ibuildinpublic
Log inStart free
ibuildinpublic
Log inStart free
BuilderProductPosts1
·Lvl 2·Explorer·Nov 17

OrderGuard | Engineering Log #001

Today's focus: Making UNKNOWN a first-class order state.

One important engineering problem in financial systems:

What happens when an order request times out, but the actual execution result is unknown?

Treating every timeout as a failure can introduce d

6likes6comments52Impressions
1Bookmark
Sign in to interact
Get to know meSign in to let's talk privately
Sign in to reply

6 replies

Paul Yorke
Paul Yorke@originforgestudioLvl 5·Builder·2h
Making UNKNOWN a real state is the part most write-ups skip. For orders that stay UNKNOWN for a long time, is there a cut-off where it is escalated to a person, or does the reconciliation job keep retrying quietly?
commentslikes
Tito Kiragu
Tito Kiragu@tito_kiraguLvl 8·Shipper·Nov 19
This is the part nobody demos. A timeout is not an answer, it is the absence of one, and treating it as a failure is how you end up double-charging someone who already paid. What I keep wondering about is the settle-back path: when the truth finally arrives, does the client poll for it or does a background job reconcile it after the fact?
commentslikes
Tito Kiragu
Tito Kiragu@tito_kiraguLvl 8·Shipper·Nov 18
Treating a timeout as a failure is the trap. I hit the same thing with webhooks: the money moved but my side recorded a miss, and the retry double-charged. Reconciling before retrying costs a little more work up front and saves you from inventing phantom failures later.
commentslikes
Mark Rosario
Mark Rosario@markrosarioLvl 9·Dedicated·Nov 18
This is the same lesson we just learned with our pilot sync — a timeout that looks like a failure can hide an order that actually went through, and retrying blind makes it worse. Making UNKNOWN a real state instead of guessing is the honest way to build it.
commentslikes
Konstantinos G
Konstantinos G@emarkssLvl 7·Active Builder·Nov 17
Making UNKNOWN its own state, and reconciling before a retry, is the right order. A close cousin on the store side: in our chat test the reply alone proved nothing, so we checked the orders in Shopify admin afterwards.
commentslikes
Ehsan
Ehsan@acadictiveLvl 8·Shipper·Nov 17
You asked about community posts. These builders might still help: @danielkase, @nabeel, @jesuser, @maulik_5, and @matthewabbott (active elsewhere on the feed). Reach out to whoever you want to talk to first.
1commentslikes