Lei Xia

Sr. Software Engineer | Solution Architect

Writing code, Enjoying life, Building future

RSS · Sponsor


Retrieval-Augmented Generation

April 24, 2024 · 759 words · 4 min

In the era of information explosion, we are faced with the challenge of vast amounts of data. Retrieving useful information from this data is becoming increasingly difficult for people. To address this issue, researchers have proposed a novel technology called RAG (Retrieval-Augmented Generation).

RAG combines the methods of retrieval and generation to make information extraction from large-scale data more efficient and accurate.

This article will introduce the definition, working principle, and problems addressed by RAG.

Understanding Replication In MySQL

March 17, 2024 · 1328 words · 7 min

MySQL Replication is a process where data from one MySQL database known as the master is copied over to one or more other databases called replicas or slaves. In this article, we’ll learn what replication is, how to enable replication, replication modes and replication forms.

Understanding MVCC In MySQL InnoDB

March 9, 2024 · 1335 words · 7 min

In MySQL, MVCC (Multi-Version Concurrency Control) refers to the concurrency control mechanism used by the InnoDB storage engine. It provides concurrent access to data and ensures data consistency and isolation in a multi-user environment.

Implementing timer in mio

March 5, 2024 · 441 words · 3 min

Mio is a high-performance, low-level I/O library for Rust that focuses on non-blocking APIs and event notification. While Mio provides powerful capabilities for building I/O applications, it does not include a built-in timer feature. In this article, we will explore how to implement a timer in Mio.

A deep dive into Bloomfilter in Redis

November 19, 2023 · 708 words · 4 min

In this article, I’ll deep dive into an annother powerful data structure in Redis: Bloom Filter. Bloom Filter can help you check whether elements exist, reduce unnecessary quering costs, improve system response speed and throughput. By properly utilizing Bloom Filter, you can optimize application performance effectively, meet the requirement of high-performance and large-scale data processing.

A deep dive into HyperLog in Redis

November 18, 2023 · 761 words · 4 min

In this article, I’ll deep dive into an interesting and powerful feature of Redis: HyperLog. By understanding the working principles and application scenarios of this feature, you’ll be able to leverage Redis effectively to build high-performance and high-scalable applications.

Build a linux/c++ development environment based on docker/vscode step-by-step

October 20, 2023 · 510 words · 3 min

Sometimes we want to develop some high-performance c++ application on Linux(like epoll/ioturing), installing a virtual machine is a solution, but I think it’s not the most convenient solution, today I’ll share how to build a linux/c++ development environment based on docker/vscode.

Understanding RBAC

September 25, 2023 · 659 words · 4 min

Role-based access control(RBAC) is a policy-neutral access control mechanism defined around roles and privileges. The components of RBAC such as role-permissions, user-role and role-role relationships make it simple to perform user assignments.

In this article, I’ll share some information about RBAC.