Stock Quote Dashboard is a end-to-end demo for how to boost the network throughput between browser and REST API backend using HTTP/2 protocol, this repo is the Spring WebFlux implementation, for the React frontend part, you can find it here.
For the overview of Stock Quote Dashboard, please visit my medium post.
This repo contains 4 maven sub-modules
- quote-webflux-api - the Embedded Netty backend to query the market data cached in MongoDB Altas.
- datafeed-scheduler - the schedule job to get market data from IEX Cloud API and write it into MongoDB Altas as cache.
- core-domain-library - the pojo and other common library to share among both above modules
- iexcloud-api-wrapper - the REST API client wrapper for IEX Cloud API
Before start the spring boot project, first you have to define following properties to specify your altas login.
mongodb-altas:
login: <your-mongodb-altas-login>
passwd: <your-mongodb-altas-password>
cluster-domain: <your-mongodb-altas-domain>
Before start the spring boot project, first you have to define following properties to specify your IEX API token and altas login.
iex-cloud:
base-url: https://cloud.iexapis.com/stable/
api-token: <your iex cloud token>
mongodb-altas:
login: <your-mongodb-altas-login>
passwd: <your-mongodb-altas-password>
cluster-domain: <your-mongodb-altas-domain>