Tutorial

5. Does this order look like fraud

A stolen card is usually used fast and for a lot, often on an account that has never ordered before. In this chapter PlaceOrder asks whether an order looks like fraud before it reserves any stock or charges anyone, and refuses the ones that do. The answer comes from a rule today, and the train is written so that a model can give it tomorrow without the train changing.

By the end, every answer is recorded with the run that asked, and a stricter rule is asked beside the live one on every order, so we can see where the two would disagree before trusting the new one.

This chapter starts from the end of chapter 4.

In this chapter

  1. A question, not an if
  2. The question and what it is asked about
  3. The tracks
  4. Register Shopfront in one place
  5. Run it
  6. Read the decisions
  7. Test it

SDK Reference

Gate | Decide | AddDecisionRecording | Write a decider | Try a decider in shadow | Test a train's decisions


Next: 5.1 A question, not an if