use of Kafka instead of Java Locks for a bank account / wallet balance update usecase

I am working on a java based usecase ( target is to make an microservice for this ) in which concurrent debits and credits are occurring for a bank account. I want to make this operation thread safe with least possible SLA. In java there are three ways to achieve this by synchronised() blocks, ReadWriteLock and StampedLock. But for all these options Threads have to wait for availability of Lock. So if number of threads increase in future ,SLA of balance update API will increase.

is it any way to reduce...

Read More »

By: StackOverFlow - Wednesday, 9 January

Related Posts