在现代软件架构中,缓存是提高系统性能和扩展性的关键组件之一。然而,缓存的有效管理,特别是缓存更新策略,对于保持数据一致性和系统可靠性至关重要。 本文将简单探讨和比较几种常见的缓存更新策略,以及它们各自的优缺点。 Note: 启发自 《从程序员到架构师:大数据量 缓存、高并发、微服务 多团队协同等核心场景实战》一书的第四章:读缓存。

Enable postman json tree view

As a qualified backend programmer, we need to deal with JSON data from time to time. Currently, many backend programmers use Postman to test API requests. However, Postman as a tool itself does not provide particularly powerful JSON data visualization. For example, it only offers simple code-level data folding and cannot perceive the specific number of elements inside a list.

When git force pushed before a pull

Git, a widely used version control system, empowers developers to collaborate seamlessly and manage code repositories efficiently. However, even with its robust features and safeguards, human mistakes can still occur, leading to potential code conflicts and loss of work. One such common pitfall is force-pushing changes before performing a pull operation. And I just made it happen today.

SaltyNote Implementation - Service

SaltyNote is a Chrome Extension that provides the immersive page notes taken experience. The users can view all the notes taken on the current page from the right sidebar without leaving the page. In this article, I will introduce the implementation of the SaltyNote service.

Maybe not a good start of 2023

From the end of 2022, I have heard so many layoff news from big tech. While I never thought I would be impacted, since I believed Salesforce is a 2B company, and its business would be as stable as before. Embarrassing, it came to this news eventually, just one day before my son’s birthday. >> salesforce 10% layoff

install netease music in Ubuntu

在18.04出来之前,一直用Ubuntu的16.04,安装网易音乐之后,只需要在/usr/share/applications/netease-cloud-music.desktop 添加一个 --no-sandbox就可以解决了。 1Exec=netease-cloud-music --no-sandbox %U