An HTTP/TCP stock querying service where users can query or subscribe to 1 or more stock tickers. Users have credits that they spend on each tick (every second) that they are subscribed for, 1 credit equals 1 Stock Subscription for 1 Second. Authentication is not done, also stock values are randomly generated.
Main point of this repo is showcase of using Actix with Actor Models to build Rust Concurrent Servers.
$ cargo build
$ cargo run
Make a GET request to
http://127.0.0.1:3000/summary?stocks=APPL,GOOG
- open static/websocket.html in your browser
- click "Connect" button
- send messages in this format "/subscribe APPL,GOOG"