Websockets are bidirectional you can push data over them also. What you could do is as you pull the stock market data broadcast changes over the websockets before or after you write to the db (any db). Websockets can be a little difficult to scale but if you are talking 500 users it should be fine.