How much digital bank can we fit in a 50 euro bill?

pi_bank

How much digital bank can we fit in a 50 euro bill?

Much has been said about the impact of Big Data and high-end GPU computing on the provision of digital financial services. At Open Risk we wanted to explore the boundary of what is possible at the diametrically opposite end of the cost spectrum:

What is the absolutely minimum cost for providing digital financial services? . In this post we begin the journey of finding out the answer to that question and it promises to be fascinating!

The hardware platform and the operating system

The Raspberry Pi is a wonderful little computer that is targeting the educational and hobbyist communities.

raspberry-pi

  • We start with a Raspberry Pi 3 Model B for 40.40 EUR from a friendly provider.
  • We splash an additional 10 EUR for 16 GB MicroSD card
  • The operating system is open source Raspbian Linux 4.1.18-v7

The database

For the purpose of this experiment we use the popular NoSQL database MongoDB. Instructions on setting up a basic loan portfolio system using python and Mongo are available in the Open Risk Academy course “Managing Loan Portfolios Using MongoDB“.

Some database performance statistics using MongoDB on the Raspberry Pi:

  • Creating from scratch one million records (with simulated credit data) takes about 2.2 minutes.
  • A query sorting one million records takes about 9 seconds

The web server

In order to link the pi-bank to the world we need to install a web server. We opt for the internet’s workhorse web server, the open source Apache http server. We deploy python applications using WSGI.

The credit risk platform

open_risk_platform_-_sign_in_-_2016-12-06_13-17-39

We install a Python/Flask based Model Server and activate a logistic regression model that produces a credit score on the basis of financial data. Interacting with the risk platform is by exchanging messages via the Open Risk API.

This 50 euro setup can process around 250 credit score calculations per second without any effort at optimization…

Say “Hi” to the pi-bank: A bank living inside a Raspberry Pi 🙂