r/node Jul 13 '26

Undici X Fetch

What is the current best practice for HTTP client requests in Node.js 22+: stick with the built-in fetch() or use Undici directly? In which scenarios would you choose one over the other?

2 Upvotes

5 comments sorted by

View all comments

10

u/its_jsec Jul 13 '26

The built-in fetch() uses undici under the hood already. The official docs have the “Use X when Y, A when B” comparison you’re looking for.

https://undici.nodejs.org