Skip to content

feat: idr rate agregator#215

Open
WahyuGiri04 wants to merge 1 commit into
allobankdev:mainfrom
WahyuGiri04:feat/idr-rate-agregator
Open

feat: idr rate agregator#215
WahyuGiri04 wants to merge 1 commit into
allobankdev:mainfrom
WahyuGiri04:feat/idr-rate-agregator

Conversation

@WahyuGiri04
Copy link
Copy Markdown

Overview

Implement IDR rate aggregator sesuai dengan requirement

Features

  • Strategy Pattern (no if/switch)
  • FactoryBean for WebClient
  • Data Caching at startup
  • Spread Calculation

How to run

mvn spring-boot:run

Endpoint

GET http://localhost:8080/api/finance/data/latest_idr_rates
GET http://localhost:8080/api/finance/data/historical_idr_usd
GET http://localhost:8080/api/finance/data/supported_currencies

Spread Calculation

Username : WahyuGiri04
Formula : (sum ascii % 1000) / 100000

Design

  • Strategy : scalable & clean
  • Cache : improve performace
  • FactoryBean : centralized config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant