Context
I have 2 SNS both publishing messages with different data model. I want a lambda to get these messages and do some processing. Creating a SQS between the SNS and Lambda is mandatory.
What i thought of?
I will create 2 new SQS to subscribe to the 2 SNS. One SQS will subscribe to only 1 SNS. I will create 2 new Lambda to read from 2 SQS and process the messages.
What i am looking for ?
Is there a way to create only 1 SQS and subscribe to both SNS and create 1 Lambda to read from the 1 SQS. Asking this because creating 2 lambda and SQS is costly. The major issue is both SNS have different data model. Is there a way to overcome this ?