Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

All use cases
  1. Home
  2. Use cases
  3. Cloudera streaming
  4. Cloudera Streaming Analytics: Real-Time Fraud Scoring
Cloudera streamingFinancial services

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

Payment eventsProducers
Kafka topicsStreams
Flink scoring job with stateProcess
Decision topic and logOutput

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.

Apache FlinkSQL Stream Builderlatency budget

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 East

FAQ

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.

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.

Get a quote