40
www.hazelcast.com @noctarius2k /** * Gimme Caching * The JCache Way */

JCache - Gimme Caching - JavaLand

Embed Size (px)

Citation preview

www.hazelcast.com@noctarius2k

/** * Gimme Caching * The JCache Way */

www.hazelcast.com@noctarius2k

DisclaimerThis presentation may include certain forward-looking statements and projections provided by the Company. Any such statements and projections reflect various

estimates and assumptions by the Company concerning anticipated results. These statements involve risks, uncertainties and assumptions and are based on the

current estimates and assumptions of the management of the Company as of the date of this presentation and are subject to uncertainty and changes. No

representations or warranties are made by the Company as to the accuracy of any such statements or projections. Whether or not any such forward-looking statements or projections are in fact achieved will depend upon future events some of which are not within the control of the Company. Accordingly, actual results may vary from the projected results and such variations may be material. Statements contained herein describing documents and agreements are summaries only and such summaries

are qualified in their entirety by reference to such documents and agreements.

www.hazelcast.com@noctarius2k

Who’s that dude?

• Chris(toph) Engelbert • Twitter fanatic: @noctarius2k • Weird 9+ Java-Years • Performance, GC, Fairytales • Apache Committer • Gaming, Travel Management, …

www.hazelcast.com

Who’s that dude?

• Chris(toph) Engelbert • Twitter fanatic: @noctarius2k • Weird 9+ Java-Years • Performance, GC, Fairytales • Apache Committer • Gaming, Travel Management, …

The www.Hazelcast.ninja

www.hazelcast.com@noctarius2k

Caching? Gotcha!

www.hazelcast.com@noctarius2k

… but why do Iwant to Cache?OOO

( )

www.hazelcast.com@noctarius2k

Caching? Don’t you mean ‘Wasting Memory’?

L1 Cache Reference L2 Cache Reference Main Memory Reference 1K send over 1 Gbps Network 4K read from SSD Seek on Spinning Disk Send Packet CA->AMS->CA

0.5 ns 7 ns

100 ns 10,000 ns

150,000 ns 10,000,000 ns

150,000,000 ns

0.01 ms 0.15 ms

10 ms 150 ms

www.hazelcast.com

Fast Delivery

www.hazelcast.com@noctarius2k

JavaOffheap

www.hazelcast.com@noctarius2k

http://gadizmo.com/roll-your-own-with-the-ham-dogger.php

Roll Your Own!Evolution Of Caching

www.hazelcast.com@noctarius2k

Caches Are Simple!

www.hazelcast.com@noctarius2k

Even With TTL!

www.hazelcast.com@noctarius2k

And Auto-Cleanup

www.hazelcast.com@noctarius2k

What Is Wrong?

www.hazelcast.com@noctarius2k

What Is Wrong?

O(n)5 mio

Entries

www.hazelcast.com@noctarius2k

I told you:Easy Peasy!

www.hazelcast.com@noctarius2k

http://technoodling.net/mili-power-crystal-battery-pack-review/

Proprietary Cache!

Evolution Of Caching

www.hazelcast.com@noctarius2k

Proprietary Cache!

Evolution Of Caching

www.hazelcast.com@noctarius2k

Proprietary Cache!

Evolution Of Caching

Open Source

www.hazelcast.com@noctarius2k

Proprietary Cache!

Evolution Of Caching

Open Source

Commercial

www.hazelcast.com@noctarius2k

Proprietary Cache!

Evolution Of Caching

Open Source

Commercial

Stupidly Expensive

www.hazelcast.com@noctarius2k

Success!Feels like

www.hazelcast.com@noctarius2k

Success!Feels like

NOT!

www.hazelcast.com@noctarius2k

JCache?

www.hazelcast.com@noctarius2k

A Java Caching Standard!

www.hazelcast.com@noctarius2k

No need to ## care aboutProprietary Solutions

anymore!

www.hazelcast.com@noctarius2k

Time to be Happy?

www.hazelcast.com@noctarius2k

JCache API Example

www.hazelcast.com@noctarius2k

Time to be Happy?

YES!

www.hazelcast.com@noctarius2k

It has along

History

www.hazelcast.com@noctarius2k

but also a Happy End!Brian OliverGreg R. Luck

www.hazelcast.com@noctarius2k

JCache in 5 Facts• JSR 107 - Java Temporary Caching API • Longest Running JSR - EVER!

• Targeting Java 6 • Almost Similar to j.u.Map but Better!

• Vendor Agnostic

www.hazelcast.com@noctarius2k

JCache Impementations

www.hazelcast.com@noctarius2k

JCache Impementations

Hazelcast

www.hazelcast.com@noctarius2k

JCache Impementations

HazelcastEhcache

www.hazelcast.com@noctarius2k

JCache Impementations

HazelcastEhcache

Infinispan

www.hazelcast.com@noctarius2k

JCache Impementations

HazelcastEhcache

Infinispan Coherence

www.hazelcast.com@noctarius2k

JCache Impementations

HazelcastEhcache

Infinispan CoherenceHow Dare You Are To Call You JCache?

www.hazelcast.com@noctarius2k

Wanna More Technical Talking?

Alex Snaps (@alexsnaps)

16:00 - Schauspielhaus

Applied javax.cach’ing

www.hazelcast.com@noctarius2k

Thank You!Any Questions?

@noctarius2k http://www.sourceprojects.org

http://github.com/noctarius

@hazelcast http://www.hazelcast.com http://www.hazelcast.org

http://github.com/hazelcast