I am working on an e-commerce app that has to re-calculate pricing for products every time products are sent from the server to the client (up to thousands of products are sent each time). The calculation piece itself is fairly intensive since it requires multiple database queries to calculate. My naive solution is to abstract the calculation part onto another node.js app/server that is solely dedicated to calculations. Does anyone know of a better or more scalable/optimal way to do this?
Thanks in advance!