当前位置:网站首页>MySQL advanced part 2: MySQL architecture
MySQL advanced part 2: MySQL architecture
2022-07-05 06:13:00 【Dawnlighttt】
List of articles

Whole MySQL Server It consists of
- Connection Pool : Connection pool components
- Management Services & Utilities : Manage service and tool components
- SQL Interface : SQL Interface component
- Parser : Query analyzer component
- Optimizer : Optimizer components
- Caches & Buffers : Buffer pool components
- Pluggable Storage Engines : Storage engine
- File System : file system
1) adjoining course
At the top are some clients and link services , Contains the local sock Communication and most are client based / The implementation of server-side tools is similar to TCP/IP Communication for . Mainly completes some similar to the connection processing 、 Authorized certification 、 And related safety programs . The concept of thread pool is introduced in this layer , Provide threads for clients accessing through authentication security . Also on this layer, we can implement the system based on SSL Security links for . The server will also verify the operation permissions it has for each client of secure access .
2) Service layer
The second layer architecture mainly completes most of the core service functions , Such as SQL Interface , And complete the cache query ,SQL Analysis and optimization of , Execution of some built-in functions . All the cross storage engine functions are also implemented in this layer , Such as The process 、 Functions, etc . On this floor , The server parses the query and creates the corresponding internal parse tree , And it completes the corresponding optimization, such as determining the query order of the table , Whether to use index, etc , Finally, the corresponding execution operation is generated . If it is select sentence , The server also queries the internal cache , If the cache space is large enough , In this way, it can improve the performance of the system in the environment of solving a large number of read operations .
3) Engine layer
Storage engine layer , The storage engine is really responsible for MySQL The storage and extraction of data in , Server pass API Communicating with the storage engine . Different storage engines have different functions , So that we can according to our own needs , To choose the right storage engine .
4) Storage layer
Data storage layer , Mainly store the data on the file system , And complete the interaction with the storage engine .
Compared with other databases ,MySQL It's a little different , Its architecture can be applied in many different scenarios and play a good role . Mainly in the storage engine , Plug in storage engine architecture , Separate query processing from other system tasks and data storage and extraction . This architecture can choose the right storage engine according to the needs of the business and the actual needs .
边栏推荐
- LeetCode 1200.最小绝对差
- Quickly use Amazon memorydb and build your own redis memory database
- Appium基础 — 使用Appium的第一个Demo
- 剑指 Offer II 058:日程表
- [rust notes] 17 concurrent (Part 2)
- A reason that is easy to be ignored when the printer is offline
- Daily question 1189 Maximum number of "balloons"
- Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
- 927. 三等分 模拟
- 2022 pole technology communication arm virtual hardware accelerates the development of Internet of things software
猜你喜欢

Brief introduction to tcp/ip protocol stack

wordpress切换页面,域名变回了IP地址

QQ电脑版取消转义符输入表情

Is it impossible for lamda to wake up?

Typical use cases for knapsacks, queues, and stacks

How to adjust bugs in general projects ----- take you through the whole process by hand

【云原生】微服务之Feign自定义配置的记录

API related to TCP connection

Some common problems in the assessment of network engineers: WLAN, BGP, switch

Leetcode-6110: number of incremental paths in the grid graph
随机推荐
927. 三等分 模拟
【Rust 笔记】14-集合(上)
Basic explanation of typescript
1040 Longest Symmetric String
1.13 - RISC/CISC
LaMDA 不可能觉醒吗?
Introduction et expérience de wazuh open source host Security Solution
927. Trisection simulation
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
Brief introduction to tcp/ip protocol stack
1041 Be Unique
Leetcode-22: bracket generation
Leetcode-556: the next larger element III
leetcode-3:无重复字符的最长子串
[cloud native] record of feign custom configuration of microservices
Appium automation test foundation - Summary of appium test environment construction
Liunx starts redis
Open source storage is so popular, why do we insist on self-development?
MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
做 SQL 性能优化真是让人干瞪眼