Skip to content

leopaul29/Gacha-Exchange

Repository files navigation

🎴 Gacha Exchange — Anime Trading Simulator

This project demonstrates modern backend techniques for interviews or portfolio use — reactive programming, event-driven architecture, and high-throughput transaction handling — all wrapped in a playful anime aesthetic.


⚙️ Features

  • 🌸 Reactive Trading Engine: Built with Spring WebFlux for non-blocking performance.
  • High Throughput Simulation: Handles thousands of trades per second using Reactor or Virtual Threads.
  • 💬 Live Data Stream: Real-time trade updates via Server-Sent Events.
  • 🧠 Scalable Architecture: Modular design ready for Kafka, Redis, or PostgreSQL integration.
  • 📊 Metrics Ready: Actuator + Micrometer for Prometheus and Grafana dashboards.
  • 🎨 Anime-Themed Market: Trade cards like Sailor Moon Ultra Rare or Naruto Legendary Ninja.

🧱 Tech Stack

Layer Technology
Language Java 23
Framework Spring Boot 3.5.x
Reactive Core Spring WebFlux / Project Loom
Messaging Kafka / Redis Streams (optional)
Database PostgreSQL + Redis Cache
Observability Actuator + Micrometer (Prometheus)

🏗️ Setup & Run

git clone https://github.com/<your-username>/gacha-exchange.git
cd gacha-exchange
./gradlew bootRun

Open the stream endpoint to view live trades:

GET http://localhost:8080/api/trades/stream

Trigger random trade simulations:

POST http://localhost:8080/api/trades/simulate

🔮 Future Enhancements

  • Integrate Kafka or Redis Streams for distributed trade broadcasting.
  • Add AI-driven price insights using Spring AI.
  • Implement leaderboard and user portfolio tracking.
  • Add front-end dashboard (React + WebSocket live ticker).

💫 Author

Created by Master Spring TER — backend architect and Spring ecosystem specialist.

🔗 More guides & articles: https://medium.com/@master-spring-ter

About

Gacha Exchange is a high-performance, anime-themed trading simulator. It simulates thousands of transactions per second (TPS) where players trade collectible anime character cards. Each trade affects market prices dynamically, making it a fun and and technically rich backend challenge built with Spring Boot 3.5 and Java 23.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages