[hibernate-dev] [ORM] EhCache 3 and JCache
Radim Vansa
rvansa at redhat.com
Fri May 20 08:36:49 EDT 2016
Will there ever be a possibility to use Ehcache in clustered
environment, with opensource-only?
Radim
On 05/20/2016 10:56 AM, Louis Jacomet wrote:
> Hi all,
>
> Thanks Emmanuel for the email and no worry on the delay, the fact that I
> did not act sooner means it was pretty busy on our side too. But the timing
> is right, so let's move forward!
>
> Chris Dennis (added in CC) was the last one looking into the code and
> bringing it up to date with Hibernate master. You can see the current state
> of a JCache integration module in his fork -
> https://github.com/chrisdennis/hibernate-orm/commits/jsr107
>
> It might be helpful to get feedback on this already.
>
> With regards to the options for having a full blown Ehcache 3 support, I
> believe dropping Ehcache 2 in a minor release makes little sense given how
> much different (and incompatible) it is.
> So if we want to benefit from the transactional support in Ehcache 3 (as
> one example of a feature not in JCache), I believe options 1 and 2 are the
> open ones.
> Of course, depending on the approach picked, we could discuss deprecating
> Ehcache 2.x support for Hibernate 6.
>
> Now I think Sane had a conversation back in JavaOne 2015 with Alex Snaps
> but not sure if that was one of the covered topics.
>
> For sure, in order of priority for us:
> 1. Add JCache support to Hibernate so that Ehcache 3 but also others
> providers can act as 2nd level caches.
> 2. Extended Ehcache 3 support - exact solution to be defined.
>
> I will definitely start looking into the resources provided by Vlad, thanks.
>
> Regards,
> Louis
>
>
> On Fri, May 20, 2016 at 10:01 AM Vlad Mihalcea <mihalcea.vlad at gmail.com>
> wrote:
>
>> Hi Louis,
>>
>> The Caching section from the 5.0 docs is a good place to start to getting
>> to know the basics of Hibernate 2nd level cache.
>>
>> If you want to get into lots of details, you can check my Hibernate Master
>> Class:
>>
>> https://vladmihalcea.com/tutorials/hibernate/
>>
>> There you can find a lot of resources on how each cache concurrency
>> strategy works, about collection and query cache.
>> If you have any questions, you can ask me anytime.
>>
>> Vlad
>>
>> On Fri, May 20, 2016 at 10:54 AM, Emmanuel Bernard <emmanuel at hibernate.org
>>> wrote:
>>> Hello guys,
>>>
>>> (I meant to send that almost a month ago, apologies Louis).
>>>
>>> I’ve met Louis Jacomet from Ehcache at Devoxx France and we discussed how
>>> to restart the progress around JCache and EhCache 3 integration.
>>> Louis is willing to step up to make these a reality but will need a bit
>>> of help to ramp up knowledge wise. Let me list the key subjects.
>>>
>>> == JCache
>>>
>>> I think Sanne has the info somewhere in his brain, what is the status of
>>> the current code? Any detail on what was missing? It would be nice to drive
>>> this one home.
>>>
>>> == Ehcache 3
>>>
>>> Ehcache 3 has been out recently and it would be nice to get an
>>> integration. The API is very different.
>>> There are a few options:
>>>
>>> 1. make the JCache support extensible to build upon it and use Ehcache
>>> specific features when necessary or useful. Ehcache 3 is a JCache
>>> implementation.
>>> 2. create an new module dedicated to Ehcache 3 and go for it from scratch
>>> basically
>>> 3. change the Ehcache module and move it from v2 to v3
>>>
>>> 1. might be the conceptual nicest but it’s unclear how doable that is
>>> 2. vs 3. is about migration path for users and whether we consider it a
>>> “breaking change” in a 5.x series
>>>
>>> == Doc and pointers
>>>
>>> As I said, Louis know Ehcache well but needs some input to step into the
>>> magic world of second level caching in Hibernate ORM. Things like where is
>>> the code, how to test it, is there a doc or an example of a well written
>>> one etc.
>>>
>>> Can someone give him a hand?
>>>
>>> Emmanuel
>>>
>> _______________________________________________
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Radim Vansa <rvansa at redhat.com>
JBoss Performance Team
More information about the hibernate-dev
mailing list