Skip to content

Example web application for taking and paying off loans leveraging DeeBee as a persistent store

License

Notifications You must be signed in to change notification settings

elgopher/deebee-loans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deebee-loans

This is a very simple (yet practical) example of web application leveraging DeeBee as a persistent store.

The whole state of application is held in RAM. Cyclically and during application shutdown the state is persisted to disk using DeeBee store.

When application is starting, state is restored and loaded again into memory.

The state is also replicated once per hour to a second directory (which can be an NFS file system).

Disclaimer

Please note that application is lacking in multiple areas: security, input validation, testing etc. I wanted to focus only on those topics related to storing application state.

Web API

Take a Loan

curl "http://localhost:8080/take?user=john&amount=1600&term=30"

Pay off the loan

curl "http://localhost:8080/pay?user=john&amount=600"

About

Example web application for taking and paying off loans leveraging DeeBee as a persistent store

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages