MCBoarder289 / shelf-help

MIT License
4 stars 0 forks source link

Add Analytics to measure usage #29

Open MCBoarder289 opened 1 month ago

MCBoarder289 commented 1 month ago

Preface

I'd like to be able to measure usage of the app, but after doing research, also not use any third party analytics because I want to respect privacy as much as possible.

Need to add in the help docs what we're tracking so we're transparent. For the app to be useful at all, your Goodreads data would need to be public anyway, so we are not tracking anything that isn't publicly available. Still want to be transparent though about what is stored.

The solution needs to be:

Implementation Ideas

MCBoarder289 commented 1 month ago

Maybe look into using a free SNS and Lambda architecture, that way we simply fire-and-forget, but don't compute on the BE server?

Invoke a lambda from a SNS topic: https://docs.aws.amazon.com/lambda/latest/dg/example_serverless_SNS_Lambda_section.html

MCBoarder289 commented 1 month ago

Talks about SNS -> SQS -> Lambda for more control over the queuing: https://www.reddit.com/r/aws/comments/11jwjnd/when_to_use_what_sns_sqs_lambda_vs_sns_lambda/

MCBoarder289 commented 1 month ago

Deploying AWS Lambda via Docker (should be free if the repository is the public one and not a private one): https://docs.aws.amazon.com/lambda/latest/dg/python-image.html#python-image-instructions

MCBoarder289 commented 1 week ago

Publishing to SNS SNS Github example SNS to SQS SQS to Lambda