A spring boot application which fetches transaction stats in O(1) time.
./gradlew clean build
./gradlew bootRun
a) The below endpoint is used to add transactions.
/api/v1/transactions
b) The below endpoint is used to get transactions statistics for the last 60 seconds.
/api/v1/stats