Skip to content

Karekin/fraud-detection-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: Older Docker images are not available for Apple silicon. If you face this issue, try this WIP branch https://github.com/afedulov/fraud-detection-demo/tree/with-1.15

Fraud Detection Demo with Apache Flink

This demo is related to a three-part blog post series on Advanced Flink Application Patterns:

Requirements:

Demo is bundled in a self-contained package. In order to build it from sources you will need:

  • git
  • docker
  • docker-compose

Recommended resources allocated to Docker:

  • 4 CPUs
  • 8GB RAM

You can checkout the repository and run the demo locally.

How to run:

In order to run the demo locally, execute the following commands which build the project from sources and start all required services, including the Apache Flink and Apache Kafka clusters.

git clone https://github.com/afedulov/fraud-detection-demo
cd fraud-detection-demo
docker build -t demo-fraud-webapp:latest -f webapp/webapp.Dockerfile webapp/
docker build -t flink-job-fraud-demo:latest -f flink-job/Dockerfile flink-job/ 
docker-compose -f docker-compose-local-job.yaml up

Note: Dependencies are stored in a cached Docker layer. If you later only modify the source code, not the dependencies, you can expect significantly shorter packaging times for the subsequent builds.

When all components are up and running, go to localhost:5656 in your browser. You might want to click "Push to Flink" to send some sample rules to the Flink job for evaluation to see the alerts.

Note: you might need to change exposed ports in docker-compose-local-job.yaml in case of collisions.

About

Repository for Advanced Flink Application Patterns series

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 90.0%
  • TypeScript 9.3%
  • Dockerfile 0.3%
  • HTML 0.2%
  • SCSS 0.2%
  • Shell 0.0%