Mattermost scaled to over 100K users by introducing Redis into their architecture, addressing issues related to cache invalidations and node synchronization. They opted for the rueidis library for better default functionalities and discovered the importance of batching commands to reduce overhead. Client-side caching was
Table of contents
Choice of library matters πBatching is not optional πUse client-side caching for best of both worlds πΊUse MGET/MDELETE if you have tight loops with GET/DELETE β°Be careful of high volumes of SCAN calls πEnsure not to self-send a message while using pub-sub ποΈFinishing wordsSort: