talira

Druid (Alibaba)

High-performance JDBC connection pool and SQL parser with monitoring, for Java

open sourceApache-2.0free

Druid is Alibaba's open source high-performance JDBC database connection pool and SQL parser for Java, combining pooling, SQL parsing and analysis, security and monitoring: DruidDataSource with connection warm-up, prepared-statement caching and keep-alive; a parser for 30 SQL dialects that builds an AST for formatting, rewriting and analysis; WallFilter, an AST-based SQL firewall that blocks SQL injection and dangerous statements; StatFilter statistics with a web monitoring page; a pluggable filter chain; Spring Boot starters; and a high-availability data source with load balancing and failover. It's not related to Apache Druid, the analytics database.

Problems it solves

  • a monitored database connection pool for Java
  • block SQL injection at the connection pool
  • parse and rewrite SQL in Java

Features

  • monitored JDBC connection pool
  • SQL parser for 30 dialects with AST
  • SQL firewall against injection
  • SQL statistics and web monitoring
  • Spring Boot starters
  • high-availability multi-datasource

Alternatives

The same job

These do what Druid (Alibaba) does.

  1. HikariCP Fast, lightweight JDBC connection pool for Java

Compare Druid (Alibaba) with the top 3