Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taking out Force-side Redis #1748

Open
7 tasks
craigspaeth opened this issue Sep 1, 2017 · 2 comments
Open
7 tasks

Taking out Force-side Redis #1748

craigspaeth opened this issue Sep 1, 2017 · 2 comments

Comments

@craigspaeth
Copy link
Contributor

craigspaeth commented Sep 1, 2017

Now that Metaphysics is the bee's knees, we should try to kill off all Force-side caching and drop the Open Redis addon.

In most places, it's used to do request-level caching with a cache: true flag when we had spottier performance in Gravity. Now we don't really gain anything with this, and the only places it's still necessary is on pages like the fair microsite that needs to fetch and cache a big blob of data (clear use case for MP), or in often-fetched data like fetching auction reminders which should probably move that performance optimization downstream to Gravity or MP.

Places that need refactoring...

  • Fair microsite (refactor to MP... I hear there's a redesign under works to check in with Katarina & Morgan on)
  • Info menu component (refactor to MP)
  • Venice feature check (kill code + feature or atleast remove caching)
  • EOY list (kill code + feature or atleast remove caching)
  • Auction reminders (remove caching code—move perf. optimization downstream)
  • Partner category fetch (remove caching code—it uses MP)
  • SMS throttling (look at Twillio throttling features)
@anandaroop
Copy link
Member

anandaroop commented Sep 29, 2017

Following along with today's discussion of retiring Open Redis… I'm gonna add to this list a couple of cache: true instances that are for read-only Backbone collections that fetch not from Gravity endpoints, but rather from static files on S3.

These are used e.g. here and here

Wondering if those also be good candidates to move — do we use Metaphysics to fetch and cache static json blobs?

@craigspaeth
Copy link
Contributor Author

craigspaeth commented Sep 29, 2017

Thanks @anandaroop ! I think at this point we haven't set any boundaries with MP and any data is fair game in MP, so 👍 to moving that if it feels like the right call to you. However, you could also simply remove the cache: trueflags as those are only mildly increasing performance (caching individual requests) and Gravity + certainly S3 should be performant enough without caching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants