(no title)
turtle4 | 11 years ago
In a normal UI, the user makes some action, which would update the db, clear the cache for the affected key(s), and display the updated page to the user. In the event stream processing way, if the front end events are what is being logged and the cache refresh for example is running via Samza or some other processor, how does the UI get refreshed appropriately since the processing of the stream is decoupled? Or does the main app cache remain coupled to the form submission and there are just 'other' uncoupled caches, etc?
martinkl|11 years ago
Once you've got a UI that can be dynamically updated based on event streams, you can hook the backend streams into the UI using a WebSocket or similar.
ghuntley|11 years ago
If you want to learn more about FRP then I suggest the academic paper "Out of the Tar Pit" by Ben Moseley & Peter Marks @ https://raw.githubusercontent.com/papers-we-love/papers-we-l... then make your way back to the origin of FRP - http://elm-lang.org/learn/What-is-FRP.elm
As for a good example of a backend designed around Event Streams/Reactive Extensions then check out https://github.com/AdaptiveConsulting/ReactiveTrader