spring-projects-experimental / spring-pulsar

Spring Friendly Abstractions for Apache Pulsar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring for Apache Pulsar

Spring Pulsar provides a basic Spring-friendly API for developing Apache Pulsar applications.

TIP: Most of the ideas in this project are borrowed from the Spring for Apache Kafka project, thus a familiarity with it would help.

Getting Started

The reference documentation includes a quick tour section.

Getting Help

Are you having trouble with Spring Pulsar? We want to help!

Reporting Issues

Spring Pulsar uses GitHub’s integrated issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:

  • Before you log a bug, please search the issue tracker to see if someone has already reported the problem.

  • If the issue doesn’t already exist, create a new issue.

  • Please provide as much information as possible with the issue report. We like to know the Spring Pulsar version, operating system, and JVM version you’re using.

  • If you need to paste code or include a stack trace, use Markdown ``` escapes before and after your text.

  • If possible, try to create a test case or project that replicates the problem and attach it to the issue.

Building from Source

You don’t need to build from source to use Spring Pulsar (binaries in repo.spring.io), but if you want to try out the latest and greatest, Spring Pulsar can be built and published to your local Maven cache using the Gradle wrapper. You also need JDK 17.

./gradlew publishToMavenLocal

This will build all jars and documentation and publish them to your local Maven cache. It won’t run any of the tests. If you want to build everything and run tests, use the build task:

./gradlew clean build
Note
Some tests rely on a Docker daemon to test against live services using Testcontainers. These tests will be skipped if a local Docker daemon is not available.

The above command will build everything and run all tests except the PulsarFunctionAdministrationIntegrationTests which requires the Pulsar RabbitMQ Connector to be downloaded prior to running. To download the connector (one time only) and run the integration test, add a system property to the task as follows:

./gradlew clean build -DdownloadRabbitConnector=true

Modules

There are several modules in Spring Pulsar. Here is a quick overview:

spring-pulsar

The main library that provides the API to access Apache Pulsar.

spring-pulsar-cache-provider

Provides the interfaces for the cache provider used by the main library to cache producers.

spring-pulsar-cache-provider-caffeine

Provides the implementation of the cache provider using a shaded version of Caffeine.

spring-pulsar-dependencies

Provides a Gradle java-platform that recommends dependency versions.

spring-pulsar-docs

Provides reference docs and handles aggregating javadocs.

spring-pulsar-reactive

Provides the API to access Apache Pulsar using a Reactive client.

spring-pulsar-reactive-spring-boot-starter

Provides a dependency descriptor that can be included in your application to easily start using Spring Pulsar in Reactive and imperative fashions.

spring-pulsar-sample-apps

Provides sample applications to illustrate Spring Pulsar functionality as well as provide ability for quick manual verification during development.

spring-pulsar-spring-boot-autoconfigure

Provides Spring Boot auto-configuration for Spring Pulsar.

spring-pulsar-spring-boot-starter

Provides a dependency descriptor that can be included in your application to easily start using Spring Pulsar in an imperative fashion.

spring-pulsar-spring-cloud-stream-binder

Provides a Spring Cloud Stream Binder implementation for Apache Pulsar.

License

Spring Pulsar is Open Source software released under the Apache 2.0 license.

About

Spring Friendly Abstractions for Apache Pulsar

License:Apache License 2.0


Languages

Language:Java 99.3%Language:Groovy 0.5%Language:Shell 0.1%Language:HTML 0.0%Language:CSS 0.0%