fastify / fastify-reply-from

fastify plugin to forward the current http request to another server
MIT License
148 stars 76 forks source link

build(deps): replace tiny-lru with toad-cache #346

Closed kibertoad closed 7 months ago

kibertoad commented 7 months ago

This brings fastify-reply-from in line with fastify, fastify-cigtm and fastify-rate-limit, by switching to toad-cache, which is faster than tiny-lry, and to a map-based (as opposed to object-based) cache, which is faster for string keys.

See benchmark results.

Checklist

gurgunday commented 7 months ago

Thanks!

I was waiting for some free time to take this on