Articles under the 'Back End' tag
LRU Cache
What is LRU Cache and How to Implement it1. What is LRU CacheLRU is the abbreviation of Least Recently Used, which means least recently used. It is a Cache replacement algorithm.
1.1 What is Cache?The Cache in the narrow sense refers to the fast RAM located between the CPU and the main memory. Usual
...
More >>
2024-01-29
Back End
/
LRU Cache
MySQL Slow Query
What is SQL slow query?When we execute a sql, the database not only returns the execution result, but also returns the execution time of the sql. MySQL slow queries refer to queries whose execution time exceeds the threshold (the default value is 10 seconds). These slow queries will be recorded as s
...
More >>
2023-12-12
Back End
/
MySQL
Using ShardingSphere for Sharding Databases and Tables
1. What is ShardingSphereShardingSphere is an open source distributed database middleware solution that provides database sharding, database replication, and distributed transaction support for various database management systems. It aims to help achieve horizontal scalability and data distribution
...
More >>
2023-10-26
Database
/
Back End
Sub-Databases and Sub-Tables in Database Architecture
1. What is sub-database and sub-table?
Table splitting: Split the data in one table into multiple tables according to certain rules, reduce lock granularity and index trees, and improve data query efficiency.
Split database: Split the data in one database into multiple databases according to certain
...
More >>
2023-10-19
Database
/
Back End
MySQL Connection Ramble
In PHP and MySQL, there are different ways to manage database connections. These include short connections, long connections, and connection pooling.
1.Short connectionsShort connections refer to connecting to the database only when necessary and disconnecting immediately after the query is executed
...
More >>
2023-10-07
Back End
/
MySQL
Introduction to Cross-Border Payment System Design
With increasing global trade and financial interactions, cross-border payment systems have become critical. Not only do these systems need to handle transactions between different countries and currencies, they must also address the various regulatory, currency conversion and security challenges inv
...
More >>
2023-09-28
Back End
/
Design Principles
Understanding Kafka: A High-Level Overview
IntroductionApache Kafka is a distributed messaging system that has become an integral part of modern data processing pipelines. It is designed to handle real-time, high-throughput, and fault-tolerant data streaming. Kafka is widely used for ingesting, storing, and processing data in various applica
...
More >>
2023-09-12
Back End
/
Kafka
How to Quickly Perform Interface Testing Under Microservices
Generally speaking, development engineers have defined microservice interfaces in the early stage of development, and test engineers and development engineers start their own development tasks almost simultaneously. However, this harmonious work scenario is soon destroyed by the spider web-like micr
...
More >>
2023-08-08
microservices
/
Back End
Master These 16 Essential Coding Habits for Increased Efficiency
IntroductionThis article provides a comprehensive compilation of 16 essential coding practices that the author deems are indispensable for enhancing work efficiency
1. After modifying the code, remember to test it“Test the code after modification” is a basic requirement for every programmer. Don’t h
...
More >>
2023-08-02
Back End
/
Coding
/
Efficiency
Why Does MySQL Sometimes Choose the Wrong Index?
After the table is indexed, sql can select the right index when the amount of data is small, but when the amount of data becomes large, it cannot select the correct index. We analyze the reasons for mysql’s wrong index selection from the following aspects.
Impact the execution of sql cost analysis
A
...
More >>
2023-07-26
Back End
/
Mysql