• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Embedding GlassFish v3 in Ehcache Server
 

Embedding GlassFish v3 in Ehcache Server

on

  • 2,958 views

What is the Ehcache Server and how it embeds GlassFish v3 Prelude

What is the Ehcache Server and how it embeds GlassFish v3 Prelude

Statistics

Views

Total Views
2,958
Views on SlideShare
2,956
Embed Views
2

Actions

Likes
0
Downloads
46
Comments
0

1 Embed 2

http://www.slideshare.net 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Embedding GlassFish v3 in Ehcache Server Embedding GlassFish v3 in Ehcache Server Presentation Transcript

    • Glassfish V3 Prelude Launch Event Ehcache Server Greg Luck Maintainer, Ehcache 6 November 2008 Job Title Company Name Session ID 1 Glassfish V3 Prelude – Ehcache Server Session
    • Ehcache Server ● Launched July 2008 ● REST & SOAP APIs ● Uses Jersey, JAX-WS ● Caching engine is the proven Ehcache core ● Embeds GFV3 Prelude to make a cache server product ● Launch with ./startup.sh ● Configure caches with ehcache.xml as usual 2 Glassfish V3 Prelude – Ehcache Server Session
    • Fit in Overall Ehcache Architecture 3 Glassfish V3 Prelude – Ehcache Server Session
    • Client Hashing Partitioning Topology 4 Glassfish V3 Prelude – Ehcache Server Session
    • Load Balancer Partitioning Topology 5 Glassfish V3 Prelude – Ehcache Server Session
    • Compared With Memcached ● Client – Server, out of ● Client – Server, out of process architecture process architecture ● Server is C based ● Server is Java: GFV3 ● Specific language client libs ● No client. REST or SOAP ● Uses the memcache protocol ● Uses HTTP protocol ● Synchronous operations ● Synchronous operations ● Partitioning via client key ● Partitioning via client key hashing hashing, load balancer key hashing or load balancer URI Routing ● No Replication ● Multimaster Replication 6 Glassfish V3 Prelude – Ehcache Server Session
    • Embedding Glassfish - Why? ● Memcached folks spend a lot of time maintaining a high performance NIO server. I started writing one... but we already have one in Grizzly. ● Glassfish is proven – have been running it for 2 years in large production Internet sites, plus it now has huge adoption ● Much easier to embed Glassfish V3 than Grizzly ● There are other NIO alternatives: Jetty, Tomcat, AsyncWeb/Mina 7 Glassfish V3 Prelude – Ehcache Server Session
    • Embedding Glassfish Maven Dependencies <dependency> <groupId>org.glassfish.embedded</groupId> <artifactId>gf-embedded-api</artifactId> <version>1.0-alpha-4</version> </dependency> <dependency> <groupId>org.glassfish.distributions</groupId> <artifactId>web-all</artifactId> <version>10.0-build-20080430</version> </dependency> 8 Glassfish V3 Prelude – Ehcache Server Session
    • Embedding Glassfish To Start: GlassFish glassfish = new GlassFish(port); GFApplication application = glassfish.deploy(war); And to Stop: glassfish.stop(); 9 Glassfish V3 Prelude – Ehcache Server Session
    • Conclusion ● New competitor to memcached for multi-language client-server caching ● Like memcached, it is much slower than ehcache core, but still much faster and less resource intense than regenerating expensive items ● See http://ehcache.sourceforge.net/ documentation/cache_server.html ● Contact me at gluck@gregluck.com 10 Glassfish V3 Prelude – Ehcache Server Session