node.js vs java - compute intensive computation -


i'm evaluating backend architecture api, taking deeper looks node.js , j2ee application server corresponding j2ee war files. api have compute quite cpu-intensive tasks - more specific training of neural networks. have experience such setup concerning performance and/or packages 1 should use machine learning? there other api technologies should consider - example java micro services?

thanks lot in advance, philipp

i'd recommend @ least 2 micro services. 1 accepting api requests. other(s) computation. can choose languages these two.

for example:

  1. a node.js api service - receives http restful requests. service calls second service using transactional rpc protocol dnode.
  2. a stateless c++/java/go service - receives computation tasks via dnode rpc, performs calculations, , returns result back.

as result, you'll have offloaded frontend service. not lag on high load. second service written using cpu optimized library/language. moreover, can scale second service in case of high load.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -