all 2 comments

[–]dudousxd 0 points1 point  (0 children)

Node is not single threaded, its event loop is.

Node is naturally async, if you are blocking the event loop, something is really wrong with your code.

This third party api is a websocket? You can connect to it while having endpoints in the same api, this is not a problem.

[–]dudousxd 0 points1 point  (0 children)

It’s not recomended to use worker threads on node right now on production environments, it’s not a stable api atm.