什么是 Druid

什么是 Druid,第1张

Apache Druid 是一个实时分析型数据,旨在对大型数据集进行快速查询和分析(“OLAP” 查询)。

Druid 最常被当做数据库,用以支持实时摄取、高查询性能和高稳定运行的应用场景。 例如,Druid 通常被用来作为图形分析工具的数据源来提供数据,或当有需要高聚和高并发的后端 API。 同时 Druid 也非常适合针对面向事件类型的数据。

通常可以使用 Druid 作为数据源的系统包括有:

Druid 的核心架构集合了数据仓库(data warehouses),时序数据库(timeseries databases),日志分析系统(logsearch systems)的概念。

maxresdefault1280 720 83.7 KB

如果你对上面的各种数据类型,数据库不是非常了解的话,那么我们建议你进行一些搜索来了解相关的一些定义和提供的功能。

Druid 的一些关键特性包括有:

public DruidPooledConnection getConnectionDirect(long maxWaitMillis) throws SQLException {

// 超时重试次数,达到这个值就报错

int notFullTimeoutRetryCnt = 0

for () {

// handle notFullTimeoutRetry

DruidPooledConnection poolableConnection

try {

// 核心逻辑

poolableConnection = getConnectionInternal(maxWaitMillis)

} catch (GetConnectionTimeoutException ex) {

if (notFullTimeoutRetryCnt <= this.notFullTimeoutRetryCount &&!isFull()) {

notFullTimeoutRetryCnt++

if (LOG.isWarnEnabled()) {

LOG.warn("get connection timeout retry : " + notFullTimeoutRetryCnt)

}

continue

}

throw ex

}


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/8742136.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-20
下一篇 2023-04-20

发表评论

登录后才能评论

评论列表(0条)

保存