ariesshrimp/humane-society--scraper

refactor to a reactive model

Opened this issue · 0 comments

I want to model the server as a fully reactive event system. I think that will make error propagation and request timeouts a lot easier to handle. It will also open the door to socket connections straight into the data.

this will probably be a larger project, abandoning micro in favor of a hand-rolled reactive implementation like motorcycle. fortunately ava offers good support for testing Observables

Possible Solution

here's a reactive HTTP server implementation using Rx: https://glebbahmutov.com/blog/node-server-with-rx-and-cycle/