4 Comments
Jul 17Liked by Martin Joo

A bit out of scope of article ctx, but worth mentioning for users adopting this, is setting up a persistent connection (pconnect) and using a socket rather than tcp/ip.

In addition, the article covers the scope of a cluster, in which a redis service is a great choice.

However for a single server or vps, a better option may be Swoole table thru laravel octane.

A Swoole table can also function as a shared intermediate layer to a redis cluster.

Whether it's worth it in terms of complexity, is to be evaluated thru a cost / benefit analysis.

Expand full comment
author

Thanks! These are all great ideas. However, in this post, I wanted to focus on the implementation.

Expand full comment

Hi Martin, interesting topic there. I loved this, give me insights. never do optimation like using LRU Caches

Expand full comment
author

Thanks!

If you think about applications such as Dropbox, Google Drive, or Spotify they all use this kind of caching to quickly serve "recently used" items. If you want to learn more about this topic, you can replicate some of these features in a toy project. I think that's the best way to learn.

Expand full comment