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
The following steps describe the data flow and ML inference pipeline for this architecture:
-
Store historical datasets of credit card transactions in an Amazon Simple Storage Service bucket.
-
Train different ML models by using an SageMaker AI notebook instance on the historical datasets.
-
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.
-
Invoke the Amazon API Gateway REST API for predictions by using signed HTTP requests from end users (mobile and web clients).
-
Capture real-time event data by using Amazon Kinesis Data Streams.
-
Read the stream by using a Lambda function. Persist transactional data to RediSearch and RedisJSON-enabled Redis Enterprise Cloud database.
-
Use Redis Enterprise Cloud as a feature store for the Lambda function. No Redis modules are required for this functionality.
-
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.
-
(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.
| Change | Description | Date |
|---|---|---|
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.