News for hackers. Stuff that matters.

realavdulmouhd

Ask HN: Would you retry this timed-out job?

Imagine your worker makes a POST to a vendor API to purchase a shipping label. It times out. This could be because the vendor has created the label and charged you, however it could also just be because the request hasn’t come through. Either way the DB will show that this job was started and no response received.The standard answer here is to make it idempotent. But let’s say that the vendor...

( Read More... | no comments | on HN )