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

Infrastructure to simplify client-side entity caching pattern #12351

Open
hikalkan opened this issue Apr 25, 2022 · 0 comments
Open

Infrastructure to simplify client-side entity caching pattern #12351

hikalkan opened this issue Apr 25, 2022 · 0 comments

Comments

@hikalkan
Copy link
Member

Consider the following scenario:

Order module (or microservice) queries a customer from the customer module (or microservice) and caches the result in the distributed cache. Then the customer module invalidates (simply removes) the cache item when the original customer changes.

The following figure shows it in a monolith modular application:

image

We typically write such a code in the order module:

image

This can be automated if we somehow enable client-side caching to dynamic/static client proxies and also application services with a simple attributed.

This is another typical code to invalidate the cached item:

image

We may also automate this with a simple configuration.

@hikalkan hikalkan added this to the 6.0-preview milestone Apr 25, 2022
@hikalkan hikalkan self-assigned this Apr 25, 2022
@hikalkan hikalkan changed the title Idea: Infrastructure to simplify client-side entity caching pattern Infrastructure to simplify client-side entity caching pattern Apr 25, 2022
@hikalkan hikalkan modified the milestones: 6.0-preview, 7.0-preview May 24, 2022
@hikalkan hikalkan modified the milestones: 7.0-preview, backlog Oct 12, 2022
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

1 participant