Add Integration with node.js
Improve integration with ServiceStack + node.js and add examples showing how to use ServiceStack as an efficient API back-end for a node.js-powered web application (as an alternative to MVC + ServiceStack).
Node Proxy example already at:
https://github.com/ServiceStack/ServiceStack.UseCases/tree/master/NodeStackProxy
If it's more efficient and gets Linux/Mono support ServiceStack could integrate with: https://github.com/tjanczuk/edge
We believe the best solution is to instead integrate with Webpack/parcel instead of proxying directly with a node.exe process.
Most of the SPA templates have great integration with Webpack and JS CLI tools:
http://docs.servicestack.net/releases/v5.2#net-core-templates
-
Using node.js for websockets is an example of a great use-case for node.js/SS combo, e.g. you can run the front-end website and leverage node.js's fantastic web-socket support with socket.io that will let you easily delegate requests to back-end ServiceStack services.
Whilst ServiceStack > node.js communications can easily happen over Redis Pub/Sub support, with both SS + node.js subscribed to the same channels.
-
Chris Mcvittie commented
Would this include Websocket support? Or should it be a first-class citizen aside from node.js?
e.g. A web app with a diary system, where other people make bookings and they appear nearly simultaneously on all users' screens. (Rather than a polling refresh for the entire dataset)