Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Smart Wallet API (Java 27 Showcase)

A smart financial wallet REST API focused on high performance, modern concurrency, and advanced security. This project was developed using a layered architecture (Cloud-Native Microservice) with Helidon 4.2 to demonstrate in practice the main innovations of the newly released Java 27 (September 2026).

🛠️ Technologies and Implemented JEPs

In this API, the following official JDK Enhancement Proposals (JEPs) were applied in real-world use cases:

  • JEP 533 (Structured Concurrency / Virtual Threads): Parallel dashboard loading (fetching database + external quotes) in record time without blocking the server threads.
  • JEP 537 (Vector API - SIMD): Massive batch processing. The API applies yield interest rates to 10,000 transactions simultaneously using hardware acceleration (SIMD).
  • JEP 532 (Primitive Types in Switch): Business rules and financial risk assessment engine without using a single if/else, ensuring clean, readable, and safe code.
  • JEP 527 & JEP 536 (Post-Quantum Security & JFR Redaction): Future-proof security auditing, supporting ML-KEM and ML-DSA quantum algorithms, protecting against Harvest Now, Decrypt Later threats.

🏗️ Project Architecture

The project avoids the "everything in Main" anti-pattern and uses a clean layered architecture:

  • /controller: Handles incoming HTTP requests (The Waiters).
  • /service: Contains business rules and heavy processing logic (The Kitchen).
  • Main.java: The entry point and route injection setup.

🚀 How to Run Locally

Prerequisites

  • Java 27 (configured in your JAVA_HOME environment variable).
  • Apache Maven.

Steps

  1. Clone this repository.
  2. Open your terminal at the project root and run: mvn clean compile exec:exec
  3. The server will start on port 8080.

📡 Available Endpoints

Method Endpoint Description Java 27 Technology
GET /api/ping Basic Health Check to verify server status. Virtual Threads
GET /api/dashboard Returns account balance and currency quotes simultaneously. JEP 533 (Concurrency)
GET /api/analytics/simular Simulates interest yield on 10,000 accounts. JEP 537 (Vector API)
GET /api/regras/{valor} Classifies transaction risk based on the input value. JEP 532 (Pattern Matching)
GET /api/security/info Post-quantum cryptographic algorithms audit report. JEP 527 / JEP 536

About

A modern financial API leveraging Java 27's latest JEPs (Structured Concurrency, Vector API, Pattern Matching) for high-throughput and secure transactions

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages