Can I get 1) connection pooling and 2) DNS caching with the built-in fetch() method in NodeJS?
Conversation
Notices
-
Embed this notice
Evan Prodromou (evan@cosocial.ca)'s status on Thursday, 08-Feb-2024 08:58:51 JST Evan Prodromou -
Embed this notice
Pelle Wessman (voxpelli@mastodon.social)'s status on Thursday, 08-Feb-2024 09:32:36 JST Pelle Wessman @evan You are probably better off using undici directly rather than going through the built in copy of it
And to use its non-fetch variant
-
Embed this notice
Evan Prodromou (evan@cosocial.ca)'s status on Thursday, 08-Feb-2024 09:32:36 JST Evan Prodromou @voxpelli because it has DNS caching and connection pooling?
-
Embed this notice
Evan Prodromou (evan@cosocial.ca)'s status on Thursday, 08-Feb-2024 10:45:53 JST Evan Prodromou @joshbetz @voxpelli As far as I can tell, undici doesn't have dns caching or connection pooling. Am I far off?
-
Embed this notice
Josh Betz (joshbetz@hachyderm.io)'s status on Thursday, 08-Feb-2024 10:45:54 JST Josh Betz -
Embed this notice
Pelle Wessman (voxpelli@mastodon.social)'s status on Thursday, 08-Feb-2024 21:29:37 JST Pelle Wessman @evan @joshbetz It does have connection pooling: https://undici.nodejs.org/#/docs/api/Pool
-
Embed this notice
Evan Prodromou (evan@cosocial.ca)'s status on Thursday, 08-Feb-2024 21:29:37 JST Evan Prodromou @voxpelli @joshbetz thanks. And DNS caching, like I asked in my first question?
In conversation permalink
-
Embed this notice