Building Careem’s Integrity Feature Platform (Part 1: The Foundation)

Venkat Sakhineti7 Sep 2026

Problem

Careem's Integrity (fraud) team scores touchpoints such as a ride request, a food order or a new-card attempt before the user can continue. The check is synchronous, so the decision must fit a budget of fractions of a second. Rules need long history (trips in the last 2 years) and 50 to 100+ features per call, so joining raw data at request time is impossible. When a new fraud pattern appears, waiting for engineering sprints means losing money.

Example from the article: a rule such as "block if user_cancellation_count_30_days is above X and user_account_age_days is below Y" needs two features per user, fetched in parallel with the other active rules.

Solution in brief

Precompute every feature offline and look it up by key at request time. Batch jobs (Hive SQL) and streaming jobs (Kafka SQL) both emit small "updates" to one Kafka topic, and a type-aware persistence layer merges them into DynamoDB. A registry plus an orchestrator creates tables, so a new feature needs no deployment.

Questions this case answers
  • How to serve many precomputed behavioral aggregates to a synchronous decision service within a single-digit-millisecond budget while keeping some of them near real-time
  • How to onboard new model or rule inputs in hours instead of days when the serving path must not change
  • How to serve 50 to 100+ fraud-detection features inside a synchronous risk check without slowing the user request?
  • How to use multi-month behavior aggregates in a real-time fraud rule without querying raw history at request time?

Tools and methods

  • Feature registry — declarative definitions of entities, features and their computations.
  • Apache Hive — scheduled batch SQL that produces incremental daily updates.
  • Apache Kafka — streaming SQL for micro-updates and the common update topic.
  • Persistence layer — workers that merge updates into stored values by feature type.
  • Amazon DynamoDB — online store with key lookups.
  • Feature serving API — returns requested features to the rules engine.
Continue reading — it's free

Google or a one-time email code. No password.