Redis Common Commands

Redis Common Commands

1. IntroductionIn modern application development, fast data reading and writing as well as efficient storage are key to ensuring system performance. Redis, as an open-source in-memory data storage sys···
views:261
A Deep Dive into the Comparison Between Sleep and Wait

A Deep Dive into the Comparison Between Sleep and Wait

In this article, we analyze the differences between sleep and wait. sleep is used to pause the current thread for a specified period while retaining the lock, commonly used to control execution timing···
views:226
How to Implement Distributed Locks Using Redis

How to Implement Distributed Locks Using Redis

In a multi-threaded environment, it is essential to ensure that a code block can only be accessed by one thread at a time. Today, distributed architectures are popular within companies, so how do we e···
views:286
Knowledge about CPU Cache

Knowledge about CPU Cache

No matter what kind of code you write, it will eventually be executed by the CPU. Therefore, if you want to write high-performance code, the techniques mentioned in this article are definitely worth s···
views:255
Programming Paradigms in Rust(Part 2)

Programming Paradigms in Rust(Part 2)

Threads and Smart PointersNow, let's return to the unresolved issue mentioned earlier: I want to share a read-only piece of data, such as a large array, across multiple threads. I can't clone ···
views:278
Programming Paradigms in Rust(Part 1)

Programming Paradigms in Rust(Part 1)

This article aims to explore some challenges in programming through the lens of Rust's language design, particularly its important programming paradigms, as this approach may offer deeper insights···
views:292
Timing Attacks

Timing Attacks

Alternative String ComparisonIn Java's Play Framework, there is a piece of code used to verify the validity of data in cookies (sessions), which includes signature validation, as shown below:boole···
views:222
Principles of System Architecture

Principles of System Architecture

This article discusses several principles of system architecture that are generally applicable to relatively complex businesses. If you are dealing with simple applications with low traffic, you may d···
views:262
One Size Fits All: Using Only POST for REST APIs

One Size Fits All: Using Only POST for REST APIs

When I connect to my colleague's interface, all the interfaces he defined are post requests. The reason is that post is safer for https. I am used to using restful APIs. If only post requests are ···
views:285
ETCD memory issues

ETCD memory issues

Why Use ETCDLet’s start by discussing why we use ETCD, particularly in the context of our API gateway, Easegress (source code).Easegress is an API gateway product developed and open-sourced by us. Un···
views:226
Talking about TIME_WAIT from an experience

Talking about TIME_WAIT from an experience

To provide some context, EaseProbe is a lightweight, standalone tool for health-checking services. It supports HTTP, TCP, shell, SSH, TLS, hosts, and various middleware checks. It can directly send no···
views:278
Linux Memory Paging Management

Linux Memory Paging Management

Memory is the primary storage of a computer. It allocates process space for storing data during process execution. This article will delve into the details of memory management, particularly the conce···
views:286
Calling SQLite Database in C#

Calling SQLite Database in C#

In C#, storing and retrieving data through the SQLite database is a common task. This article will introduce how to use SQLite in C# and provide corresponding example code.SQLite is a lightweight, emb···
views:213