VMware offers training and certification to turbo-charge your progress.Learn more
We are happy to announce that we are incubating a new experimental Spring project for Apache Pulsar. This project aims to provide Spring-friendly APIs, building blocks, and programming models for writing Java applications that interact with Apache Pulsar.
Apache Pulsar is a popular messaging system with a growing ecosystem of developers in the enterprise messaging and streaming space. Here are some main features and advantages of using Apache Pulsar for messaging-based software applications:
Historically, Spring has provided comprehensive support for popular JVM-based messaging systems. JMS support is part of the core Spring Framework. Spring offers extensive support for AMQP and Kafka through their relevant counterparts in the Spring ecosystem - Spring AMQP and Spring for Apache Kafka. In addition, various messaging-related support is available in popular Spring projects such as Spring Integration and Spring Cloud Stream. Since Apache Pulsar is growing as a messaging broker, we started experimenting with a new Spring project dedicated to it by using the Java client for Apache Pulsar.
From an application developer’s standpoint, Apache Pulsar offers many of the same features that Apache Kafka provides, such as creating a producer to publish, a consumer to consume, and so on. Therefore, in the experimental Spring for Apache Pulsar, we model the design based on the fundamental design principles in Spring for Apache Kafka. You may notice many similarities in Spring for Apache Pulsar if you are familiar with the APIs of Spring for Apache Kafka. With this in mind, here are some current themes and features of Spring for Apache Pulsar:
PulsarTemplatefor quickly publishing to Pulsar topics using one-liner send methods.
PulsarListenerannotation to write high-level Pulsar consumers.
MessageListenerContainerinfrastructure to support PulsarListener.
This list of features is not exhaustive by any means, but we hope this list is a good starting point.
As we are still on the ground floor of this initiative, we would greatly appreciate any feedback. Especially if you are a Spring user writing Apache Pulsar-based applications, we would love to hear about your experience using this library.
We are planning to add more features and capabilities to this framework soon. We welcome any collaboration from the community in the form of bug reports, feature requests, pull requests, and other types of feedback.