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

Blocking Cache annotation #1137

Closed
jerrinot opened this issue Oct 17, 2016 · 6 comments
Closed

Blocking Cache annotation #1137

jerrinot opened this issue Oct 17, 2016 · 6 comments
Assignees
Labels
Type: Enhancement Label issue as an enhancement request

Comments

@jerrinot
Copy link
Contributor

I thought Payara could have a custom annotation to introduce a behavior described in jsr107/jsr107spec#373

Something like @Blocking or @Atomic - when used together with @CacheResult it would behave as described at jsr107/jsr107spec#373 (comment)

This is very useful in high throughput scenarios where the actual method execution is expensive.

@smillidge
Copy link
Contributor

Do you fancy creating it?

@smillidge smillidge added the Type: Enhancement Label issue as an enhancement request label Oct 31, 2016
@fturizo
Copy link
Contributor

fturizo commented Dec 1, 2016

@jerrinot, is @smillidge suggestion's fine with you? Let us know what do you think.

@jerrinot
Copy link
Contributor Author

jerrinot commented Dec 1, 2016

@fturizo: Hi, I am rather busy nowdays. I don't expect to have time for this before end of the year.

@fturizo
Copy link
Contributor

fturizo commented Dec 7, 2016

@jerrinot, considering that this feature is up to consideration for JCache v2.0, it might be a good idea to wait until a consensus is reached on how to handle blocking caches using annotations. Have you considered using a programmatic approach to solve you issue, using Java's concurrency utilities?

@fturizo fturizo added 1:Wait and removed 0:Triaged labels Dec 7, 2016
@fturizo fturizo self-assigned this Dec 7, 2016
@jerrinot
Copy link
Contributor Author

jerrinot commented Dec 8, 2016

Hi @fturizo, thanks for your reply.

Programmatic approach is certainly an option, however it forces a developer to deal with concurrency - and that's something developers are notoriously bad at. I thought Payara could provide a nice & easy-to-use abstraction here.

My idea is to use Payara as sort of "playing ground" and explore various ways how to integrate JCache into the Java EE world, find integration issues. So when the JCache 2.0 Expert Group is eventually formed we will already have a clear-ish picture about what to do. This should be good for both Payara (=being able to deliver JCache 2.0 features quickly) and the JCache 2.0 spec (=no ivory tower design)

@OndroMih
Copy link
Contributor

OndroMih commented Feb 4, 2020

Unfortunately, we’re not able to fit this feature request into our current roadmap. I’m closing this issue. I hope you understand.

@OndroMih OndroMih closed this as completed Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Label issue as an enhancement request
Projects
None yet
Development

No branches or pull requests

4 participants