View a markdown version of this page

Real-Time Fraud Detection Powered by Redis Enterprise Cloud - Real-Time Fraud Detection Powered by Redis Enterprise Cloud

Real-Time Fraud Detection Powered by Redis Enterprise Cloud

Publication date: May 5, 2022 (Diagram history)

With this architecture, you can detect fraud in real time by using Redis Enterprise Cloud on AWS as both a primary database and an online feature store. The solution uses Amazon SageMaker AI for machine learning (ML) model inference, Amazon Kinesis Data Streams for event capture, and AWS Lambda for processing.

Real-Time fraud detection diagram

Reference architecture diagram showing how to detect fraud in real time by using Redis Enterprise Cloud, SageMaker AI, Amazon Kinesis Data Streams, and Lambda.

The following steps describe the data flow and ML inference pipeline for this architecture:

  1. Store historical datasets of credit card transactions in an Amazon Simple Storage Service bucket.

  2. Train different ML models by using an SageMaker AI notebook instance on the historical datasets.

  3. Process transactions from the historical datasets by using a Lambda function. Invoke two SageMaker AI endpoints that assign anomaly scores and classification scores to incoming data points.

  4. Invoke the Amazon API Gateway REST API for predictions by using signed HTTP requests from end users (mobile and web clients).

  5. Capture real-time event data by using Amazon Kinesis Data Streams.

  6. Read the stream by using a Lambda function. Persist transactional data to RediSearch and RedisJSON-enabled Redis Enterprise Cloud database.

  7. Use Redis Enterprise Cloud as a feature store for the Lambda function. No Redis modules are required for this functionality.

  8. Persist the prediction results to the Redis Enterprise Cloud database. (Optional) Store results with transactional details to a time-series database for data visualizations by using Amazon Managed Service for Grafana.

  9. (Optional) Pass prediction results through Amazon Data Firehose to persist data to an Amazon S3 bucket. Use Amazon Quick Sight to consume this data for visualizations and analytics.

Further reading

For additional information, see the following resources:

Diagram history

To receive updates about this reference architecture diagram, subscribe to the RSS feed.

ChangeDescriptionDate

Initial publication

Reference architecture diagram first published.

May 5, 2022

RSS subscription requirement

To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.