abpframework / abpframework/abp
Infrastructure to simplify client-side entity caching pattern
@hikalkan is already working on this.
Since Apr 25, 2022.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 3.7k
- Avg merge
- 15h 32m
- Merged PRs (30d)
- 106
Description
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:

We typically write such a code in the order module:

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:

We may also automate this with a simple configuration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.