Matteo Collina on Nostr: Quite a few people have asked me what HTTP client I recommend for Node.js. In concert ...
Quite a few people have asked me what HTTP client I recommend for Node.js.
In concert with my friend Ethan Arrowood, we have prepared a benchmark for you to decide.
If your application mostly does HTTP API calls, use `undici.request` directly, you'll experience a 3x acceleration compared to got, fetch, axios or node-fetch. fetch is getting faster but still behind all other high-level APIs.
Let me know if you have any more questions!
Published at
2024-01-18 17:16:04Event JSON
{
"id": "841a30f810add3b653f5a476b5bcbf1f049f6890852ecd37292a78ca8d0e00e1",
"pubkey": "84afd2faf632c84f9539aaeb2bab0e8552e22b40a04e3df184f5e6ee3cc31f6b",
"created_at": 1705598164,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/mcollina/statuses/111778081302454887",
"activitypub"
]
],
"content": "Quite a few people have asked me what HTTP client I recommend for Node.js.\nIn concert with my friend Ethan Arrowood, we have prepared a benchmark for you to decide.\n\nIf your application mostly does HTTP API calls, use `undici.request` directly, you'll experience a 3x acceleration compared to got, fetch, axios or node-fetch. fetch is getting faster but still behind all other high-level APIs. \n\nLet me know if you have any more questions!\n\nhttps://cdn.fosstodon.org/media_attachments/files/111/778/081/114/042/997/original/0478d5deb6cd12f1.png",
"sig": "3f084e9161b687b84c2d554ff713a03975658e24625eec05e888a283415205a81d5c98e4955478eea138b813a94976773b5ecccc918decd166db36c25a909e95"
}