aws-marketplace-serverless-saas-integration icon indicating copy to clipboard operation
aws-marketplace-serverless-saas-integration copied to clipboard

Question on design for Marketplace metering

Open cailinw opened this issue 3 years ago • 0 comments

Very helpful repo, thank you. I had a question regarding the motivation behind the design of how metering records are submitted to Marketplace.

What is the motivation/reason for having the metering-hourly-job.js function send records to a SQS queue, and having another function to read records from this queue and submit to Marketplace? Would it still work to have the metering-hourly-job.js function both aggregate the records and submit to Marketplace and record the response in the table? Are there any downsides about using this approach?

Thank you.

cailinw avatar Mar 28 '21 15:03 cailinw