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

Server-pushed events #169

Closed
JaneJeon opened this issue Jan 28, 2020 · 1 comment
Closed

Server-pushed events #169

JaneJeon opened this issue Jan 28, 2020 · 1 comment
Assignees
Labels
backend frontend wontfix This will not be worked on

Comments

@JaneJeon
Copy link
Owner

JaneJeon commented Jan 28, 2020

E.g.

  • rather than hitting the database every request, cache id => req.user and make a node instance listen to the postgres changes. When a user change comes through, bust that cache.
  • rather than having to hit settings every request (see Advanced access control & revised policies #143), cache settings and basically only bust it when the node is notified of a settings change.

This can probably also help with #158, as having a stream of changes makes it easy to save it.

@JaneJeon JaneJeon added the wontfix This will not be worked on label Apr 6, 2020
@JaneJeon
Copy link
Owner Author

JaneJeon commented Apr 6, 2020

I'll probably end up relying on https://github.com/zeit/swr and skip the whole "streaming update" thing as live updates aren't important for this application. However, this does mean that the "fetchers" for react-admin needs to be configured to use swr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend frontend wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant