Rust
Exchange API
USD FX API. Serves today's snapshot from MongoDB; on a miss it hits Fixer (Apilayer), stores it, and returns it.
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. An external scheduler (cron-job.org) hits /check daily 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. Deploy via GitHub Actions and external cron (cron-job.org) against /check. Base always USD.