all projects

// project 02 / 08

Midas

Every transaction, accounted for.

A Spring Boot microservice for JPMorganChase's transaction pipeline, built in the JPMorganChase Software Engineering Job Simulation on Forage.

Midas

// screenshots coming soon

year
2026
role
Backend developer
context
JPMorganChase × Forage job simulation
status
Completed

1

Spring Boot microservice

Kafka

transaction stream

H2

embedded database

REST

balance query API

// the story

“Every transaction, accounted for.”

Midas is the core of a simulated transaction processing system. Transactions arrive on a Kafka topic, get validated against the users involved, and are recorded in a relational database.

Each recorded transaction is also sent to an external incentive API, whose response adjusts the recipient's balance. A REST endpoint then lets other services query any user's up-to-date balance.

  • Built a Spring Boot microservice for JPMorganChase's transaction pipeline, integrating Kafka for message consumption, Spring Data JPA/H2 for persistence, and RestTemplate to process external incentive API responses.
  • Exposed a REST balance-query endpoint via Spring controller, validated end-to-end with Maven test suites.

// what it does

Features that matter.

Kafka consumer

Listens to a transaction topic and deserializes each message into a typed transaction.

01

Validation

Checks that sender and recipient exist and that the sender can cover the amount before anything is recorded.

02

Persistence

Spring Data JPA entities store users and transactions in an embedded H2 database.

03

Incentive API

Calls an external incentive service with RestTemplate and applies the returned bonus to the recipient.

04

Balance endpoint

A Spring controller exposes a REST endpoint that returns any user's current balance.

05

Tested end-to-end

Maven test suites drive transactions through the whole pipeline to verify balances.

06

// how it's wired

Under the hood.

Input

Kafka topic

Incoming transactions

Midas core

Transaction listener

Consume and validate

Balance controller

REST balance queries

Downstream

H2 database

Users and transactions via JPA

Incentive API

Bonus per transaction

// built with

The stack.

Service

  • Java
  • Spring Boot
  • REST APIs

Messaging & data

  • Kafka
  • Spring Data JPA
  • H2

Build & test

  • Maven
~/midas

$ git clone github.com/vineet-panchal/mirage-transaction-processing-system

$ cd midas

// loading stack...

Java

Spring Boot

REST APIs

Kafka

Spring Data JPA

H2

Maven

✓ 7 technologies ready

// build log

How it came together.

  1. 01

    Project setup

    Configured the Spring Boot project and its dependencies with Maven.

  2. 02

    Kafka integration

    Added a Kafka listener that consumes and deserializes incoming transactions.

  3. 03

    Persistence

    Modelled users and transactions with Spring Data JPA on an H2 database, recording only valid transactions.

  4. 04

    Incentives

    Integrated the external incentive API with RestTemplate and applied bonuses to balances.

  5. 05

    Balance API

    Exposed a REST balance-query endpoint and verified the whole flow with Maven tests.

// problems solved

Hard parts, handled.

Keeping balances consistent

// problem

Invalid or partial transactions can corrupt balances.

// solution

Every transaction is validated against both users before it is saved, so only valid transfers ever touch a balance.

External calls in the pipeline

// problem

The incentive API sits in the middle of transaction processing.

// solution

Its response is mapped to a typed object and applied only after the transaction is recorded.

// next project

PaperStack

Trade the market, risk nothing.