internalsGet Pro

Module 10 · Lesson 13 of 13Pro

Design: real-time fraud signals for payments

Level
Advanced
Topic
Stream processing with Flink
Reading time
30 min

When you finish this page you can

  1. Turn payment and click volumes into the state size, store size and read budget of a fraud-signals job.
  2. Re-key a stream keyed by order into per-card, per-device and per-address state, and serve counts that are seconds old, not minutes.
  3. Choose a serving store and decide what checkout does when the job or the store is down, with the cost of each choice.
  4. Keep training and serving on one definition: log what was served, recompute with the same rule and measure the gap.

Builds on 4 lessons

Start with lesson 317 min
  1. Windows: tumbling, sliding and session17 min
  2. Stateful stream processing and state backends18 min
  3. Checkpoints: recovering without losing results18 min
  4. Case: Razorpay’s fraud checks in 200 ms with Flink18 min

38 cards from one phone in nine minutes

is an online store in India. Its checkout service sends one event per payment attempt to the Kafka topic kartly.payment-attempts: about 600,000 attempts a day. Meera, a data engineer, has been asked to turn those attempts, and the clicks before them, into signals the checkout’s fraud check can use.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan