Skip to main content

Bassirah Technology

REFERENCE ARCHITECTURE · BANKING & FINTECH

Design Fraud Analytics Around the Decision Path.

Protect digital transaction experiences by separating real-time decisions, operational data access, investigative analytics and governed history. Build auditable risk workflows with explicit ownership of scoring logic, feature freshness, query performance and incident handling.

For fraud technology leads · risk data architects · banking CTO / CDO office. Stack: Redis · ClickHouse · Trino OSS or Starburst · DataHub · dbt · PostgreSQL

THE CHALLENGE

Real-Time Risk Intelligence Without Sacrificing Governance.

Bring together transaction events, customer context and historical risk signals through an architecture that separates low-latency operational decisions from investigations and analytical reporting. Bassirah helps teams define where Redis, ClickHouse, Trino or Starburst, PostgreSQL, and metadata governance each belong—and where a dedicated scoring service or streaming pipeline remains essential.

  • A tight decision window — Every additional network hop, lookup or query on the transaction path adds latency and a new failure mode.
  • Analytics in the wrong place — Investigation and reporting queries placed on the synchronous path compete with authorisation traffic.
  • Stale or inconsistent features — Online features drift from source systems without explicit freshness, expiry and fallback rules.
  • Audit and lineage pressure — Regulators, auditors and model-risk teams need to trace a decision back to its data, model version and owner.
Illustration of a fast decision lane separated from a slower investigation area

ARCHITECTURE OVERVIEW

Keep the Decision Path Short. Put Everything Else Beside It.

The synchronous path runs from the transaction gateway to the institution’s risk decision service and its online feature lookup. Investigation, federation and governance consume the same events asynchronously, so they never slow the decision.

The top of the diagram is the synchronous decision path. Customer channels and the payment gateway send a transaction event to the institution's risk decision application, which owns the rules and model scoring and returns approve, decline or step-up (step 1). During scoring, the application looks up online features in Redis, which applies strict expiry and access rules and is not the system of record (step 2). Below this path, core banking systems and channels publish events and changes to an event streaming or change-data-capture layer. A feature update pipeline refreshes Redis from these events and from authoritative source values. Events, history and decision records flow asynchronously into ClickHouse, which fraud investigators use for investigations, monitoring and trend analysis (step 3). A marked barrier shows that analytical and federated queries are kept off the synchronous decision path. One distributed SQL engine, either Trino OSS or Starburst, queries governed risk and history sources such as the data warehouse, case management and PostgreSQL stores, serving risk, compliance and audit users (step 4). A governance band shows dbt Core building and testing analytical models and DataHub Core collecting lineage and ownership metadata from ClickHouse, the SQL engine, the sources and dbt, with a note that DataHub does not enforce permissions (step 5). A bottom band lists controls across all zones: identity and service accounts, HSM or KMS key management and encryption, a decision audit log, monitoring with latency-budget alerts, backup and replication, and disaster recovery per subsystem. Colour coding marks Redis as a strategic partner platform, dbt and DataHub as independently supported open source, ClickHouse and the Trino OSS or Starburst engine as available through either route, and channels, core systems, the decision application, pipelines and users as customer-owned.

Banking fraud and risk reference architecture with a short synchronous decision path using Redis features, and asynchronous ClickHouse investigation, federated SQL and governed lineage.

Figure 1. Banking Fraud & Risk Data Platform reference architecture (conceptual). Colour key: see How to read our diagrams.

Logical Decision and Data Flow

  1. Submit the transactionTransaction gateway / core system submits an event to a risk decision application; approval logic and model scoring remain owned by the financial institution or designated application.
  2. Look up online featuresFast online feature retrieval may use Redis under strict consistency, access and expiration policies; source-of-truth data resides in authoritative operational systems.
  3. Investigate asynchronouslyEvents and historical activity feed ClickHouse for fraud investigations, monitoring and trend analysis rather than assuming OLAP is in the synchronous transaction decision path.
  4. Query governed sourcesTrino OSS or Starburst may connect governed risk/history sources for exploratory and regulatory queries; unnecessary federation is avoided for latency-critical scoring.
  5. Build analytical trustDataHub lineage and dbt-validated data models improve analytical trust where integrated; permissions are still enforced in the underlying systems and query access control points.

Conceptual pattern. Connectors, licensed capabilities, versions, security policies and topology are validated in a project-specific architecture.

Last reviewed: — · Version scope: —

COMPONENT ROLES

Who Does What in the Stack

Who Does What in the Stack
ComponentClassificationRoleQualification
Transaction gateway / core bankingCustomer-ownedSubmits transaction events and applies the final decisionOwned and operated by the institution
Risk decision service (rules + model scoring)Customer-owned or designated applicationApprove, decline or step-up decisionsScoring logic, models and thresholds owned by the institution
RedisStrategic partnerOnline feature lookup on the decision pathStrict consistency, access and expiry policies; not the system of record
Event streaming / CDCCustomer-owned or separately selectedDeliver events and changes to analytics and featuresOrdering, replay and delivery semantics agreed per stream
ClickHousePartner-led or ClickHouse OSS routeFraud investigation, monitoring and trend analyticsAsynchronous to the decision path by design
Trino OSS or StarburstIndependent OSS support or strategic partner (choose one)Exploratory and regulatory queries across governed sourcesNot used for latency-critical scoring
DataHub Core + dbt Core / dbt OSSIndependent OSS supportLineage, ownership and tested analytical modelsDataHub documents and traces; it does not enforce authorisation

DESIGN TRADEOFFS

Decisions That Protect the Latency Budget

Decisions That Protect the Latency Budget
DecisionOptionsChoose based onValidate with
Feature servingRedis online features · Features computed inside the scoring service · Direct reads from operational databaseLatency budget per stage, feature freshness, consistency needsp95/p99 lookup latency under peak load; staleness measurement
Feature freshnessStreaming updates · Micro-batch refresh · On-demand fetch with TTLHow quickly a risk signal must affect decisionsEnd-to-end freshness test from source event to feature
Fallback behaviourFail-open with limits · Fail-closed · Step-up authenticationRisk appetite, customer impact, regulatory expectationsChaos test: feature store, model or network unavailable
Investigation storeClickHouse · Existing warehouse · Federated queries onlyQuery volume, investigator concurrency, retentionInvestigator query latency and alert turnaround in PoC
Federated accessTrino OSS or Starburst · No federationNumber of sources, governance model, commercial support needsConnector semantics, access-control behaviour, throughput
Redis durabilityCache-only with rebuild · Persistence and replication · Multi-site topologyRecovery time for features after failureRestore and rebuild drill; consistency checks against source
  • OLAP and federated SQL are not placed in the synchronous authorisation path by default.
  • Redis is not the authoritative store for customer, account or transaction data.
  • Observability, lineage and catalogs do not replace access control. Permissions are enforced in the underlying systems and query engines.

Compare Trino OSS and Starburst →

Not sure where your latency is going?

Start with transaction-path profiling.

SECURITY & RESILIENCE

Auditable by Design, Recoverable by Test

Least-privilege access

Separate service identities for scoring, feature updates, investigation and reporting. Enforce access in Redis, ClickHouse, the SQL engine and source systems, not in the catalog.

Sensitive data handling

Tokenise or mask card and account identifiers where possible, and keep sensitive fields out of analytical copies that do not need them. Designed to support your compliance obligations.

Encryption & keys

Encrypt traffic on every hop, including the decision path, and data at rest where supported, with keys in your HSM or KMS.

Decision audit trail

Record the event, features used, model version, rule outcome and decision for each transaction, retained according to policy and queryable by investigators.

RPO / RTO per subsystem

Define recovery separately for the decision service, feature store, event streams and analytical stores. The decision path usually needs the strictest objectives.

Incident readiness

Runbooks for feature-store loss, model rollback, stream lag and analytical outages, with alerting on latency budget breaches.

PROOF & OUTCOMES

Define Success Before You Measure It

Agree an end-to-end risk API SLO, p95/p99 latency budget per stage, model precision/recall, decision correctness, alert investigation turnaround, data drift thresholds and evidence retention. A “<5 ms" response is a candidate benchmark target only when the customer environment and chosen scoring path prove it.

Measurement Plan

Measurement Plan
MetricHow it is measuredTarget
Decision timeValidated p95 / p99 end-to-end decision time, broken down by stage (gateway, feature lookup, scoring, response)Latency targets validated on the customer's scoring and data-access path
Detection qualityModel precision / recall and decision correctness on a labelled evaluation setAgreed with fraud and model-risk owners
Operational availabilityAvailability of the decision path, including fallback behaviour under component failureAgreed SLO
Investigation turnaroundTime from alert to investigator answer using the analytical storeAgreed with fraud operations
Lineage coverageShare of reporting and model-input datasets with documented owner and lineageAgreed with data governance
Data driftMonitored drift of key features against agreed thresholdsAgreed per model

What You Receive

  • Architecture decision record
  • Target SLOs and a per-stage latency budget
  • Secure data-flow model
  • Phased PoC acceptance criteria
  • Transaction-path profiling results

Banking Fraud & Risk Data Platform FAQs

No. Approval logic and model scoring remain owned by the financial institution or its designated application. Bassirah designs and operates the data platform around it: feature access, event delivery, investigation analytics, federation, lineage and resilience.

That can only be stated after measurement. A “<5 ms" response is a candidate benchmark target when your environment and chosen scoring path prove it. We agree a per-stage latency budget and measure p95/p99 end-to-end decision time in a proof of concept.

ClickHouse is a column-oriented database designed for high-performance analytical queries, which suits investigations, monitoring and trend analysis. Keeping it asynchronous protects the decision path from investigative query load and lets each system be scaled and recovered for its own purpose.

No. Redis serves online features under strict consistency, access and expiry policies. Authoritative customer, account and transaction data stays in the institution’s operational systems, and features can be rebuilt from them.

No. DataHub provides metadata, ownership and lineage visibility. Access permissions are enforced in the underlying databases, object storage and query engines, such as the Trino OSS or Starburst access-control configuration.

Plan a Fraud Analytics PoC.

Bring your decision path, data sources and latency objectives. We will agree SLOs, a per-stage latency budget and phased acceptance criteria.