Kona Token Trade
Backend services for a blockchain-based token-trading platform, from its start as a P2P trading platform.
- Role
- Graduate Engineer, then Software Engineer II
- Company
- Kona Software Lab, Dhaka
- When
- 2022 – 2025
- Built with
- Java 8, Spring Boot 2, Apache Kafka, PostgreSQL, MongoDB, AWS S3, SNS, EC2
The platform
I joined Kona Software Lab in 2022 as a Graduate Engineer, straight after graduation, on a P2P cryptocurrency trading platform. It grew into Kona Token Trade, a blockchain-based token-trading platform running on 30 Spring Boot microservices for trading, wallets, users, payments, and fees.
A trade touches several of those services, so a slow or failing service anywhere in the chain can put a transaction in progress at risk.
My role
I owned 6 of the 30 services and contributed to 15, working across the full development cycle on the trade, wallet, user, and fee-management systems. I was promoted to Software Engineer II in 2024.
From synchronous calls to Kafka
Services called each other over synchronous REST. A service would call the next one and wait for the reply, so if that downstream service was unavailable, a transaction already in progress could fail with it.
I replaced those calls with Kafka messaging. A service now publishes an event and moves on, and the downstream service processes the event when it is available. Kafka keeps the event until it is read, so a service that is restarting or briefly down delays its part of the work instead of failing the whole trade.
Before synchronous REST
Press Play to send the same trade through both designs.
After Kafka messaging
- Before: A downstream service goes down.After: The same outage happens here.
- Before: The trade service calls it directly and waits for a reply.After: The trade service publishes an event to a Kafka topic and moves on.
- Before: No reply arrives, so the in-flight transaction fails.After: The event waits in the topic.
- Before: The user has to try again.After: The downstream service comes back.
- Before: Recovery comes too late for this trade.After: It reads the waiting event, and the trade completes.
Security and payments
I added two-factor authentication to buy and sell operations, integrated bank-account and Kona card payment gateways, and added caching to reduce response latency. The services were built against AWS S3, SNS, and EC2.
Beyond the code
- Ran learning sessions on backend development for new joiners, and mentored and onboarded two junior engineers.
- Helped organize the 2023 Kona coding contest, where my team placed first runner-up of 20.
- Moved on to the Card Personalization System, bringing Kona I's system from Seoul to Bangladesh.