Giveth / impact-graph

MIT License
49 stars 18 forks source link

Optimize Analytics Tracking Calls #117

Closed cquinterom096 closed 1 week ago

cquinterom096 commented 3 years ago

This is a Quality of Life change. Right now Analytics tracking methods are being called in the main code/mutations, this is an issue because it slows down the backend from answering the frontend and if the tracking break, it breaks the whole code.

Solutions:

  1. Refactor Tracking calls into it's own module / methods / classes so it's not spread out through the whole code base.
  2. Move tracking calls to a background Job that it's executed after the backend answers the frontend.
MoeNick commented 3 years ago

@divine-comedian @cquinterom096 shall we start this? is it needed to be more clarified?