category : 计算机那些事

缓存更新策略的列举和比较

在现代软件架构中,缓存是提高系统性能和扩展性的关键组件之一。然而,缓存的有效管理,特别是缓存更新策略,对于保持数据一致性和系统可靠性至关重要。 本文将简单探讨和比较几种常见的缓存更新策略,以及它们各自的优缺点。 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.

Quick start: swagger, spring-boot and Jersey

在做服务器端API开发的时候,如何保持文档的更新是一个比较头疼的问题。试过写成word文档,缺点很明显: 更新不及时 不便于查阅 也试过用其他的在线API管理工具,太懒了,总是无法保持更新。而且大多数服务还是收费的。

OpenShift简单折腾小记

前段时间趁着参加一个无聊活动的过程中折腾了一下OpenShift,即使有一些不足,但是感觉它比我想象的好用。底下就扯扯我是瞎折腾过程中得经验。