Skip to content

Commit da16ab3

Browse files
author
Raffaele Garofalo
committed
Completed documentation
1 parent 6404a47 commit da16ab3

File tree

5 files changed

+17
-166
lines changed

5 files changed

+17
-166
lines changed

sns-sqs-message-content-router-cdk/example-pattern.json

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
11
{
2-
"title": "Step Functions to Athena",
3-
"description": "Create a Step Functions workflow to query Amazon Athena.",
4-
"language": "Python",
2+
"title": "Content based router with SNS and SQS filters",
3+
"description": "Create an SNS topic and multiple SQS queues with content filtered based on configurable criteria.",
4+
"language": "Typescript",
55
"level": "200",
66
"framework": "CDK",
77
"introBox": {
88
"headline": "How it works",
99
"text": [
10-
"This sample project demonstrates how to use an AWS Step Functions state machine to query Athena and get the results. This pattern is leveraging the native integration between these 2 services which means only JSON-based, structured language is used to define the implementation.",
11-
"With Amazon Athena you can get up to 1000 results per invocation of the GetQueryResults method and this is the reason why the Step Function has a loop to get more results. The results are sent to a Map which can be configured to handle (the DoSomething state) the items in parallel or one by one by modifying the max_concurrency parameter.",
12-
"This pattern deploys one Step Functions, two S3 Buckets, one Glue table and one Glue database."
10+
"This CDK project demonstrates how to create a Message Content-based routing pattern using Amazon SNS and Amazon SQS.",
11+
"The number of Queues and the Filters are dynamically defined inside the stackconfiguration.json file. The solution can be adapted for any specific requirement.",
12+
"This architecture is an implementation of the Integration pattern: Content-Based Message Router explained in the Integration Patterns book."
1313
]
1414
},
1515
"gitHub": {
1616
"template": {
17-
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/sfn-athena-cdk-python",
18-
"templateURL": "serverless-patterns/sfn-athena-cdk-python",
19-
"projectFolder": "sfn-athena-cdk-python",
20-
"templateFile": "sfn_athena_cdk_python/sfn_athena_cdk_python_stack.py"
17+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/sns-sqs-message-content-router-cdk",
18+
"templateURL": "serverless-patterns/sns-sqs-message-content-router-cdk",
19+
"projectFolder": "sns-sqs-message-content-router-cdk",
20+
"templateFile": "sns-sqs-message-content-router-cdk/src/Cdk/CdkStack.ts"
2121
}
2222
},
2323
"resources": {
2424
"bullets": [
2525
{
26-
"text": "Call Athena with Step Functions",
27-
"link": "https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html"
28-
},
29-
{
30-
"text": "Amazon Athena - Serverless Interactive Query Service",
31-
"link": "https://aws.amazon.com/athena/"
26+
"text": "Amazon SNS subscription filter policies",
27+
"link": "https://docs.aws.amazon.com/sns/latest/dg/sns-subscription-filter-policies.html"
3228
}
3329
]
3430
},
3531
"deploy": {
3632
"text": [
37-
"sam deploy"
33+
"cdk deploy"
3834
]
3935
},
4036
"testing": {
@@ -44,14 +40,14 @@
4440
},
4541
"cleanup": {
4642
"text": [
47-
"Delete the stack: <code>cdk delete</code>."
43+
"Delete the stack: <code>cdk destroy</code>."
4844
]
4945
},
5046
"authors": [
5147
{
52-
"name": "Your name",
53-
"image": "link-to-your-photo.jpg",
54-
"bio": "Your bio.",
48+
"name": "Raffaele Garofalo (Raf)",
49+
"image": "https://avatars.githubusercontent.com/raffaeu",
50+
"bio": "Raffaele Garofalo (Raf) is a Senior Solutions Architect at AWS and member of the AWS Serverless TFC (Technical Field Communities).",
5551
"linkedin": "linked-in-ID",
5652
"twitter": "twitter-handle"
5753
}

sns-sqs-message-router-cdk/README.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

sns-sqs-message-router-cdk/example-pattern.json

Lines changed: 0 additions & 59 deletions
This file was deleted.

sns-sqs-message-router-cdk/src/app.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

sns-sqs-message-router-cdk/template.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)