title: Best practise for storing and querying clicks/views for a "widget" SaaS in AWS?
body: <p>I'm building a application that let's users show widgets on their websites by injecting a JS-library. I will then invoice the customer based on views and interactions of this widgets. Widgets may be loaded from Cloudfront CDN or from a serverless api-gateway with a lamda behind and every customer sends a custom API-key on every request. The thing i'm unsure of is the best way to store this data and use it for invoicing. I've read up on Time-series databases, AWS Firehouse/Glue/Athena or Clickstream or ingesting Cloudtrail, but i seem to find no good resource on what's best practise here.</p>
  <p>Anyone got any tips for this?</p>