Skip to content

Aryelmr/spring-cloud-stream-binder-sns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud Stream Binder for AWS SNS

spring-cloud-stream-binder-sns lets you use Spring Cloud Stream with the AWS Simple Notification Service (SNS). Currently it only supports producing from your service to SNS, consuming will be added later.

Installation

<dependencies>
    <dependency>
        <groupId>de.idealo.spring</groupId>
        <artifactId>spring-cloud-stream-binder-sns</artifactId>
        <version>1.4.3</version>
    </dependency>
</dependencies>

Usage

With the library in your dependencies you can configure your Spring Cloud Stream bindings as usual. The type name for this binder is sns. There are no additional configuration options at the moment. The destination needs to match the topic name, the specific ARN will be looked up from the available topics in the account.

You may also provide additional configuration options:

  • Producers
    • confirmAckChannel - A channel to which to send positive delivery acknowledgments (aka publisher confirms). If the channel does not exist, a DirectChannel is registered with this name.

Example Configuration:

spring:
  cloud:
    stream:
      bindings:
        someFunction-out-0:
          destination: topic-name
      sns:
        default:
          producer:
            confirmAckChannel: ack-channel-name

You may also provide your own beans of AmazonSNSAsync to override those that are created by spring-cloud-aws-autoconfigure.

About

Amazon SNS for Spring Cloud Stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%