Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle incoming SNS from a multi instance ECS hosted application #244

Closed
kaihendry opened this issue May 21, 2018 · 4 comments
Closed

Handle incoming SNS from a multi instance ECS hosted application #244

kaihendry opened this issue May 21, 2018 · 4 comments

Comments

@kaihendry
Copy link
Contributor

kaihendry commented May 21, 2018

This issue carries on from #13

This might be tricky since we run TWO instances of meteor.

https://s.natalian.org/2018-05-21/sns-web-hook.mp4 demonstrates how it might work, using SNS from the dev account & https://github.com/unee-t/showhook

@kaihendry kaihendry created this issue from a note in Notification engine (In progress) May 21, 2018
@kaihendry kaihendry changed the title Handle incoming SNS Webhook Handle incoming SNS from a multi instance ECS hosted application May 22, 2018
@kaihendry
Copy link
Contributor Author

I'm starting to think SQS is a better option than a Webhook https://s.natalian.org/2018-05-18/sqs.mp4

Also see https://console.aws.amazon.com/support/v1#/case/?displayId=5045385721&language=en if you can (on account 812644853088).

@kaihendry
Copy link
Contributor Author

I'm confident that SQS is the way to go after asking around and creating a prototype.

I am creating a debug tool in Golang since I am not very good with Javascript over here: https://github.com/unee-t/showhook (probably will be renamed, since it's not working via a hook)

In Javascript you would use either:

To get the messages from the SNS Topic and then route them to the user by ID (assuming there is some mapping) and caseid. Once processed, i.e. the user is notified in the application, the message is deleted from the SQS queue.

@kaihendry
Copy link
Contributor Author

After speaking with @nbiton, we decided on a different direction to shownotication of writing directly into MongoDB via a lambda, and then Meteor's (MongoDB) observers will notice the changes and present that to the user via a Facebook Bell like notification UI element.

So I need to create a:

  • ut_notification_messages_cases >- mongodb
  • ut_notification_messages_units >- mongodb

One way mapping service.

kaihendry added a commit to unee-t/sns2mongo that referenced this issue May 30, 2018
@franck-boullier
Copy link
Member

ut_notification_messages_units >- mongodb is not needed anymore: the source of truth is Mongo DB for this
See the description of the Notification project for more details.

Notification engine automation moved this from In progress to Done Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants