- Home
- Use cases
- Cloudera streaming
- Cloudera Streaming Analytics: Real-Time Fraud Scoring
Cloudera Streaming Analytics: Real-Time Fraud Scoring
A latency budget splits the time from event to decision across each step of a Flink scoring job.
The challenge
What teams are up against
Typical situation, not a client: a bank scores card payments in a nightly batch, so a fraud run is caught hours late. It wants a decision while the payment is in flight, but nobody has written down how much time each step may take.
Our approach
How we deliver it, step by step
- 01
Write the latency budget
Split the time allowed from event to decision across ingest, enrichment, scoring and write-back. Each step gets a share that is measured later against real traffic.
- 02
Choose the key
Pick the key, such as card, account or device, that keeps related events together. Flink holds state per key, so the choice sets what history the score can see.
- 03
Build the scoring job
Write the Flink job, or a SQL Stream Builder query, that joins each event to recent history in state and calls the scoring model.
- 04
Replay a past day
Replay stored events through the job and compare its scores with the batch result. Differences point to missing history or a wrong key.
- 05
Set alerts and a fallback
Alert when a step uses more than its share, and decide in writing what the payment path does when a score is late.
Architecture
The components involved
From the top of the stack down
Events arrive on Kafka topics in Cloudera Streams Messaging. A Flink job on Cloudera Streaming Analytics keeps recent history per card in state, scores each event and writes the decision to a topic the payment path reads. SQL Stream Builder gives analysts continuous queries over the same topics. Cloudera SDX controls who can read the topics and the decision log.
Outcomes
What changes when it is in place
Every step has a time share, so a slow score has a known cause.
The job is tested on replayed events before it sees live payments.
The fallback for a late score is agreed with the payments owner.
Analysts can query the same stream without a second pipeline.
Why Duczer East
Senior practitioners, from scope to delivery
We start from the time budget and test it on replayed events, then hand over the job, the alerts and the runbook.
About Duczer EastFAQ
Questions we are asked about this
What is a latency budget for a Flink job?
It is the time allowed from event to decision, divided across the steps of the job. Measure each step on replayed traffic, then alert when a step passes its share.
Does Flink on Cloudera need Kafka?
Kafka is the usual source and sink. Cloudera lists Kafka as a supported connector for Flink and SQL Stream Builder in its Cloudera Streaming Analytics overview.
Related use cases
More problems we solve this way
Use cases on the same platform or for the same industries. Browse all use cases.
Cloudera Streaming Analytics: Upgrading Flink Jobs Safely
A savepoint and rollback runbook for moving stateful Flink jobs to a new release.
Read use caseCloudera Flow Management: Governing Hundreds of Flows
An ownership and versioning model keeps a large NiFi estate readable and safe to change.
Read use caseCloudera Flow Management: Claims File Ingest for a Payer
A NiFi flow with provenance checkpoints that traces each claims file from arrival to landing.
Read use caseAI Governance: Choose a Platform After a Tooling Sprint
Score three trial tools against the firm's own control list, then connect the winner to the gateway log.
Read use caseAI Readiness Assessment: A Fixed-Scope Data Review in 2 to 4 Weeks
Find out whether your data is ready for AI before you build. Fixed scope, 2 to 4 weeks, and a plan sized against facts.
Read use caseAI Governance: Build an AI Use Case Inventory with Risk Tiers
One register of every AI use case, with owner, purpose, data, systems and a risk tier that drives how much validation each one gets.
Read use caseRelated insights
Further reading from our practitioners
Analysis and guides on the questions this use case raises. All insights.
GuideEvent-driven architecture explained: queues, streams and APIs
Practical design decisions for production systems in regulated firms
Cloudera SDX explained: components, support questions and when to get help
What it is, what is in it and when you need help
Cloudera Data Services 1.x vs 2.0: how to decide what to run
What the public documentation shows, and what to confirm before you commit
Let's Talk
Talk through this use case
Tell us about your systems and where you are today. A senior practitioner replies, and only your email is required.


