I am new to NodeJS, and relatively new to javascript, and i was wondering what the best practice is for making api calls. I have a web app that displays data retrieved from a graph database. The graph database has built in REST endpoints for all of the queries we wrote (Tigergraph if anyone is curious). We could potentially have hundreds of users at the same time, all requesting data. Each query takes up to 20 seconds to fetch and return the data. Then once the data is returned we do some additional processing on it before displaying it on the screen.So my question is, is it better to have the api call, and processing done on the client machine, or have a pass through to nodejs, then do the call and processing there and send it back to the client side, or will the single threadedness of nodeJS slow everything down? I am aware either way my client will need to make an api request, but is it better to do the processing on the server?
Submitted January 17, 2020 at 08:35PM by smc128
No comments:
Post a Comment