News for hackers. Stuff that matters.
Re:Learn Lua in 15 Minutes (2013) by leetrout on Tuesday June 30, 2020 @06:44PM (#23695671)
Not the OP but I used openresty (fork of nginx) to cache POST requests to Redis.

It’s lightning fast.

16,000+ requests per second served from the cache.

Re:Learn Lua in 15 Minutes (2013) by ethanpil on Wednesday July 01, 2020 @12:22AM (#23697706)
Can you point me in the right direction for this type of implementation?
Re:Learn Lua in 15 Minutes (2013) by anonymoushn on Thursday July 02, 2020 @11:06PM (#23720681)
At one company that served a lot of requests from an Openresty cache, we used nginx's cache for caching full HTTP responses and lua-resty-mlcache for caching other things. lua-resty-mlcache requires one to provide a callback to get the data as a string, then a way to deserialize the string, because the l2 cache in nginx's shared memory zone will store the item as a string. We used msgpack for this part.
Re:Learn Lua in 15 Minutes (2013) by leetrout on Thursday July 02, 2020 @02:54PM (#23716669)