Caching database queries with Node.js

前端 未结 3 857
-上瘾入骨i
-上瘾入骨i 2021-01-04 11:52

Is there an implementation of database (mysql) query caching written purely in Node.js?

I\'m writing a Node web app and was planning on caching queries with memcache

3条回答
  •  清歌不尽
    2021-01-04 12:08

    You can definitely implement something like this in node, and it could be an interesting project, but it depends on your needs. If you're just doing this for a hobby project, by all means, build a caching layer in node and try it out. Let us know how it goes!

    If this is for production use, then I would recommend sticking to the established caching layers (memcached, redis, etc) as they have already gone through all of the growing pains associated with building a scalable caching system.

提交回复
热议问题