Using nginx to serve content directly out of a redis cache

前端 未结 3 463
别跟我提以往
别跟我提以往 2020-12-30 04:36

I am using nginx to pass requests to a Node app. The app basically acts as a remote cache for html (checks to see if what the user is requesting is in the redis db, if it is

3条回答
  •  孤城傲影
    2020-12-30 05:11

    I know this is an old thread but still, this may be useful for some. I tried the same approach as you having nginx serve from Redis directly without hitting using HttpRedis2Module in nginx. I were happy when I got it working because it was some hassle with it, but when I did some stress-tests I'm afraid that it gave really bad results.

    It actually was a bit faster and much more stable to serve using nginx->php->mongodb than just using nginx->redis with the module.

提交回复
热议问题