---
title: "Discussion on \"How To Make Your Node.js API 5x Faster With Platformatic\" | Hashnode"
description: "Discussion on \"How To Make Your Node.js API 5x Faster With Platformatic\". Optimize your Node.js API for a 5x speed boost with Platformatic DB, caching, and efficient performance testing"
url: "https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Make Your Node.js API 5x Faster With Platformatic](https://blog.platformatic.dev/how-to-make-your-nodejs-api-5x-faster-with-platformatic?utm_source=hashnode&utm_medium=feed)

Optimize your Node.js API for a 5x speed boost with Platformatic DB, caching, and efficient performance testing

Oct 26, 2023 · 8 min read · blog.platformatic.dev  
Updated Nov 3, 2023  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#backend](https://hashnode.com/tag/backend)
-   [#platformatic](https://hashnode.com/tag/platformatic)
-   [#apis](https://hashnode.com/tag/apis)
-   [#nodejs-developer](https://hashnode.com/tag/nodejs-developer)

## Written by

[Matteo Collina](https://hashnode.com/@matteocollina)

@matteocollina

  
[View profile](https://hashnode.com/@matteocollina)

Open Sourcerer, Node.js TSC member, Fastify Lead Maintainer

## Responses 2

Markdown supported · ⌘↵ to post

[Melroy van den Berg](https://hashnode.com/@melroy89)

[Mar 29, 2024](https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93/comment/6606fbf1e319782b51150449)

You have a typo: "requests per second increase to approximately 25,567 at the 97.5th percentile."

This is for 50th percentile. For 97.5th percentile you actually have 26,191!

[nard Leo](https://hashnode.com/@nardleo)

[Mar 25, 2024](https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93/comment/6600e379e96ae738dfb0913a)

I agree with your point of view when sharing about this issue, so I can continue playing [tiny games](https://tinyplay.io/)

[BJ88 Tax](https://hashnode.com/@bj88tax)

[Mar 23, 2024](https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93/comment/65fe911f5f235daa9b7dde7c)

BJ88TAX TRANG NHÀ CÁI ĐỘC QUYỀN ĐÁ GÀ THOMO nếu bạn đang tìm trang đá gà trực tuyến , BJ88 sẽ mang lại cho bạn cảm giác trãi nghiệm cực tốt . Tham gia cược tại các trường gà Campuchia , Thái , Phi được phát trực tiếp từ bồ gà LINK ĐĂNG KÝ : [bj88.tax](https://bj88.tax/)

-   Thông tin liên hệ Zalo : 0907004941
-   Thông tin liên hệ Telegam : @huynhlongthomo

[Vasu Rangpariya](https://hashnode.com/@vasurangpariya)

[Feb 26, 2024](https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93/comment/65dc7afd2e8d35e063a47b49)

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](https://hashnode.com/@melroy89)

[Mar 18, 2024](https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93/comment/65dc7afd2e8d35e063a47b49#reply-65f79e633e29f61c5350cee6)

I guess implement the package yourself in your Fastify app: [github.com/mcollina/async-cache-dedupe](https://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](https://github.com/mcollina/async-cache-dedupe?tab=readme-ov-file#typescript)

Here another example implementation: [github.com/Shyam-Chen/Fastify-Starter/blob/a17460…](https://github.com/Shyam-Chen/Fastify-Starter/blob/a1746035a40bf49d5d095b0b2c16cfa5e2493a40/app/src/routes/hello-world/caching-dedupe/%5Bid%5D-redis/%2Bhandler.ts#L4)

[Melroy van den Berg](https://hashnode.com/@melroy89)

[Mar 18, 2024](https://hashnode.com/posts/how-to-make-your-nodejs-api-5x-faster-with-platformatic/653a4ec7a170ffcca0d38b93/comment/65dc7afd2e8d35e063a47b49#reply-65f7a1803e29f61c5350ceeb)

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…](https://github.com/platformatic/platformatic/blob/b0cbad33354dacf2f018ddf4d62bee4f412b420c/packages/sql-mapper/lib/cache.js#L2)

Then the `setupCache` method is used here: [github.com/platformatic/platformatic/blob/b0cbad3…](https://github.com/platformatic/platformatic/blob/b0cbad33354dacf2f018ddf4d62bee4f412b420c/packages/sql-mapper/mapper.js#L10)
