Embedding GlassFish v3 in Ehcache Server

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + guestd328e892 guestd328e892 8 months ago
    Thanks for the presentation. I was comparing EhCache with memcached. The rest of our application is deployed to GlassFish so this is a natural choice.
Post a comment
Embed Video
Edit your comment Cancel

Favorites, Groups & Events

Embedding GlassFish v3 in Ehcache Server - Presentation Transcript

  1. 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
  2. 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
  3. Fit in Overall Ehcache Architecture 3 Glassfish V3 Prelude – Ehcache Server Session
  4. Client Hashing Partitioning Topology 4 Glassfish V3 Prelude – Ehcache Server Session
  5. Load Balancer Partitioning Topology 5 Glassfish V3 Prelude – Ehcache Server Session
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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

+ pelegripelegri, 2 years ago

custom

1053 views, 0 favs, 0 embeds more stats

What is the Ehcache Server and how it embeds GlassF more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 1053
    • 1053 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 0
  • Downloads 23
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories