Skip to content

Instantly share code, notes, and snippets.

@chathurawidanage
Last active November 22, 2017 10:14
Show Gist options
  • Save chathurawidanage/c16a80edeb6849c04c1a4bbc98dc69bb to your computer and use it in GitHub Desktop.
Save chathurawidanage/c16a80edeb6849c04c1a4bbc98dc69bb to your computer and use it in GitHub Desktop.
Publishing Pseudocode
switch(messageContext.variables.lan){
case "en-si":
publishToSinhalaTopic(messageContext.message.payload);
break;
case "en-ta":
publishToTamilTopic(messageContext.message.payload);
break;
case "en-fr":
publishToFrenchTopic(messageContext.message.payload);
break;
}
void publishToXTopic(){
//hundred+ lines of code for authentication, publishing to SNS and handeling errors
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment