Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top