TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
78 stars 30 forks source link

ehcache should be upgraded from 2.x to 3.x #147

Closed scrudden closed 4 years ago

scrudden commented 5 years ago

The 2.x version does not support off heap caching while 3.x does.

scrudden commented 5 years ago

Working on this on branch tc_issue_147.

scrudden commented 5 years ago

Need to add code to do expiry of entries. Need to migrate xml configuration.

scrudden commented 5 years ago

Have revised XML into the 3.x format. On doing this have used configuration to set the expiry of entries. So it may be that no code is going to be needed for expiry.

scrudden commented 5 years ago

Have built this on top of Memcached implementation. I did this as it needs to be able to serialize the cache entries for off-heap caching, as it does for adding entries to Memcached.

May look at using KryoSerializer based on the example in this blog entry https://www.ehcache.org/blog/2016/05/12/ehcache3-serializers.html to improve performance.

scrudden commented 5 years ago

Using KryoSerializer and making fields in IpcArrivalDeparture transient should help performance.

scrudden commented 5 years ago

WIP, example here https://github.com/TheTransitClock/transitime/commit/d79c3b6adb7d0448c244eda480f5cbaa8f295c37

scrudden commented 4 years ago

tc_issue_147 merged to develop so closing. Best option for caching is Ehache 3.x.