# alibaba/druid

阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品，为监控而生的数据库连接池

Repository: https://github.com/alibaba/druid
Canonical: https://ross.abutalabs.com/products/druid
Homepage: https://github.com/alibaba/druid/wiki
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-08-01T11:32:54+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 42, longevity 100
- inputs: {"age_days": 5417, "days_push": 32, "days_rel": 176, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 28179, forks 8561 (observed 2026-08-28T04:11:48.175579+00:00)

## What it is
Alibaba Druid is a high-performance JDBC database connection pool for Java that integrates SQL parsing, SQL firewall protection, and real-time monitoring statistics. It includes a pluggable filter-chain architecture, a web monitoring console, and Spring Boot starters for easy integration.

## Use cases
- pool jdbc connections in a java application
- monitor sql execution and connection pool health
- parse and analyze sql statements into an ast
- block sql injection attacks with a sql firewall
- log and profile slow queries
- encrypt database credentials in configuration
- load balance across multiple datasources with failover

## When to choose
- you need a battle-tested jdbc connection pool with built-in monitoring
- you want sql parsing, firewall, and statistics in one library
- you use spring boot and want drop-in datasource integration
- you need multi-datasource high availability with health checks

## When to avoid
- you use a non-jvm language
- you prefer a minimal pool like hikaricp without extra features
- you need reactive/r2dbc connection pooling
- you want a vendor-neutral pool with no alibaba ecosystem ties

## Facets
- artifact type: library
- maturity: stable
- function: database, monitoring, parser, security, middleware
- domain: databases, developer-tools, monitoring, web-development
- platform: jvm
- tags: connection-pool, jdbc, sql-parser, sql-firewall, spring-boot-starter, database-monitoring, spring

## Member repositories
- alibaba/druid (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:48.175579+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:54:26.071173+00:00, confidence not recorded.
  - readme: https://github.com/alibaba/druid (fetched 2026-08-28T04:11:48.175579+00:00, sha 922ecbaf5157)
  - homepage: https://github.com/alibaba/druid/wiki (fetched 2026-08-29T07:50:59.675852+00:00, sha 26b9fb2cb96e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
