Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

NapaJS for ethereum transactions #255

Open
ktang98 opened this issue Jul 27, 2018 · 2 comments
Open

NapaJS for ethereum transactions #255

ktang98 opened this issue Jul 27, 2018 · 2 comments

Comments

@ktang98
Copy link

ktang98 commented Jul 27, 2018

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!

@ghost
Copy link

ghost commented Aug 17, 2018

Hi, have you got any experience about?

@fs-eire
Copy link
Contributor

fs-eire commented Aug 17, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants