napajs icon indicating copy to clipboard operation
napajs copied to clipboard

NapaJS for ethereum transactions

Open ktang98 opened this issue 7 years ago • 2 comments

I'm completely new to Napa.js. I want to compare the efficiency of napa.js with node.js in terms of making and storing ethereum transactions. Some steps would be to make https requests for a node to make an ethereum transaction. Does Napa.js currenlty support the https , 'express' and web3 modules that Node.js has?

If these modules are not supported by Napa yet, is it possible to combine napa and node zones to still achieve the multi-threading effect?

Thanks!

ktang98 avatar Jul 27 '18 03:07 ktang98

Hi, have you got any experience about?

ghost avatar Aug 17 '18 09:08 ghost

v0.4.0-pre has limited support on node built-in modules.

However, it is not necessary to use 'https' and other node's IO modules in napa zones/workers. A typical pattern is to handle request in main thread and dispatch the process work to zone via zone.execute(). I am not familiar with ethereum; if handling ethereum transactions requires heavy javascript computation, this pattern should work well.

fs-eire avatar Aug 17 '18 09:08 fs-eire