简体   繁体   中英

Integrating Amazon SNS with ServiceStack

I'm developing a suite of ETL-style apps which will link cloud-based systems with on-premise systems using Amazon SNS and Amzazon SQS along with some restful services. SNS allows you to set-up an HTTP endpoint as a subscriber and your apps can publish messages to SNS which will be dispatched to your HTTP endpoint (as a json message), as well as an SQS queue, email, sms etc.

What I would like to do is handle the HTTP response from my on-premise app which already incorporates some parts of the servicestack framework. However most of the documentation for servicestack and other restful frameworks describes their usage in a typical request/response pattern. But in this case i'm only waiting for a response from SNS. Can I still use any servicestack code for handling response only messages?

Amazon SNS pushes the notifications to your app using a regular POST request, you can handle it like any other incoming POST request.

The endpoint is just a regular url in your app that will receive the POST requests in JSON format .

Webhook is just a fancy name, don't get confused by that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM