Giter VIP home page Giter VIP logo

event-sourced-bank's Introduction

pipeline status qualitygate coverage grade Known Vulnerabilities

POC of a bank which runs in-memory. It allows to create accounts, change names and transfer money between two accounts. Consistency between two models is achieved with event sourcing (no CQRS so far) and bouncing events between two aggregates in a sync way.

It requires no external dependencies as everything is in-memory (event bus, storage etc.)

Rolling back of unfinished transaction is implemented with a cron that finds unfinished transactions which were not modified within last 30 minutes and cancels them.

Endpoints

Metric Endpoints

Endpoint Method URL
Health Check GET https://bank.exposee.app/

Account Endpoints

Endpoint Method URL
List Accounts GET https://bank.exposee.app/api/account
Get Account GET https://bank.exposee.app/api/account/:UUID
Change Full Name PUT https://bank.exposee.app/api/account/:UUID/changeFullName
Create Account POST https://bank.exposee.app/api/account
Transfer Money POST https://bank.exposee.app/api/account/transferMoney

Links

event-sourced-bank's People

Contributors

kamilgregorczyk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bellmit

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.