Sunday, April 23, 2023

Redis Search - Card Transactions Example

Summary

I'll be demonstrating Redis Search capabilities in a credit card transaction domain.  All the data will be synthetically generated from the Faker module.  Data will be stored as Hash sets in Redis.  Subsequently, Redis Search will be leveraged to generate analytics on the data.

Architecture


Code Snippets

Data Generation



Index Creation



Sample Query

The query below aggregates total spend by category for those transactions with a dollar value >$500 in Dec 2021.


Source


Copyright ©1993-2024 Joey E Whelan, All rights reserved.