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

Put Redis between Users Service and Firestore #2030

Closed
humphd opened this issue Mar 26, 2021 · 1 comment
Closed

Put Redis between Users Service and Firestore #2030

humphd opened this issue Mar 26, 2021 · 1 comment
Labels
area: microservices area: performance Issues related to our performance area: redis Redis Database related type: enhancement New feature or request

Comments

@humphd
Copy link
Contributor

humphd commented Mar 26, 2021

We're going to need to do a lot of reads to the user and feed data in Firestore (see #1828). @chrispinkney and I were discussing some of the limitations that Firestore imposes on reads, most likely because it favours their pricing model.

I want the security and peace-of-mind of having our data in Firestore, but I don't really want to worry about hitting it a million times a day, and incurring read costs.

Another option is for us to transparently cache all Firestore read/write data in our Redis instance, and prefer cached data when we have it. Since all of our interactions with Firebase flow through our microservices, we can have them add a caching layer to the mix.

It looks like this has already been done for us:

https://github.com/ehacke/simple-cached-firestore

There's a nice blog post why he built and and how to use it.

@humphd humphd added type: enhancement New feature or request area: redis Redis Database related area: performance Issues related to our performance area: microservices labels Mar 26, 2021
@humphd
Copy link
Contributor Author

humphd commented Apr 3, 2021

@chrispinkney do you want this, or should I take it?

@humphd humphd added this to the 2.1 Release milestone Apr 21, 2021
@manekenpix manekenpix modified the milestones: 2.1 Release, 2.2 Release, 2.1.5 Release Aug 13, 2021
@manekenpix manekenpix removed this from the 2.2.0 Release milestone Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: microservices area: performance Issues related to our performance area: redis Redis Database related type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants