10 karma · joined Dec 8, 2008 (18y ago) · 1 submissions
comment 7y ago · link · parent
At Nextjournal, it won't stop with server side rendering. For example we're using ProseMirror as the rich text editor in the browser. For real-time collaboration on notebooks, we want to use ProseMirrors out of the box support for it: http://prosemirror.net/docs/guide/#collab
This means our server has to provide the "central authority". This leaves us again with the choice of:
1) expose this central authority in a nodejs service via http to our Clojure/JVM app (which manages also the websocket connections and database persistence) 2) rewrite the central authority and applying the transformation functions in Clojure/Java and maintain compatibility with the Javascript implementation 3) leverage the polyglot abilities from GraalVM to just call ProseMirror's transformation functions from our Clojure code
Here, 3) seems to be the obvious choice, as throughput is much higher than for occasional server side rendering and the http overhead for the nodejs-service approach would be a deal breaker.