Apache TubeMQ

Clone this repo:
  1. 214287f [INLONG-612] Restful api "admin_snapshot_message" is not compatible with the old version by gosonzhang · 4 days ago master
  2. 3249de3 [TUBEMQ-594] Trpc-go tube sdk strongly rely on local config(addendum) by gosonzhang · 5 weeks ago
  3. 8baad35 [TUBEMQ-594] Trpc-go tube sdk strongly rely on local config by gosonzhang · 5 weeks ago
  4. 803ce9a [TUBEMQ-577] reload status output and topic config output mismatch by gosonzhang · 8 weeks ago
  5. 84c3469 [TUBEMQ-573]Adjust WebAdminFlowRuleHandler class implementation by gosonzhang · 9 weeks ago

Apache TubeMQ

Build Status CodeCov Maven Central GitHub release License

Apache TubeMQ(incubating) is a trillion-records-scale distributed messaging queue (MQ) system, focuses on data transmission and storage under massive data. Compared to many open source MQ projects, TubeMQ has unique advantages in terms of stability, performance, and low cost.

It offers a variety of features:

  • Pluggable transport protocols, such as TCP, SSL
  • Support big-data and streaming ecosystem integration
  • Message retroactivity by time or offset
  • Efficient pull and push consumption model
  • Flexible distributed scale-out deployment architecture
  • Feature-rich administrative dashboard for configuration
  • Authentication and authorization

Contact us

Contributing

We always welcome new contributions, whether for trivial cleanups, new features or other material rewards, more details see here.

Build TubeMQ

Prerequisites

  • Java 1.8
  • Maven 3.3+

Build Distribution Tarball

  • Compile and Package:
mvn clean package -DskipTests
  • (Optional) Build Using Docker:
docker run -v REPLACE_WITH_SOURCE_PATH:/tubemq  apachetubemq/tubemq-build clean package -DskipTests
  • Run Unit Tests:
mvn test
  • Build Individual Module:
mvn clean install
cd module-name (e.g. tubemq-client)
mvn test

After the build, please go to tubemq-server/target. You can find the tubemq-server-[TUBEMQ-VERSION]-bin.tar.gz file. It is the TubeMQ deployment package, which includes scripts, configuration files, dependency jars and web GUI code.

Setting Up Your IDE

If you want to build and debug source code in IDE, go to the project root, and run

mvn compile

This command will generate the Java source files from the protoc files, the generated files located in target/generated-sources.

(Optional) If you want to use local protoc executable, you can change the configuration of protobuf-maven-plugin in tubemq-core/pom.xml as below

<configuration>
    <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
    <protocExecutable>/usr/local/bin/protoc</protocExecutable>
</configuration>

Deploy and Start

Deploy TubeMQ Standalone

Standalone mode starts zookeeper/master/broker services in one docker container:

docker run -p 8080:8080 -p 8000:8000 -p 8123:8123 --name tubemq -d apachetubemq/tubemq-all:latest

After container is running, you can access http://127.0.0.1:8080, and reference to next Quick Start chapter for experience.

Tips: Standalone Mode is only available for development and experience, it's not designed for production environment.

Deploy TubeMQ Cluster

For the detail deployment and configuration of TubeMQ cluster nodes, please refer to the introduction of Deploy TubeMQ Cluster.

License

© Contributors Licensed under an Apache-2.0 license.