Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

idealo/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.