Skip to content

raychongtk/account-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

account-manager

provided 2 apis:

  1. /api/account/{accountNumber} for retrieving balance
  2. /api/account/transfer for transferring balance

transfer balance operation need to be locked while transferring money between customers because we need to ensure the data correctness. therefore, when one customer trying to transfer money to the account, other customers need to wait for the customer who is editing the account to complete its job first.

for banking operation, sometimes we need to let customers know why the operations are failed, so the design of transfer api will return specific error code to let customers know why his/her operation failed. also, frontend can determine the error in an easier way and do i18n translation for multiple languages support.

About

code test from a virtual bank

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages