当前位置:网站首页>Part V Druid data source introduction
Part V Druid data source introduction
2022-07-23 15:20:00 【nihui123】
Introduction
Everyone has been using Druid, But never studied Druid What is it ?Druid The first is a database connection pool .Druid Is the best database connection pool available , In the functional 、 performance 、 extensibility , All over the other database connection pool , Include DBCP、C3P0、BoneCP、Proxool、JBoss DataSource.Druid More than has been deployed in alibaba 600 Applications , After more than a year of large-scale deployment in production environments .Druid Is a database connection pool developed by alibaba that it claims was created for surveillance ! Now let's take you to study Druid.
Druid It's a JDBC Components , It mainly includes the following three parts
- DruidDriver agent Driver, Be able to provide based on Filter-Chain Pattern plug-in system
- DruidDataSource It can efficiently manage the database connection pool
- SQLParser
Druid What can be done ?
- 1、 It can monitor the performance related data of database access ,Druid Built in provides powerful StatFilter plug-in unit , Be able to count SQL Execution performance , It is very helpful for online analysis .
- 2、 To replace the DBCP and C3P0 Database connection pool .Druid Provides a more efficient 、 Powerful performance 、 Highly scalable database connection pool .
- 3、 Generally in development , We write the database password in the configuration file , Such operation is extremely unsafe ,DruidDruiver and DruidDataSource It's all supported PasswordCallback operation .
- 4、SQL Execution log ,Druid Offers a different one LogFilter, Able to support Common-Logging、Log4j and JDKlog, You can choose the corresponding LogFilter,
边栏推荐
猜你喜欢

VSCode 更新後與tab相關快捷鍵無法使用

Start process of activity

IO流之 字节流 & 字符流

基于simulink的双闭环矢量控制的电压型PWM整流器仿真

报错 | cannot read property ‘_normalized‘ of undefined

How to realize 485 wireless communication between multiple sensors and Siemens PLC?

动态规划-力扣

What is the difference between server hosting and virtual host

VSCode 更新后与tab相关快捷键无法使用

Matlab simulation of depth information extraction and target ranging based on binocular camera images
随机推荐
深入理解CAS (自旋锁)
Leetcode: 17. letter combination of phone number
Simulation of synchronization performance of BOC modulation and demodulation based on MATLAB, output tracking curve and identification curve under different lead lag code distance
Matlab simulation of depth information extraction and target ranging based on binocular camera images
多线程一定能优化程序性能吗?
ClickHouse,让查询飞起来!!!
MySQL的大心脏 — 索引
dataframe.groupby学习资料
STL deque
基于PSO优化的多目标最优值求解matlab仿真
基于双目相机拍摄图像的深度信息提取和目标测距matlab仿真
报错 | cannot read property ‘_normalized‘ of undefined
RSA加密的使用
[machine learning basics] unsupervised learning (5) -- generation model
Redis bloom filter
Kettle實現共享數據庫連接及插入更新組件實例
C# 计算某个字符在字符串中出现的次数
广州举办镇街农产品质量安全监管员大比武
[200 opencv routines] 225. Fourier descriptor for feature extraction
Subsequence --- edit distance