What is Nostr?
Mario Zechner /
npub1h6q…5nvc
2024-12-04 02:22:40

Mario Zechner on Nostr: I have a bunch of services that need to communicate with each other. Here's a NodeJS ...

I have a bunch of services that need to communicate with each other. Here's a NodeJS based service trying to a C++ based service.

Using Node's built-in fetch(), I get 3 req/sec.

Using Node's http.request(), I get 8100 req/sec.

Not a typo. Can anyone explain what's going on? I understand that fetch() will have some overhead due to being largely compatible with the browser fetch. But this is too much.


Author Public Key
npub1h6qmf9h2qfvfgf663q6xl7lh6gt63zr0zzqcteqp8pmy0mls3x6qsw5nvc