Coder Social home page Coder Social logo

watermill-amazonsqs's Introduction

Watermill - Amazon SNS/SQS PubSub Adapter

This package is still under development and NOT ready for production use.

Notes for SQS

A new SQS Publisher will create the queue if it does not exist.

Notes for SNS

A new SQS Publisher will create the topic if it does not exist. Be aware that without any subsciptions the messages published to that newly created topic would be lost. Make sure you always create the topic and subscriptions before you start an SNS publisher.

Unit Tests

You can run the unit tests by simply running the command: go test -cover -race ./...

Development and Testing

To try the in test mode (using goaws)

Now you can run the application: go run cmd/main.go

watermill-amazonsqs's People

Contributors

jozuenoon avatar llulioscesar avatar m110 avatar mariscal6 avatar ozzadar avatar p4tin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

watermill-amazonsqs's Issues

proposal(sqs): automatic encoding of messages

Goal

Ensure payloads send using the publisher confirm as valid message types. Users of watermill should not be concerned with ensuring that their payload is valid for the publisher they're using (Apart from potential sizing issues).

See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html detailing the supported characters for a payload

Changes

Check the message being published for any invalid characters, if it is found, base64 the message and add a metadata item with key _watermill_encoding & value base64.

The subscriber is auto updated to check for the _watermill_encoding metadata value, reversing the base64 encoding if it is found.

Help needed?

Hey @m110 ,
I have been enjoying your content and your course (so far ๐Ÿ˜‰ )! At work, we are on the journey to an event-driven-architecture and are leveraging SQS in specific quite a bit. We would really like to test out watermill as the backbone for this architecture but this package seems a bit "underdeveloped" (no offense!). Do you have concrete plans to maintain and support it or is this more something the community should take care of? I am just curious if you are looking for help to maintain/develop this package to bring it to a stable release? Or do you suggest to better fork and maintain in private?

Greetings from Berlin!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.