© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Vasu Rangpariya
How to implement deduplication without using platformatic with Fastify. Is there any demo code to implement it with a route or controller?
Melroy van den Berg
Software Engineer
I guess implement the package yourself in your Fastify app: github.com/mcollina/async-cache-dedupe
I guess just adding a cache behind each DB call? See some TS example code: github.com/mcollina/async-cache-dedupe
Here another example implementation: github.com/Shyam-Chen/Fastify-Starter/blob/a17460…
If you are more advanced... And understand the examples above.
You could also checkout the Platformatic code, if you want to see a template style of implementing it, thus it can be used in a very general way: github.com/platformatic/platformatic/blob/b0cbad3…
Then the setupCache method is used here: github.com/platformatic/platformatic/blob/b0cbad3…
setupCache