Thank you. If I implement this and if I made the change to the config value after it is deployed and running in production, do I need to restart the nodeJS app server to pickup the new config value ?
On Wednesday, May 7, 2014 5:11:16 PM UTC-4, // ravi wrote: > > On May 7, 2014, at 1:11 PM, NativeCoder <[email protected] <javascript:>> > wrote: > > > Thank you for the reply. Yes you are right. NodeJS App exposes a REST > Service which in turn calls a Rest Service hosted in Web Logic to do the > user validation. In this scenario NodeJS REST endpoint act as a facade. > The configuration is added to make the decision whether to do call the Rest > Service End Point hosted in Web Logic. The reason is, internal > implementation of the end point ( REST in WL) has some external > dependencies and if those are not working in production in order reduce the > user impact this validation will be switched off. e.g Can add a Key Value > pair to a configuration file e.g EnableUserEmailCheck = True. > > I can do this validation either in REST end point in WL or NodeJS Rest End > Point. I wanted to understand what is the most suitable approach in doing > this. Also if adding the config to NodeJS is fine I wanted someone to point > me to some material which I can refer in developing that > > > Hello again, > > I’d say/agree that the switch should go in your Node facade/proxy, for the > same reasons you outlined in your previous message. Are you looking > generally for information on how to write a REST endpoint in NodeJS, or > specifically for a way to run-time toggle a configuration value in a NodeJS > app/server? For the latter, all you may need is fs.watch() -> > http://nodejs.org/docs/latest/api/fs.html#fs_fs_watch_filename_options_listener > . > > —ravi > > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/96741a9d-de0c-435b-9476-c94c0394b847%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
