News for hackers. Stuff that matters.
Re:Node.js in Flame Graphs by mjr578 on Wednesday November 19, 2014 @12:31PM (#8631327)
We like the option of dynamically loading new routes, that point to new endpoints. We also have the ability to release new versions of our UI without redeploying (or restarting) our servers.
Re:Node.js in Flame Graphs by dmak on Wednesday November 19, 2014 @10:22PM (#8634274)
Could you elaborate in a bit on this? This is the first time I have heard of this, and I find it very interesting.
Re:Node.js in Flame Graphs by BradRuderman on Wednesday November 19, 2014 @02:03PM (#8631913)
Ok you add a new route but how do you reference what code should be executed when that route is hit?
Re:Node.js in Flame Graphs by mjr578 on Wednesday November 19, 2014 @02:36PM (#8632126)
We have something that loads up, via requires, the action (or route) that should be run when a URL is encountered.
Re:Node.js in Flame Graphs by BradRuderman on Thursday November 20, 2014 @02:18AM (#8634696)
Second dmak, would love to understand more. I can following dynamically loading routes but can't follow how that would be implemented end to end. Some things I would be interested in: - Where do the keep the code that gets executed for new routes? Is that deployed dynamically as well? - If you are changing routes dynamically how do you test in non-prod, are you constantly syncing non prod with prod? - How do you control what you deploy dynamically vs what you migrate through the environments?