Cryptoflow is a Spring Boot backend service that fetches live cryptocurrency market data from CoinGecko, caches the latest prices in Redis, and pushes real-time update notifications through Server-Sent Events (SSE).
- Fetches market data for a configured list of coins from CoinGecko.
- Runs scheduled refresh jobs every 60 seconds.
- Stores the latest market snapshot in Redis.
- Publishes Redis update events when new data is saved.
- Notifies connected clients via SSE when prices are refreshed.
- Exposes HTTP endpoint for live market data retrieval.
- Install Java 21, Maven, and Redis.
- Clone the repository:
git clone <your-repo-url>
cd cryptoflow- Start Redis on
localhost:6379. - Configure values in
src/main/resources/application.propertiesif needed. - Run the application:
./mvnw spring-boot:run- Open API docs at
http://localhost:8080/docs.