Pousse-Café - Spring Pulsar

Pousse-Café is a framework assisting in writing DDD-based applications

License

License

GroupId

GroupId

org.pousse-cafe-framework
ArtifactId

ArtifactId

pousse-cafe-spring-pulsar
Last Version

Last Version

0.13.0
Release Date

Release Date

Type

Type

jar
Description

Description

Pousse-Café - Spring Pulsar
Pousse-Café is a framework assisting in writing DDD-based applications
Source Code Management

Source Code Management

http://github.com/pousse-cafe/pousse-cafe-spring-pulsar

Download pousse-cafe-spring-pulsar

How to add to project

<!-- https://jarcasting.com/artifacts/org.pousse-cafe-framework/pousse-cafe-spring-pulsar/ -->
<dependency>
    <groupId>org.pousse-cafe-framework</groupId>
    <artifactId>pousse-cafe-spring-pulsar</artifactId>
    <version>0.13.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.pousse-cafe-framework/pousse-cafe-spring-pulsar/
implementation 'org.pousse-cafe-framework:pousse-cafe-spring-pulsar:0.13.0'
// https://jarcasting.com/artifacts/org.pousse-cafe-framework/pousse-cafe-spring-pulsar/
implementation ("org.pousse-cafe-framework:pousse-cafe-spring-pulsar:0.13.0")
'org.pousse-cafe-framework:pousse-cafe-spring-pulsar:jar:0.13.0'
<dependency org="org.pousse-cafe-framework" name="pousse-cafe-spring-pulsar" rev="0.13.0">
  <artifact name="pousse-cafe-spring-pulsar" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.pousse-cafe-framework', module='pousse-cafe-spring-pulsar', version='0.13.0')
)
libraryDependencies += "org.pousse-cafe-framework" % "pousse-cafe-spring-pulsar" % "0.13.0"
[org.pousse-cafe-framework/pousse-cafe-spring-pulsar "0.13.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.pousse-cafe-framework : pousse-cafe-pulsar jar 0.13.0

provided (2)

Group / Artifact Type Version
org.apache.pulsar : pulsar-client jar 2.4.1
org.springframework : spring-context jar 5.1.9.RELEASE

Project Modules

There are no modules declared in this project.

Travis build status Maven status

Pousse-Café Spring Pulsar

This projects enables a smooth integration of Pousse-Café Pulsar in a Spring application.

Your Spring configuration class should look like this (do not forget to include poussecafe.spring in your package scan):

@Configuration
@ComponentScan(basePackages = { "poussecafe.spring" })
public class AppConfiguration {

    @Bean
    public Bundles bundles(
            PulsarMessaging messaging,
            Storage storage) {
        MessagingAndStorage messagingAndStorage = new MessagingAndStorage(messaging, storage);
        return new Bundles.Builder()
            // Register your bundles here using withBundle and use messagingAndStorage
            // when building them
            .build();
    }
}

Properties

  • poussecafe.spring.pulsar.broker: the URL of Pulsar broken (default is pulsar://localhost:6650)
  • poussecafe.spring.pulsar.subscriptionTopics: a comma-separated list of topics (default is pousse-cafe)
  • poussecafe.spring.pulsar.subscriptionName: the subscription name (default is pousse-cafe)
  • poussecafe.spring.pulsar.defaultPublicationTopic: the topic used when publishing messages if none is explicitly provided (default is pousse-cafe)
  • poussecafe.spring.pulsar.subscriptionType: the subscription type (default is Shared)
  • poussecafe.spring.pulsar.statsIntervalInS: the stats publication interval (in s); a negative value disables stats reporting (default is -1)
  • poussecafe.spring.pulsar.sendAsynchronously: messages are sent using the asynchronous API of Pulsar client (default is false)

Configure your Maven project

Add the following snippet to your POM:

<dependency>
    <groupId>org.pousse-cafe-framework</groupId>
    <artifactId>pousse-cafe-spring-pulsar</artifactId>
    <version>${poussecafe.spring.pulsar.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-client</artifactId>
    <version>${pulsar.version}</version>
</dependency>
org.pousse-cafe-framework

Pousse-Café

Pousse-Café is a framework assisting you in writing applications following Domain Driven Design methodology

Versions

Version
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.1
0.7.0
0.6.0