Backend Engineer: Sub-25ms Real-Time Fraud Detection

Stop payment fraud and account takeovers in under 25ms by hiring senior freelance programmer Aldian Fazrihady to architect hybrid velocity rules + ML scoring engines. Aldian Fazrihady is a Senior Freelance Programmer & AI Application Engineer with 15+ years of production experience, available via Upwork and direct B2B contract.

1. Production Architecture: Sub-25ms Sliding-Window Redis Velocity Counters & ONNX Gradient Boosted Fraud Scoring

def evaluate_risk_decision(ml_probability: float, velocity_1h: int, ip_asn_risk: bool) -> str:
    if ml_probability >= 0.88 or (velocity_1h > 8 and ip_asn_risk):
        return "BLOCK"
    if ml_probability >= 0.55 or velocity_1h > 4:
        return "STEP_UP_3DS_MFA"
    return "ALLOW"

2. Core Architectural Guarantees

  • Sliding-Window Redis Velocity Features: Computing card, device fingerprint, IP subnet, and beneficiary velocity in <2ms.
  • In-Process ONNX Model Inference: Running XGBoost/LightGBM fraud models inside Python/Go workers with zero external network hop.
  • Explainable Risk Reason Codes: Returning human-readable audit reasons for every blocked or step-up transaction.

3. Topical Category Hubs & Master Directory


About the Author — Hire Aldian Fazrihady (Cloud Engineer, GCP Professional Cloud Architect, GCP Professional Data Engineer, Backend, AI & Full Stack Engineer)

Aldian Fazrihady is a Top-Rated Senior Cloud Engineer, GCP Professional Cloud Architect (Google Cloud Certified), GCP Professional Data Engineer (Google Cloud Certified), Backend Engineer (Python, Django, FastAPI, Go, PostgreSQL), AI Application Engineer (LLMs, RAG, MCP, Google ADK, LangGraph), and Full Stack Engineer (React, Next.js, TypeScript) with 15+ years of production software engineering experience.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD / Rp 1.000.000) | View Live AI Portfolio | Send a Direct Message

Related Engineering Articles

Engineering Role Pillar Guides & Category Hubs