Skip to content

Why Node.js ? #150

Answered by domoritz
mgcdanny asked this question in Q&A
Discussion options

You must be logged in to vote

We chose Node for the server because the part that runs in the browser is all JS already so we didn't have to use multiple toolchains.

Having said that, the mosaic server is just a very thin wrapper around DuckDB. In our experiments it doesn't seem to be an issue that the DB is running in the same process. DuckDB uses multiple threats so it doesn't seem to block. I implemented a similar wrapper in Python for the widget, and you can find the code at

def _handle_custom_msg(self, data: dict, buffers: list):
. I can imagine that we implement a server in e.g. Rust in the future.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mgcdanny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #149 on August 09, 2023 19:08.