All Projects → apache → Pulsar

apache / Pulsar

Licence: apache-2.0
Apache Pulsar - distributed pub-sub messaging system

Programming Languages

java
68154 projects - #9 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
shell
77523 projects
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Pulsar

pulsar-client-node
Apache Pulsar NodeJS Client
Stars: ✭ 88 (-99.13%)
Mutual labels:  streaming, messaging, pubsub, pulsar, queuing, event-streaming
pulsar-adapters
Apache Pulsar Adapters
Stars: ✭ 18 (-99.82%)
Mutual labels:  streaming, messaging, pubsub, pulsar, queuing, event-streaming
pulsar-helm-chart
Official Apache Pulsar Helm Chart
Stars: ✭ 122 (-98.79%)
Mutual labels:  streaming, messaging, pubsub, pulsar, queuing, event-streaming
tgip
TGIP (TGI Pulsar) is a weekly live video streaming about Apache Pulsar and its ecosystem.
Stars: ✭ 17 (-99.83%)
Mutual labels:  messaging, pubsub, pulsar, event-streaming
liftbridge-api
Protobuf definitions for the Liftbridge gRPC API. https://github.com/liftbridge-io/liftbridge
Stars: ✭ 15 (-99.85%)
Mutual labels:  streaming, messaging, pubsub
Pulsar Dotpulsar
The official .NET client library for Apache Pulsar
Stars: ✭ 101 (-99%)
Mutual labels:  messaging, pubsub, streaming
Liftbridge
Lightweight, fault-tolerant message streams.
Stars: ✭ 2,175 (-78.5%)
Mutual labels:  messaging, pubsub, streaming
aop
AMQP on Pulsar protocol handler
Stars: ✭ 93 (-99.08%)
Mutual labels:  messaging, pubsub, pulsar
Centrifugo
Scalable real-time messaging server in a language-agnostic way. Set up once and forever.
Stars: ✭ 5,649 (-44.17%)
Mutual labels:  messaging, streaming, pubsub
Pulsar Client Go
Apache Pulsar Go Client Library
Stars: ✭ 251 (-97.52%)
Mutual labels:  messaging, pubsub, streaming
Pulsar Manager
Apache Pulsar Manager
Stars: ✭ 247 (-97.56%)
Mutual labels:  messaging, pubsub, streaming
pulsar-io-kafka
Pulsar IO Kafka Connector
Stars: ✭ 24 (-99.76%)
Mutual labels:  pubsub, pulsar, event-streaming
pulsar-tracing
Tracing instrumentation for Apache Pulsar clients.
Stars: ✭ 13 (-99.87%)
Mutual labels:  messaging, pubsub
pulsar-user-group-loc-cn
Workspace for China local user group.
Stars: ✭ 19 (-99.81%)
Mutual labels:  streaming, messaging
Nats.rb
Ruby client for NATS, the cloud native messaging system.
Stars: ✭ 850 (-91.6%)
Mutual labels:  messaging, pubsub
Graphik
Graphik is a Backend as a Service implemented as an identity-aware document & graph database with support for gRPC and graphQL
Stars: ✭ 277 (-97.26%)
Mutual labels:  pubsub, streaming
Incubator Heron
Apache Heron (Incubating) is a realtime, distributed, fault-tolerant stream processing engine from Twitter
Stars: ✭ 3,571 (-64.71%)
Mutual labels:  streaming, messaging
Nats.net
The official C# Client for NATS
Stars: ✭ 378 (-96.26%)
Mutual labels:  messaging, pubsub
gafka
A full ecosystem that is built around kafka powered by golang
Stars: ✭ 96 (-99.05%)
Mutual labels:  messaging, pubsub
Msngr.js
An asynchronous messaging library, written in JavaScript, for node and the web browser
Stars: ✭ 337 (-96.67%)
Mutual labels:  messaging, pubsub

logo

Pulsar is a distributed pub-sub messaging platform with a very flexible messaging model and an intuitive client API.

Learn more about Pulsar at https://pulsar.apache.org

Main features

  • Horizontally scalable (Millions of independent topics and millions of messages published per second)
  • Strong ordering and consistency guarantees
  • Low latency durable storage
  • Topic and queue semantics
  • Load balancer
  • Designed for being deployed as a hosted service:
    • Multi-tenant
    • Authentication
    • Authorization
    • Quotas
    • Support mixing very different workloads
    • Optional hardware isolation
  • Keeps track of consumer cursor position
  • REST API for provisioning, admin and stats
  • Geo replication
  • Transparent handling of partitioned topics
  • Transparent batching of messages

Repositories

This repository is the main repository of Apache Pulsar. Pulsar PMC also maintains other repositories for components in the Pulsar ecosystem, including connectors, adapters, and other language clients.

Helm Chart

Ecosystem

Clients

Dashboard & Management Tools

Documentation

CI/CD

Build Pulsar

Requirements:

Compile and install:

$ mvn install -DskipTests

Compile and install individual module

$ mvn -pl module-name (e.g: pulsar-broker) install -DskipTests

Minimal build (This skips most of external connectors and tiered storage handlers)

mvn install -Pcore-modules,-main

Run Unit Tests:

$ mvn test

Run Individual Unit Test:

$ mvn -pl module-name (e.g: pulsar-client) test -Dtest=unit-test-name (e.g: ConsumerBuilderImplTest)

Run Selected Test packages:

$ mvn test -pl module-name (for example, pulsar-broker) -Dinclude=org/apache/pulsar/**/*.java

Start standalone Pulsar service:

$ bin/pulsar standalone

Check https://pulsar.apache.org for documentation and examples.

Build custom docker images

Docker images must be built with Java 8 for branch-2.7 or previous branches because of issue 8445. Java 11 is the recommended JDK version in master/branch-2.8.

This builds the docker images apachepulsar/pulsar-all:latest and apachepulsar/pulsar:latest.

mvn clean install -DskipTests
mvn package -Pdocker,-main -am -pl docker/pulsar-all -DskipTests

After the images are built, they can be tagged and pushed to your custom repository. Here's an example of a bash script that tags the docker images with the current version and git revision and pushes them to localhost:32000/apachepulsar.

image_repo_and_project=localhost:32000/apachepulsar
pulsar_version=$(mvn initialize help:evaluate -Dexpression=project.version -pl . -q -DforceStdout)
gitrev=$(git rev-parse HEAD | colrm 10)
tag="${pulsar_version}-${gitrev}"
echo "Using tag $tag"
docker tag apachepulsar/pulsar-all:latest ${image_repo_and_project}/pulsar-all:$tag
docker push ${image_repo_and_project}/pulsar-all:$tag
docker tag apachepulsar/pulsar:latest ${image_repo_and_project}/pulsar:$tag
docker push ${image_repo_and_project}/pulsar:$tag

Setting up your IDE

Apache Pulsar is using lombok so you have to ensure your IDE setup with required plugins.

Intellij

Configure Project JDK to Java 11 JDK

  1. Open Project Settings.

    Click File -> Project Structure -> Project Settings -> Project.

  2. Select the JDK version.

    From the JDK version drop-down list, select Download JDK... or choose an existing recent Java 11 JDK version.

  3. In the download dialog, select version 11. You can pick a version from many vendors. Unless you have a specific preference, choose AdoptOpenJDK (Hotspot).

Configure Java version for Maven in IntelliJ

  1. Open Maven Importing Settings dialog by going to Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing.

  2. Choose Use Project JDK for JDK for Importer setting. This uses the Java 11 JDK for running Maven when importing the project to IntelliJ. Some of the configuration in the Maven build is conditional based on the JDK version. Incorrect configuration gets chosen when the "JDK for Importer" isn't the same as the "Project JDK".

  3. Validate that the JRE setting in Maven -> Runner dialog is set to Use Project JDK.

Configure annotation processing in IntelliJ

  1. Open Annotation Processors Settings dialog box by going to Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors.

  2. Select the following buttons:

    1. Enable annotation processing
    2. Obtain processors from project classpath
    3. Store generated sources relative to: Module content root
  3. Set the generated source directories to be equal to the Maven directories:

    1. Set "Production sources directory:" to "target/generated-sources/annotations".
    2. Set "Test sources directory:" to "target/generated-test-sources/test-annotations".
  4. Click OK.

  5. Install the lombok plugin in intellij.

Configure code style

  1. Open Code Style Settings dialog box by going to Settings -> Editor -> Code Style.

  2. Click on the ⚙️ symbol -> Import scheme -> Intellij IDEA code style XML

  3. Pick the file ${pulsar_dir}/src/idea-code-style.xml

  4. On the dialog box that opens, click OK.

  5. Ensure the scheme you just created is selected in Scheme dropdown then click OK.

Configure Checkstyle

  1. Install the Checkstyle-IDEA plugin.

  2. Open Checkstyle Settings dialog box by going to Settings -> Tools -> Checkstyle.

  3. Set Checkstyle version to 8.37.

  4. Set Scan scope to Only Java sources (including tests).

  5. Click + button in the Configuration section to open a dialog to choose the checkfile file.

    1. Enter a Description. For example, Pulsar.
    2. Select Use a local checkstyle file.
    3. Set File to buildtools/src/main/resources/pulsar/checkstyle.xml.
    4. Select Store relative to project location.
    5. Click Next -> Next -> Finish.
  6. Activate the configuration you just added by toggling the corresponding box.

  7. Click OK.

Further configuration in IntelliJ

  • When working on the Pulsar core modules in IntelliJ, reduce the number of active projects in IntelliJ to speed up IDE actions and reduce unrelated IDE warnings.

    • In IntelliJ's Maven UI's tree view under "Profiles"
      • Activate "core-modules" Maven profile
      • De-activate "main" Maven profile
      • Run the "Reload All Maven Projects" action from the Maven UI toolbar. You can also find the action by the name in the IntelliJ "Search Everywhere" window that gets activated by pressing the Shift key twice.
  • Run the "Generate Sources and Update Folders For All Projects" action from the Maven UI toolbar. You can also find the action by the name in the IntelliJ "Search Everywhere" window that gets activated by pressing the Shift key twice. Running the action takes about 10 minutes for all projects. This is faster when the "core-modules" profile is the only active profile.

IntelliJ usage tips

  • In the case of compilation errors with missing Protobuf classes, ensure to run the "Generate Sources and Update Folders For All Projects" action.

  • All of the Pulsar source code doesn't compile properly in IntelliJ and there are compilation errors.

    • Use the "core-modules" profile if working on the Pulsar core modules since the source code for those modules can be compiled in IntelliJ.
    • Sometimes it might help to mark a specific project ignored in IntelliJ Maven UI by right-clicking the project name and select Ignore Projects from the menu.
    • Currently, it is not always possible to run unit tests directly from the IDE because of the compilation issues. As a workaround, individual test classes can be run by using the mvn test -Dtest=TestClassName command.

Eclipse

Follow the instructions here to configure your Eclipse setup.

Build Pulsar docs

Refer to the docs README.

Contact

Mailing lists
Name Scope
[email protected] User-related discussions Subscribe Unsubscribe Archives
[email protected] Development-related discussions Subscribe Unsubscribe Archives
Slack

Pulsar slack channel at https://apache-pulsar.slack.com/

You can self-register at https://apache-pulsar.herokuapp.com/

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Crypto Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

The following provides more details on the included cryptographic software: Pulsar uses the SSL library from Bouncy Castle written by http://www.bouncycastle.org.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].