node.js - How to provide different data to different users from a NodeJS web server? -


we building website visualizing large sets of data. datasets loaded on server (nodejs , express) using crossfilter.js , exposing different endpoints data sent website visualizations getting built.

so far server able provide visualizations dataset loaded when server starts. changing dataset, server needs restarted. trying allow user change dataset visualizing. problem don't know best approach. necesary steps next ones:

  • the user provides new dataset
  • the server loading dataset without altering datasets other users using
  • the server able provide each user right dataset.

basically, our uncertainty how load multiple datasets memory. server might become overloaded.

any advises?

you have couple of choices here memory management. can allocate enough memory everything, , overflow swap. or, more complicated, store files on disk, , have datasets follow cache pattern. using fixed size lru cache allow many datasets have disk space, caveat returning users may have wait second or 2 while dataset read off of disk memory.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -