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

A way make cache service to update subscribers #27

Closed
motorro opened this issue Nov 20, 2020 · 0 comments
Closed

A way make cache service to update subscribers #27

motorro opened this issue Nov 20, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@motorro
Copy link
Owner

motorro commented Nov 20, 2020

Consider a cache service with complex internal structure that is updated by some internal logic.
For example a database that saves entities and something that updates records' internal structure.
In case of Room you may observe a query and get updates if something changes underneath. But sometimes you have a complex entity with relations that are not so easy to fetch as they need conditional processing in synchronous way.
In this case you may write an SQL delegate for sync-delegate service to implement reactive cache with updates.
When you get/put the whole entity the solution works. But as soon as you start to update entity parts you need some way to notify subscribers of data change.

@motorro motorro added the enhancement New feature or request label Nov 20, 2020
@motorro motorro self-assigned this Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant