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:
- a node.js api service - receives http restful requests. service calls second service using transactional rpc protocol dnode.
- 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
Post a Comment