Skip to content

m-to-n/channels-webhook-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

channels-webhook-services

This repository holds set of AWS Lambda functions exposed via AWS API Gateway endpoints. Purpose of these functions is to:

  • Receive webhook messages from respective messaging platforms (e.g. WhatsApp provider (Twilio))
  • Perform security validation of incoming requests (e.g. in case of WA/Twilio validation of x-twilio-signature header and rejection of message not coming from Twilio)
  • Insert verified messages (i.e. verified x-twilio-signature + whitelisted AccountSid for WA/Twilio) into AWS SQS queue for downstream processing

Each channel (or channel and its provider should single channel be handled by multiple providers) will be implemented as separate lambda function. Each channel will have separate SQS queue to maximize throughput. FIFO queues with consumer groups (probably via bucketization of sessionId - to be devised) will be used to ensure strict processing order.

Serverless architecture

We are using Serverless Framework to make our life little bit easier. Quick getting started tutorial can be found here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published