Re:Modern Javascript: Everything you missed over the last 10...
by akra on Tuesday May 18, 2021 @06:23AM
(#27192955)
I would argue while it has other benefits it probably isn't as simple. Simplicity is usually the long term better choice. As the business scales since you've probably set a precedent this pattern will be copied all over the place. After enough times trying to understand who owns the data transformations, what lives where, how to support it when one part of the puzzle fails and trying to wire it all and how all these stacks couple together becomes a nightmare. Unfortunately I've experienced some of these issues coming into organizations after the original developers have left once it became too "big" of a place to work for - few people truly understand the architecture and even when they do its flaky and recovery is hard. YMMV depending on the complexity of your business and age. In the end IMO it just seems like a big workaround to keep using Node.
Re:Modern Javascript: Everything you missed over the last 10...
by pricci on Saturday May 15, 2021 @05:18PM
(#27169117)
Where can I read more about that architecture you aretalking about?
Re:Modern Javascript: Everything you missed over the last 10...
by mattacular on Saturday May 15, 2021 @05:49PM
(#27169333)
Not op but I assume they mean: a main web server is scheduling large jobs in the background by publishing an event to whatever pub/sub system you want to use (there are many!), lambdas can be subscribed to this system so they trigger off these events and publish a corresponding event back when they're done that the web app is subscribed to etc.
Re:Modern Javascript: Everything you missed over the last 10...
by 8note on Saturday May 15, 2021 @08:10PM
(#27170106)
For an example, you can look at how node interacts with OpenCV.
The JS scripts together the compute heavy CV alogrithms, and you can do similar by hosting your computer heavy things behind a service call, while keeping the orchestration parts in node
But again, I definitely agree with what you've written, right tool for the job.