12 Open Source Projects by Alibaba – Part 1

本文涉及的产品
Redis 开源版,标准版 2GB
推荐场景:
搭建游戏排行榜
云数据库 Tair(兼容Redis),内存型 2GB
简介: This article introduces and summarizes twelve open source projects from Alibaba and Alibaba Cloud.

Since 2011, Alibaba Group has been actively involved in building open source communities, with the number of open source projects increasing every year. Currently, Alibaba has 150+ open source projects, each with over 10,000 GitHub stars!

GitHub statistics from 2017 show that Alibaba is the only Chinese company to be included in GitHub's top contributor list. Furthermore, Alibaba is ranked number 5 in the Top 20 Most Popular Chinese OSS survey conducted by OSChina.

1

In reality, Alibaba employees do not get rewarded for open source projects. All teams have voluntarily contributed to various open source projects, including sharing their experiences or helping others to solve problems. This is exactly what the spirit of open source development is. It’s where everyone can build on each other's knowledge, and everyone is both a teacher and a student.

We have already witnessed the paradigm shift from mainframes to distributed systems. Mainframes are simple to deploy and do not need multi-node configuration, but, on the other hand, they are expensive, hard to maintain and have a single point of failure. A distributed system composed of smaller servers costs less, and, at the same time, makes the entire system more concurrent, expandable and reliable.

1. Dubbo – Major Upgrade of the Distributed RPC Framework

Dubbo is a high performance RPC framework in Java. It has been open source since as early as 2012 and has been in favor among Chinese open source enthusiasts and the industry for years. Though it has been maintained constantly, the daily maintenance cannot fulfill the demands of this enormous community. As Alibaba grows—while still making sure the service to the company and our customers is priority number one—we can allocate more resources to these open source projects that services the whole of society.

This year, Dubbo's development got restarted and major upgrades were made. Dubbo2's design principles emphasize scalability, light weight, and adaptability to open source peripherals and protocols. It not only fixes some of the framework defects such as elegant downtime and annotated configuration but also adds a communication module and thread stack along with greatly improved stability.

Let's look at some details. Dubbo published five versions this year, 2.5.4, 2.5.5, 2.5.6, 2.5.7 and 2.5.8. It fixed and merged the most commented upon issues and Pull Requests, and it also made the following improvements: Netty4 support, annotation, Java 8 support, and Docker support. Dubbo will continue improving itself for the perceivable future. New projects include Dubbo Spring Boot Starter, RESTful support, graceful deployment, error tolerance improvement, routing policy improvement and async improvements.

Other than the framework itself, the Dubbo team also launched a new website (with over 3500 daily views) and updated their documentation. In order to spread its influence, the team translated their website, documentation and code into English. This has already begun to produce some visible effects. The noted technical blog baeldung published an article “Introduction to Dubbo” which gave an in-depth introduction to Dubbo. The team participated in interviews by OSChina and InfoQ. It is on the OSC Top 20 most popular open source software of 2017.

Dubbo made major upgrades because of the observed trends in technology that are particularly relevant to RPC. The future will focus on Cloud Native, multi-language enhancements, microservices support and more. Dubbo will continue to build its ecosystem and community as well as building international influence.

We welcome you to discuss with the Dubbo development team:

https://gitter.im/alibaba/dubbo

https://github.com/alibaba/dubbo

2. RocketMQ – The Distributed Message Middleware

The Apache Software Foundation announced on Sept 9 that the open-source project RocketMQ—donated by Alibaba Cloud to the Apache Incubator—has graduated from the Apache Incubator to become a Top-Level Project (TLP), signifying that Apache RocketMQ henceforth becomes the first non-Hadoop Apache TLP among all Internet middleware in China. This year, RocketMQ has won the 12th China Japan Korea OSS award and was on OSChina’s 2017 Top 20 most popular Chinese open source software list.

RocketMQ is Alibaba Cloud’s third-generation distributed messaging middleware. It was announced as open source in 2012. The MQ for business is available on Alibaba Cloud. RocketMQ undertook all message transmissions of Alibaba Cloud production systems during the November 11th Single's Day shopping festival. Last year, on November 11th, RocketMQ delivered 1.2 trillion messages with precision and low latency, with the peak traffic hitting 170,000 transactions/second.

RocketMQ originated in China, but it already has attracted worldwide attention. RocketMQ won the 2015 China Japan Korea OSS award, and it has entered the mainstream open source sites around the world. Over 100 companies and research institutes are currently using RocketMQ. It is worth mentioning that the United States is the second most region visiting the RocketMQ project site.

2

As a distributed messaging engine, RocketMQ features include:

  • Low latency and high concurrency. More than 99.6% response latency within 1 millisecond.
  • Finance-oriented. High availability with tracking and auditing features.
  • Industry-sustainable. Trillion-level message capacity guaranteed.
  • Vendor-neutral. Support multiple messaging protocols like JMS and OpenMessaging.
  • Reliable performance. Accumulate messages without performance loss given sufficient disk space.

Related:

https://rocketmq.apache.org/

https://github.com/alibaba/rocketmq

3. Fastjson – Database Connection Pool Druid and JSON Parsing Library

Druid is the only database connection pool used by Alibaba. it supports some of the most critical scenarios such as the ones faced on Single's Day. Druid has a slogan: “monitoring the connection pool for the sake of monitoring.” After six years of open source development, Druid has been increasingly mature and is gaining reputation. It is becoming the key technology among many teams.

Fastjson is widely used in both server and client side Android. Almost every Java application from Alibaba has used fastjson.

This is a high performance and complete JSON library. It raised JSON parsing performance to the maximum through the "assumed ordered fast matching" algorithm. It is said to be the fastest JSON library in Java. The Fastjson API is easy to use, and it has been widely used in buffer ordering, protocol exchanges, web output and client-side Android.

Compared to others, these two relatively mature projects did not change much this year. Every month there's a minor version change from the feedback loop of issues. In the future, Druid will increase its monitoring ability and its integration with other Alibaba cloud services. The parser module will become its own independent project.

Related:

https://github.com/alibaba/druid

https://github.com/alibaba/fastjson

4. ApsaraCache for Redis

ApsaraCache is a fork of Redis (the cloud database). It is a branch that started to be maintained on the basis of Redis version 2.8 and backported some features found in 3.0 branches. This version mainly solves the problems of users in the cloud who are concerned about stability, performance, recovery and smooth upgrade experience.

Before ApsaraCache went open source, this solution had many successful cases of application. It has customers in live video (miaopai.com, yizhibo.com, inke.cn, and cctv.com), the gaming industry (immomo.com, Dragonest, Longtu Game, and ChangYou), the news industry (toutiao.com), traffic (amap.com), and finance (Ant Financial). Its application covers an extensive variety of user cases.

There have been many successful use cases of ApsaraCache. Why does it need to be made open source? The reasons are as follows:

  • The userbase and usage pattern of Redis in China has changed profoundly. Redis follows a minimalist philosophy of design and stability. In some scenarios, the stability and performance of Redis are subject to new challenges. In addition, many customers on the cloud using Redis have encountered a variety of problems. Based on these problems and challenges, ApsaraCache reconstructed and transformed Redis. In order to empower Redis users, and also for Redis development enthusiasts to better participate, we decided Open ApsaraCache.
  • Redis is BSD licensed, featuring a certain degree of freedom. Its latest version Redis 4.0 supports Redis Module which is AGPL licensed. ApsaraCache will support Redis Module later and open source the module code. In this sense, ApsaraCache going open source is also a manifestation of its respect and compliance with the open source protocol.
  • ApsaraCache has been waiting for the release of Redis 4.0. After the release, it will actively promote feature fusion of the two sides and strive to merge the features to the major version of the community.

Redis founder Salvatore Sanfilippo (Antirez) held that ApsaraCache going open source is a good thing and can attract more Redis core specialists across the world, which, in turn, will further improve the product stability and availability. He also said that Alibaba Cloud is capable of developing Redis products and hoped to work with Alibaba Cloud together to improve and explore product features.

ApsaraCache was officially made open source in October. The new version will have two more features: it solved the stability bottleneck caused by frequent AOF Rewrite with time-based recovery to precision in seconds; it also solved the syncing problem when there's a patchy connection.

Related:

https://github.com/alibaba/ApsaraCache

5. Pouch and Dragonfly – The Rich Container Technology and File Distribution System

Pouch is an internal container tool developed by Alibaba. Currently there are hundreds of thousands of Pouch containers running in the data center, supporting internal online/offline tasks.

First of all, Pouch is a rich container technology which gives a user an experience comparable to virtual machines. It has init process and contains many system services. Secondly, through kernel reinforcement and light-weight virtual machine support, Pouch provides a large security isolation. In terms of mirror distribution, especial those requires massive distribution scenario, it can reduce internet load through p2p. In terms of kernel compatibility, it is comparable to industrial usages, realizing that most IT systems would have outdated kernels.

3

Architectural diagram of Pouch & Dragonfly

The traditional way of download yields two problems. First, when it comes to large files all the retries after failure reduce performances. Second, if client side tries to download everything it could crash the file source.

Dragonfly, on the other hand, uses a p2p method to download files. This effectively reduces the file source pressure. It also supports continuing downloads at the point where it failed. Another feature of Dragonfly is in its integration with Docker and Pouch. It uses a mirror image to preheat. Docker mirror downloads are slow, but through p2p technology Dragonfly has solved this problem.

4

Dragonfly p2p container mirror distribution chart

Dragonfly meets the downloading requirement for Docker and Pouch users’ large downloads (such as big image files). For overseas nodes, Dragonfly can effectively reduce international bandwidth.

There are two versions of Dragonfly: the open source version supports Apache 2.0 protocol, and it can be used in p2p file distribution, container mirror distribution, partial rate limiting and disk volume prediction; the Enterprise version also supports continuation of failed downloads, full rate limiting, mirror preheating, in-memory file system, smart network control, smart dynamic compression and smart routing. The enterprise edition is available in Alibaba's cloud service.

Related:

https://github.com/alibaba/pouch

https://github.com/alibaba/Dragonfly

https://www.alibabacloud.com/blog/A-Deep-Insight-of-Alibaba-Open-Source-Project---Pouch_295733

Click here to continue reading Part 2 of the list!

相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
目录
相关文章
|
开发工具 数据安全/隐私保护 git
remote: The project you were looking for could not be found.
因为使用了不同的账号对不同的项目进行登录,在更换回原先的账户下载git上的代码时,就报了这个问题,这个问题的导致原因其实也就是我们不断更换登录账户所导致的。
540 0
remote: The project you were looking for could not be found.
clion中cpp文件显示This file does not belong to any project ,code insight features might not work【解决方案】
clion中cpp文件显示This file does not belong to any project ,code insight features might not work【解决方案】
clion中cpp文件显示This file does not belong to any project ,code insight features might not work【解决方案】
|
6月前
|
网络协议 关系型数据库 MySQL
Open Source Instant Messaging (IM) Project OpenIM Source Code
Open Source Instant Messaging (IM) Project OpenIM Source Code
91 0
UE DTDataTable Plugin description, operating CSV files in runtime.
UE DTDataTable Plugin description, operating CSV files in runtime.
92 0
|
开发工具
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
116 0
|
JavaScript 前端开发 物联网
12 Open Source Projects by Alibaba – Part 2
This article introduces and summarizes twelve open source projects from Alibaba and Alibaba Cloud.
2266 0
12 Open Source Projects by Alibaba – Part 2
|
大数据 测试技术 应用服务中间件
Open source operational tools
操作系统:Centos,Ubuntu,Redhat,suse,Freebsd 网站服务:nginx,apache,lighttpd,php,tomcat,resin 数据   库:MySQL,MariaDB,PostgreSQL DB中间件:maxscale,MyCat,atlas,cobar...
1179 0