node.js - NodeJS, MongoDB: Database read/write strategy for performance -
this first attempt @ web application db access i'm not sure accepted way of doing db write/read.
in basic terms, application have 1 user updating field in db (a number) , many other users read (through rest api). updating of number not frequent (maybe once per minute) reads can more that, 100/minute. understand low rate of db write/reads wouldn't matter direct read db, want know strategies typically used in web applications.
for example, better maintain number variable in memory , serve reads, don't need access db each time, , write db (and re-fetch value memory) when there update field. or better read db each read entry.
i apologize if question vague. put nodejs , monogdb tags because that's i'm using in app.
thank you.
Comments
Post a Comment