JoinColony / colonyCDapp

An iteration of the Colony Dapp sporting both a fully decentralized operating mode, as well as a mode enhanced by a metadata caching layer
5 stars 14 forks source link

Fix Reputation Cache Update Lambda #3756

Open rdig opened 6 hours ago

rdig commented 6 hours ago

This PR fixes the way the updateContributorsWithReputation Lambda updates the cached reputation for users by shedding it's reliance on the block ingestor, and the network (and implicitly colonyJS), making only the db and the Reputation miner the only parts required for it to work

Current Reputation Update Architecture Overview

...

Reputation Update Architecture Overview after this PR gets Merged

...

Future

This is just a temporary improvement, as the way we're updating the reputation currently is not scalable, meaning that on colonies with a lot of contributing users (users with reputation), this will simply fail to update everyone's reputation as there's a hard cap on execution time.

This will require re-engineering and re-architecturing to solve

JoinColony/block-ingestor#296