Giter Club home page Giter Club logo

datastax-creditcard-demo's Introduction

Credit Card Demo

###Fraud Detection Dashboard

The Fraud Detection systems encapsulates a credit card transaction system and dashboard for monitoring fraudulent transactions and suspicious issuers and users. This system will also allow a monitor to approve or reject a transaction in realtime.

###Functional requirements

  1. Show dashboard with all relevant details of a credit card system.
  2. Monitor transactions as they arrive.
  3. Monitor transactions by issuer
  4. Create blacklist/watchlist of users and issuers.
  5. Raise alerts when a monitor is logged in and transactions in watch list are observed

Dashboard View will contain the following

  1. No of overall transactions
  2. No of transactions by sector
  3. No of transactions by issuer
  4. No of transactions by minute
  5. No of transactions by hour
  6. No of transactions by day
  7. View of all transactions under review.

###User View

  1. Allow searching for a particular user.
  2. Table will contain all transactions for a user, highlighting any under review
  3. Ability to approve or reject a transaction
  4. View/Add/Delete Users to a blacklist

###Issuer View

  1. Allow searching for a particular issuer.
  2. Table will contain all transactions for am issuer, highlighting any under review
  3. Ability to approve or reject a transaction
  4. View/Add/Delete Issuers to a blacklist

Spark Jobs need to created for some analysis per day of transactions.

Search needs to able to look up issuers and users.

Trade Processor Generally 10 transactions per second which is nearly 1 million a day

Trade processor will includes spikes every 10 days or so to simulate busy days

To run TransactionCreator for today

mvn clean compile exec:java -Dexec.mainClass="com.datastax.creditcard.TransactionCreator" -DnoOfDays=0

To populate data for a number of days and then continue in real time

mvn clean compile exec:java -Dexec.mainClass="com.datastax.creditcard.TransactionCreator" -DnoOfDays=10	

Commands

~/Tools/cassandra-loader/build/cassandra-loader -f users.csv -host localhost -schema "datastax_creditcard_demo.users(user_id,first,last,gender,city,state,cc_no)"

~/Tools/cassandra-loader/build/cassandra-loader -f merchants.csv -host localhost -schema "datastax_creditcard_demo.merchants(id, name, location)"
insert into blacklist_merchants (merchant, city, amount) values ('merchant1','City-125',200); 
insert into blacklist_merchants (merchant, city, amount) values ('merchant7','City-4986',50);
insert into blacklist_merchants (merchant, city, amount) values ('merchant50000','City-1969',200);

insert into blacklist_cards (dummy, cc_no, amount) values ('dummy', '0000000005702649', 1000);
insert into blacklist_cards (dummy, cc_no, amount) values ('dummy', '0000000004737244', 1000);

To remove the tables and the schema, run the following.

mvn clean compile exec:java -Dexec.mainClass="com.datastax.demo.SchemaTeardown"

datastax-creditcard-demo's People

Watchers

James Cloos avatar Akshansh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.