Cloud Native 21 min read

Top 10 Alibaba Open‑Source Projects Every Java Developer Should Know

This article introduces ten powerful Alibaba open‑source projects—including Druid, fastjson, Dubbo, RocketMQ, Arthas, Nacos, EasyExcel, Sentinel, Otter, P3C, and Spring Cloud Alibaba—detailing their key features, advantages, usage scenarios, and Maven dependencies, providing developers with essential tools for building robust, cloud‑native Java applications.

Su San Talks Tech
Su San Talks Tech
Su San Talks Tech
Top 10 Alibaba Open‑Source Projects Every Java Developer Should Know

Hello, I am Su San, and during the recent holiday I curated a list of ten Alibaba open‑source projects that I have used or seen colleagues use, which are valuable for Java development.

1. Druid

Druid claims to be the best Java database connection pool, offering powerful monitoring and extension capabilities.

Main advantages:

It can monitor database access performance.

It provides WallFilter for SQL‑injection defense based on semantic analysis.

It offers multiple ways to detect connection leaks.

It supports database password encryption.

It can print SQL execution logs.

GitHub: https://github.com/alibaba/druid
Maven Central: https://mvnrepository.com/artifact/com.alibaba/druid

Configure Maven dependency:

<dependency>
  <groupId>com.alibaba</groupId>
  <artifactId>druid</artifactId>
  <version>${druid-version}</version>
</dependency>

2. fastjson

fastjson is Alibaba's open‑source JSON parsing library that can serialize Java beans to JSON strings and deserialize JSON strings back to Java beans.

Main advantages:

Fast performance that has not been surpassed by other Java JSON libraries since its first release.

Widely used across Alibaba’s massive infrastructure and recognized as a popular open‑source tool.

Simple and concise API.

Comprehensive features: generic support, stream processing of large texts, enum handling, and extensible serialization/deserialization.

// serialization
String text = JSON.toJSONString(obj);
// deserialization
VO vo = JSON.parseObject("{...}", VO.class);
GitHub: https://github.com/alibaba/fastjson
Maven Central: https://mvnrepository.com/artifact/com.alibaba/fastjson

Configure Maven dependency:

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.76</version>
</dependency>

3. Dubbo

Apache Dubbo is a microservice framework that provides RPC communication and service governance capabilities, enabling remote discovery, load balancing, traffic routing, and more.

It is highly extensible, allowing customization at almost any point.

Main advantages:

Transparent interface‑based RPC.

Intelligent load balancing.

Automatic service registration and discovery.

High extensibility.

Runtime traffic routing.

Visual service governance.

Cloud‑native friendliness.

GitHub: https://github.com/apache/dubbo
Maven Central: https://mvnrepository.com/artifact/com.alibaba/dubbo/

Configure Maven dependency:

<properties>
    <dubbo.version>3.0.3</dubbo.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo</artifactId>
        <version>${dubbo.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.dubbo</groupId>
        <artifactId>dubbo-dependencies-zookeeper</artifactId>
        <version>${dubbo.version}</version>
        <type>pom</type>
    </dependency>
</dependencies>

4. RocketMQ

Apache RocketMQ is a distributed messaging and streaming platform with low latency, high performance, and high reliability.

Key features include multiple messaging patterns, financial‑grade transaction messages, built‑in fault tolerance, cross‑language clients, pluggable transport protocols, message tracing, big‑data integration, and flexible horizontal scaling.

GitHub: https://github.com/apache/rocketmq
Maven Central: https://mvnrepository.com/artifact/org.apache.rocketmq/rocketmq-spring-boot-starter

Configure Maven dependency:

<dependency>
    <groupId>org.apache.rocketmq</groupId>
    <artifactId>rocketmq-client</artifactId>
    <version>4.3.0</version>
</dependency>

5. Arthas

Arthas is Alibaba’s open‑source Java diagnostic tool that helps developers troubleshoot class loading issues, code execution problems, JVM runtime status, and more.

It supports JDK 6+, runs on Linux, macOS, and Windows, and provides a command‑line interface with tab completion.

GitHub: https://alibaba.github.io/arthas/
Maven Central: https://mvnrepository.com/artifact/com.taobao.arthas/arthas-spring-boot-starter

Start Arthas on the target machine:

curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar

6. Nacos

Nacos is an easy‑to‑use platform for dynamic service discovery, configuration management, and service management, helping you build cloud‑native applications.

It treats services as first‑class citizens and supports Dubbo, gRPC, Spring Cloud RESTful, and Kubernetes services.

Four core functions:

Service discovery and health checking.

Dynamic configuration management.

Dynamic DNS service with weighted routing.

Service and metadata management via a dashboard.

GitHub: https://github.com/alibaba/nacos
Maven Central: https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery

7. EasyExcel

EasyExcel rewrites POI’s handling of Excel 2007+ files, reducing memory consumption dramatically (e.g., a 3 MB file reads in a few megabytes of RAM).

It offers high‑performance reading and writing, supporting both .xlsx and .xls formats.

GitHub: https://github.com/alibaba/easyexcel
Maven Central: https://mvnrepository.com/artifact/com.alibaba/easyexcel

Configure Maven dependency:

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>easyexcel</artifactId>
    <version>2.2.6</version>
</dependency>

8. Sentinel

Sentinel focuses on traffic control, shaping, circuit breaking, and system adaptive protection to ensure microservice reliability and resilience.

Key features include rich usage scenarios, real‑time monitoring, extensive ecosystem integration, multi‑language support, and easy SPI extensions.

GitHub: https://github.com/alibaba/Sentinel
Maven Central: https://mvnrepository.com/artifact/com.alibaba.csp/sentinel-core

Configure Maven dependency:

<dependency>
    <groupId>com.alibaba.csp</groupId>
    <artifactId>sentinel-core</artifactId>
    <version>1.8.2</version>
</dependency>

9. Otter

Otter is a data synchronization solution originally built for Alibaba B2B, supporting heterogeneous database sync, single‑site sync, cross‑site sync, bidirectional sync, and file sync.

It handles massive data volumes (e.g., 600 million rows, 1.5 TB of files) across dozens of databases and dozens of machines.

GitHub: https://github.com/alibaba/otter
Maven Central: https://mvnrepository.com/artifact/com.alibaba.otter/canal.client

10. P3C

P3C implements Alibaba’s Java coding guidelines, providing PMD rules and IDE plugins (IntelliJ IDEA, Eclipse) to enforce best practices such as avoiding deprecated APIs, using @Override, referencing static members via class name, and correctly overriding hashCode/equals.

GitHub: https://github.com/alibaba/p3c/tree/master/idea-plugin

11. Spring Cloud Alibaba

Spring Cloud Alibaba offers a one‑stop solution for building distributed applications, integrating components such as Sentinel, Nacos, RocketMQ, Dubbo, Seata, OSS, SchedulerX, and SMS.

It provides traffic control, service registration and discovery, distributed configuration, event‑driven architecture, distributed transactions, and cloud services.

GitHub: https://github.com/alibaba/spring-cloud-alibaba

Configure Maven dependency management:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-dependencies</artifactId>
            <version>2.2.6.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

These ten Alibaba open‑source projects provide developers with robust, high‑performance tools for building modern, cloud‑native Java applications.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

AlibabaCloud NativeMicroservicesopen sourcetools
Su San Talks Tech
Written by

Su San Talks Tech

Su San, former staff at several leading tech companies, is a top creator on Juejin and a premium creator on CSDN, and runs the free coding practice site www.susan.net.cn.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.