Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants