Pousse-Café - Spring Kafka

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

License

License

GroupId

GroupId

org.pousse-cafe-framework
ArtifactId

ArtifactId

pousse-cafe-spring-kafka
Last Version

Last Version

0.11.0
Release Date

Release Date

Type

Type

jar
Description

Description

Pousse-Café - Spring Kafka
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-kafka

Download pousse-cafe-spring-kafka

How to add to project

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

Dependencies

provided (4)

Group / Artifact Type Version
org.pousse-cafe-framework : pousse-cafe-core jar 0.11.0
org.pousse-cafe-framework : pousse-cafe-jackson jar 0.11.0
org.springframework.kafka : spring-kafka jar 2.3.0.RELEASE
org.springframework : spring-core jar 5.2.0.RELEASE

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Travis build status Maven status

Pousse-Café Spring Kafka

This projects enables the use of Spring Kakfa as messaging backend. A JSON (Jackson-based) codec is being used for messages which are transmitted as text.

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(
            SpringKafkaMessaging 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.kafka.topic: the topic used for subscription and publication (default is pousse-cafe)

Configure your Maven project

Add the following snippet to your POM:

<dependency>
    <groupId>org.pousse-cafe-framework</groupId>
    <artifactId>pousse-cafe-spring-kafka</artifactId>
    <version>${poussecafe.spring.kafka.version}</version>
</dependency>
<dependency>
    <groupId>org.springframework.kafka</groupId>
    <artifactId>spring-kafka</artifactId>
    <version>${spring.kafka.version}</version>
</dependency>
<dependency>
    <groupId>org.pousse-cafe-framework</groupId>
    <artifactId>pousse-cafe-jackson</artifactId>
    <version>${poussecafe.jackson.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.11.0
0.9.0
0.8.0
0.7.1
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0