Rust
Exchange API
USD FX API. Serves today's snapshot from MongoDB; on a miss it hits Fixer (Apilayer), stores it, and returns it.
Open live ↗What it solves
Fixer cannot sit on every request (quota and latency). GET / looks up today's USD rates in Mongo; on a miss it calls Fixer and persists. If Fixer fails, it returns the latest snapshot. GitHub Actions hits /check every 3 hours to warm the cache.
Stack
- Rust
- Axum
- MongoDB
- Fly.io
- GitHub Actions
- Fixer API
Infra
Rust + Axum (Tokio, reqwest). MongoDB. Fly.io in GRU, 256 MB, machines that auto-stop. Actions every 3 hours against /check. Base always USD.