SlideShare a Scribd company logo
Betting On Data Grids
<Insert Picture Here>




Betting on Data Grids
Dave Felcey
Oracle Sales Consulting
Agenda

•   Oracle High Performance Computing
•   Oracle Coherence Architecture
•   Gaming Industry Challenges
•   Summary
Oracle High Performance Computing
 Comprehensive and Best of Breed

• Oracle 11g WebLogic Server
  • Fastest Applicaton Server, delivering 7,311 SPECjAppServer2004
    JOPS@Standard (jAppServer Operations per Second)
• Oracle JRockit Real-Time JVM
  • Fastest JVM, delivering 537,116 SPECjbb2005 bops/JVM p/s
• Oracle Complex Event Processing
  • Fraud detection, risk mitigation etc.
• Oracle 11g Database
  • Used by Betfair for performance and scalability and one of top 5
    busiest databases in the world
• Oracle TimesTen In-Memeory Database
  • The Hong Kong Jockey Club uses TimesTen to perform very fast
    fraud detection processing
• Oracle Identity Management (IdM)
  • Used by Shanda to manage ID of upto 2M concurrent users
Oracle High Performance Computing
Comprehensive and Best of Breed
 Management    WebCache           WebLogic Server       Tuxedo
 Tools
               Content Cache     J2EE and Messaging
                                                         Low Latency
 Monitoring
                Coherence Data Grid     Complex Event      TPM
                                        Processing
  SLA’s          Low Latency
   and                                                     Mature
                  Scalable              Low Latency
   QoS                                                      and
                  Resilient                EQL             Proven

Diagnostics     JRockit Real-Time JVM
                        Real-
                   Fast     Low Latency Predictable

Provisioning   TimesTen
                                                        Berkeley DB
               In-Memory     Low Latency       SQL
                                                             XML
               Oracle RAC                                Embedded
                  Commodity Hardware Scale Out           Transactional
Oracle Coherence
Data Grid Uses
      Caching
      Applications request data from the Data Grid rather than
      backend data sources

      Analytics
      Applications ask the Data Grid questions from simple queries to
      advanced scenario modeling

      Transactions
      Data Grid acts as a transactional System of Record, hosting
      data and business logic

      Events
      Automated processing based on event
The Coherence Approach…

• Consensus is key
  •   Communication is more efficient (peer-to-peer)
  •   No outages for voting (no need – everyone is a peer)
  •   No SPoF, SPoB
  •   No need for broadcast traffic (yelling at each other)
  •   You can do many things once you have “consensus”.
TCMP Provides the Foundations
What is Coherence?

• Coherence (deployment perspective)
  • Single Library*
     • *Other libraries for integration (L2C, Spring…)
  • Configurable implementations of standard Map interfaces
    (called NamedCache’s)
  • Standard Java Archive “JAR” for Java
  • Standard Dynamically Linked Library “DLL” for .NET
    connectivity (.Net 1.1 and 2.0)
  • Standard DLL or .so for C++ clients
  • No 3rd party dependencies!
  • Minimal “invasion” on standard code*
  • “RemoteException” free distributed computing
Introduction to NamedCaches

• Developers use NamedCaches to manage data
• An composite interface which includes Map
• NamedCache
  •   Logically equivalent to a Database table
  •   Store related types of information (trades, orders, sessions)
  •   May be hundreds / thousands of per Application
  •   May be dynamically created
  •   May contain any data (no need to setup a schema)
  •   No restriction on types (homogeneous and heterogeneous)
  •   Not relational (but may be)
Clustered Hello World!
public void main(String[] args) throws IOException {
   NamedCache nc = CacheFactory.getCache(“test”);
   nc.put(“key”, “Hello World”);
   System.out.println(nc.get(“key”));

     System.in.read();     //may throw exception
}
• Joins / Establishes a cluster
• Places an Entry (key, value) into the Cache “test” (notice no
  configuration)
• Retrieves the Entry from the Cache.
• Displays it.
• “read” at the end to keep the application (and Cluster) from
  terminating.
Caching Strategies (schemes)
 Different cache implementations

• Local
   • Local on-heap caching for non-clustered caching.
• Replicated
   • Perfect for small, read-heavy caches.
• Partitioned
   • True linear scalability for both read and write access. Data is
     automatically, dynamically and transparently partitioned across
     nodes. The distribution algorithm minimizes network traffic and
     avoids service pauses by incrementally shifting data.
• Near Cache
   • Provides the performance of local caching with the scalability of
     distributed caching. Several different near-cache strategies provide
     varying tradeoffs between performance and synchronization
     guarantees.
The Distributed Scheme - Get
The Distributed Scheme - Put
The Distributed Scheme - Failover
The Near Scheme

• A composition of pluggable Front and Back schemes
  • Provides L1 and L2 caching (cache of a cache)
• Why:
  • Partitioned Topology may always go across the wire
  • Need a local cache (L1) over the distributed scheme (L2)
  • Best option for scalable performance!
• How:
  • Configure ‘front’ and ‘back’ topologies
• Configurable Expiration Policies:
  • LFU, LRU, Hybrid (LFU+LRU), Time-based, Never,
    Pluggable
The Near Scheme - Get
Coherence*Extend
WAN Topology
Queries

• Filters applied in parallel (in the Grid)

• A large range of filters out-of-the-box:
  All, Always, And, Any, Array, Between,
  ContainsAll, ContainsAny, Contains, Equals,
  GreaterEquals, Greater, In, InKeySet,
  IsNotNull, IsNull, LessEquals, Less, Like,
  Limit, Never, NotEquals, Not, Or…

Filter filter = new AndFilter(
   new EqualsFilter("getTrader", traderId),
     new EqualsFilter("getStatus", Status.OPEN));

Set setOpenTrades = mapTrades.entrySet(filter);
Executing a query
Real Time Events

• Maintain real time visibility into data changes
• Desktops
  • The usual example is the “Trader desktop”
  • Watch data change in near real time
     • Typically a few milliseconds
• Servers
  • Monitoring data to trigger additional processing
     • Event Driven Architecture within the data grid
  • Very wide-ranging set of use cases
  • Not many common patterns of usage
Continuous Query Cache
Coherence implements Continuous Query using a combination
of its data fabric parallel query capability and its real-time event-
filtering and streaming. The result is support for thousands of
client application instances, such as trading desktops. Using the
previous trading system example, it can be converted to a
Continuous Query with only one a single line of code changed

NamedCache mapTrades = ...
Filter filter = new AndFilter(new
  EqualsFilter("getTrader", traderid),
    new EqualsFilter("getStatus", Status.OPEN));
NamedCache mapOpenTrades = new
  ContinuousQueryCache(mapTrades, filter);
Transaction Management

• Explicit transaction management
  • Using the general pattern for pessimistic transactions is "lock
    -> read -> write -> unlock". For optimistic transactions, the
    sequence is "read -> lock & validate -> write -> unlock".
• Implicit transaction management
  • Locking "by convention" – for example, requiring that all
    acessors lock only the "parent" Order object. Doing this can
    reduce the scope of the lock from table-level to order-level,
    enabling far higher scalability
• Further transaction optimizations
  • Using EntryProcessors – sending the code to the data, so
    that operations are queued and all locking is local. Operations
    must be idempotent.
Cache Through
Reading ahead or on-demand
Persisting Data
Write-through, write-behind, coalescing and batching
HTTP Session Caching
Overview
• No code changes required
  to use
• Portlet state can be cached
• Built into WLS and WLP
Benefits
• Enables stateless middle
  tier
• Better hardware utilization
• Simpler network
  infrastructure
• Facilitates modular
  application improvements
• Scales out middle tier
Serialization
          Portable Object Format (POF)
        • Benefits
               • Can store more data
               • Can read/write and move data faster

                            5x Smaller                                                             10x Faster De-Serialization
                                                                                                                           Coherence Serialization Test Results

                       Coherence Compression Test Results
                                                                                       12000
                                                                                                             10078
        1000

        900     867
                                                                                       10000

        800

                                                                                        8000
        700

        600
                                                                           Time (ms)    6000
Bytes




        500

        400                                                                              4000
                                    309             322                                                                             1625             2070
        300                                                                                           2360
                                                                                                                                                                    1234
                                                             186                         2000
        200

                                                                                                                         484
        100                                                                                    0                                               734                              De-serialization
                                                                                                                                                              547
          0                                                        Serialization                   Java
                                                                                                                                                                           Serialization
                Java         ExternalizationLite   XMLBean   POF   De-serialization                           ExternalizationLite
                                                                                                                                           XMLBean
                                                                                                          Se rialization M echanisum                        POF
Coherence Incubator
 Patterns

• Pre-built examples
• Used in production
  systems
• Thoroughly tested
• Extensible
• Optimised
• Incorporate best
  practice
Gaming Challenges

• Extreme scalability 500k+ users
• Reliability. Outages damage reputation and can cost
  £100k+ p/hr
• Flexibility. Enable products to be quickly brought to
  market
Extreme Scalability

• Scaling Users
  • 100k – 1M online users
  • Asynchronously update database so reduce latency, open
    connections etc.
• Scaling Transactions and Processing
  • Betfair
  • INCERNO processed 5k TPS in simulation tests with no
    discernable deterioration in performance or reliability.
• Scaling Data Capacity, >100 GB
  • Off-heap storage option in release 3.5
  • Potential storage limit now > TB
Extreme Reliability

• Non-Stop running
  • 2 years+ continuous running
• Withstand database or link replication failure
  • Queue requests
• Failure of multiple servers
  • No ‘Single Point Of Failure’
• Processing (as well as data) failover
Extreme Flexibility

•   Native Java, C++ and .NET clients
•   Simple Map and IDictionary API
•   Simple to install
•   Pre-built examples (Incubator Projects)
•   Seamless HTTP Session integration for J2EE and .NET
•   Support of Hibernate, JPA and Spring

Support
• Active forums and SIG’s
• Well documented
Summary

• Coherence™ is the leading product for high      <Insert Picture Here>

  performance distributed in-memory data
  services
  • Proven technology, 100+ customers and 1500+
    production systems
  • Offers a unique combination of features
• Coherence™ is easy to use and delivers
  data performance, scalability and reliability
Betting On Data Grids
Betting On Data Grids

More Related Content

PPT
Toronto jaspersoft meetup
PPTX
Clustrix Database Percona Ruby on Rails benchmark
PDF
Oracle no sql overview brief
PPTX
How Rakuten Reduced Database Management Spending by 90% through Clustrix impl...
PDF
NoSQL and MySQL webinar - best of both worlds
PPTX
Cassandra nyc 2011 ilya maykov - ooyala - scaling video analytics with apac...
PDF
Lightweight Grids With Terracotta
PDF
Cassandra 1.1
Toronto jaspersoft meetup
Clustrix Database Percona Ruby on Rails benchmark
Oracle no sql overview brief
How Rakuten Reduced Database Management Spending by 90% through Clustrix impl...
NoSQL and MySQL webinar - best of both worlds
Cassandra nyc 2011 ilya maykov - ooyala - scaling video analytics with apac...
Lightweight Grids With Terracotta
Cassandra 1.1

What's hot (20)

PDF
Developing polyglot persistence applications #javaone 2012
PPTX
Database Sharding the Right Way: Easy, Reliable, and Open source - HighLoad++...
PPTX
"Navigating the Database Universe" by Dr. Michael Stonebraker and Scott Jarr,...
KEY
qcon
PDF
Oracle ZDM KamaleshRamasamy Sangam2020
PDF
Using Spring with NoSQL databases (SpringOne China 2012)
PDF
WSO2 Carbon and WSO2 Stratos Summer Release Roundup
PDF
NoSQL overview #phptostart turin 11.07.2011
PDF
Database TCO
PPTX
CodeFutures - Scaling Your Database in the Cloud
PDF
My Sql Presentation
PDF
Developing polyglot persistence applications (SpringOne India 2012)
PDF
Innovations in Grid Computing with Oracle Coherence
PDF
Cloudcon East Presentation
PDF
Xs sho niboshi
PPTX
DataStax C*ollege Credit: What and Why NoSQL?
PDF
keyvi the key value index @ Cliqz
PDF
Developing polyglot persistence applications (SpringOne China 2012)
PPT
How to Stop Worrying and Start Caching in Java
PPTX
Yes sql08 inmemorydb
Developing polyglot persistence applications #javaone 2012
Database Sharding the Right Way: Easy, Reliable, and Open source - HighLoad++...
"Navigating the Database Universe" by Dr. Michael Stonebraker and Scott Jarr,...
qcon
Oracle ZDM KamaleshRamasamy Sangam2020
Using Spring with NoSQL databases (SpringOne China 2012)
WSO2 Carbon and WSO2 Stratos Summer Release Roundup
NoSQL overview #phptostart turin 11.07.2011
Database TCO
CodeFutures - Scaling Your Database in the Cloud
My Sql Presentation
Developing polyglot persistence applications (SpringOne India 2012)
Innovations in Grid Computing with Oracle Coherence
Cloudcon East Presentation
Xs sho niboshi
DataStax C*ollege Credit: What and Why NoSQL?
keyvi the key value index @ Cliqz
Developing polyglot persistence applications (SpringOne China 2012)
How to Stop Worrying and Start Caching in Java
Yes sql08 inmemorydb
Ad

Viewers also liked (6)

PDF
Sindhuja Sales Coaching 1.0
PDF
Inaugural Addresses
PPTX
How to think like a startup
PDF
Teaching Students with Emojis, Emoticons, & Textspeak
PDF
Study: The Future of VR, AR and Self-Driving Cars
PDF
Hype vs. Reality: The AI Explainer
Sindhuja Sales Coaching 1.0
Inaugural Addresses
How to think like a startup
Teaching Students with Emojis, Emoticons, & Textspeak
Study: The Future of VR, AR and Self-Driving Cars
Hype vs. Reality: The AI Explainer
Ad

Similar to Betting On Data Grids (20)

PDF
SnappyData at Spark Summit 2017
PPTX
SnappyData, the Spark Database. A unified cluster for streaming, transactions...
PDF
Fixing twitter
PDF
Fixing_Twitter
PDF
Fixing Twitter Improving The Performance And Scalability Of The Worlds Most ...
PDF
Fixing Twitter Improving The Performance And Scalability Of The Worlds Most ...
PDF
Modernización del manejo de datos con v fabric
PDF
MySQL Cluster Scaling to a Billion Queries
PDF
Fom io t_to_bigdata_step_by_step-final
PPTX
Riga dev day: Lambda architecture at AWS
KEY
Event Driven Architecture
PDF
Squeak DBX
PDF
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
PDF
Internet Scale Architecture
PDF
John adams talk cloudy
PPTX
7.) convergence (w automation)
PPTX
Whiptail XLR8r SSD Array
PPT
JavaOne_2010
PDF
IBM Cloud Native Day April 2021: Serverless Data Lake
PDF
Exadata 11-2-overview-v2 11
SnappyData at Spark Summit 2017
SnappyData, the Spark Database. A unified cluster for streaming, transactions...
Fixing twitter
Fixing_Twitter
Fixing Twitter Improving The Performance And Scalability Of The Worlds Most ...
Fixing Twitter Improving The Performance And Scalability Of The Worlds Most ...
Modernización del manejo de datos con v fabric
MySQL Cluster Scaling to a Billion Queries
Fom io t_to_bigdata_step_by_step-final
Riga dev day: Lambda architecture at AWS
Event Driven Architecture
Squeak DBX
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Internet Scale Architecture
John adams talk cloudy
7.) convergence (w automation)
Whiptail XLR8r SSD Array
JavaOne_2010
IBM Cloud Native Day April 2021: Serverless Data Lake
Exadata 11-2-overview-v2 11

More from gojkoadzic (20)

PDF
Descaling Agile (Agile Tour Vienna 2019)
PDF
Maximum Impact, Minimum Effort
PDF
Painless visual testing
PDF
Serverless JavaScript
PDF
Serverless Code Camp Barcelona
PDF
Test Automation Without the Headache: Agile Tour Vienna 2015
PDF
How I learned to stop worrying and love flexible scope - at JFokus 2014
PDF
Sabotage product
PDF
Reinventing Software Quality, Agile Days Moscow 2013
ODP
5 key challenges
ODP
Death to the testing phase
PPT
Challenging Requirements/Oredev
PPT
Effective specifications for agile teams
PDF
Agile Testers: Becoming a key asset for your team
PPT
From dedicated to cloud infrastructure
PPT
Specification Workshops - The Missing Link
PPT
Specification by example and agile acceptance testing
PPT
Space Based Programming
PDF
Getting business people and developers to listen to testers
PDF
Is the cloud a gamble
Descaling Agile (Agile Tour Vienna 2019)
Maximum Impact, Minimum Effort
Painless visual testing
Serverless JavaScript
Serverless Code Camp Barcelona
Test Automation Without the Headache: Agile Tour Vienna 2015
How I learned to stop worrying and love flexible scope - at JFokus 2014
Sabotage product
Reinventing Software Quality, Agile Days Moscow 2013
5 key challenges
Death to the testing phase
Challenging Requirements/Oredev
Effective specifications for agile teams
Agile Testers: Becoming a key asset for your team
From dedicated to cloud infrastructure
Specification Workshops - The Missing Link
Specification by example and agile acceptance testing
Space Based Programming
Getting business people and developers to listen to testers
Is the cloud a gamble

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Approach and Philosophy of On baking technology
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Tartificialntelligence_presentation.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Approach and Philosophy of On baking technology
1. Introduction to Computer Programming.pptx
Tartificialntelligence_presentation.pptx
Encapsulation theory and applications.pdf
Getting Started with Data Integration: FME Form 101
cloud_computing_Infrastucture_as_cloud_p
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25-Week II
SOPHOS-XG Firewall Administrator PPT.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Per capita expenditure prediction using model stacking based on satellite ima...

Betting On Data Grids

  • 2. <Insert Picture Here> Betting on Data Grids Dave Felcey Oracle Sales Consulting
  • 3. Agenda • Oracle High Performance Computing • Oracle Coherence Architecture • Gaming Industry Challenges • Summary
  • 4. Oracle High Performance Computing Comprehensive and Best of Breed • Oracle 11g WebLogic Server • Fastest Applicaton Server, delivering 7,311 SPECjAppServer2004 JOPS@Standard (jAppServer Operations per Second) • Oracle JRockit Real-Time JVM • Fastest JVM, delivering 537,116 SPECjbb2005 bops/JVM p/s • Oracle Complex Event Processing • Fraud detection, risk mitigation etc. • Oracle 11g Database • Used by Betfair for performance and scalability and one of top 5 busiest databases in the world • Oracle TimesTen In-Memeory Database • The Hong Kong Jockey Club uses TimesTen to perform very fast fraud detection processing • Oracle Identity Management (IdM) • Used by Shanda to manage ID of upto 2M concurrent users
  • 5. Oracle High Performance Computing Comprehensive and Best of Breed Management WebCache WebLogic Server Tuxedo Tools Content Cache J2EE and Messaging Low Latency Monitoring Coherence Data Grid Complex Event TPM Processing SLA’s Low Latency and Mature Scalable Low Latency QoS and Resilient EQL Proven Diagnostics JRockit Real-Time JVM Real- Fast Low Latency Predictable Provisioning TimesTen Berkeley DB In-Memory Low Latency SQL XML Oracle RAC Embedded Commodity Hardware Scale Out Transactional
  • 6. Oracle Coherence Data Grid Uses Caching Applications request data from the Data Grid rather than backend data sources Analytics Applications ask the Data Grid questions from simple queries to advanced scenario modeling Transactions Data Grid acts as a transactional System of Record, hosting data and business logic Events Automated processing based on event
  • 7. The Coherence Approach… • Consensus is key • Communication is more efficient (peer-to-peer) • No outages for voting (no need – everyone is a peer) • No SPoF, SPoB • No need for broadcast traffic (yelling at each other) • You can do many things once you have “consensus”.
  • 8. TCMP Provides the Foundations
  • 9. What is Coherence? • Coherence (deployment perspective) • Single Library* • *Other libraries for integration (L2C, Spring…) • Configurable implementations of standard Map interfaces (called NamedCache’s) • Standard Java Archive “JAR” for Java • Standard Dynamically Linked Library “DLL” for .NET connectivity (.Net 1.1 and 2.0) • Standard DLL or .so for C++ clients • No 3rd party dependencies! • Minimal “invasion” on standard code* • “RemoteException” free distributed computing
  • 10. Introduction to NamedCaches • Developers use NamedCaches to manage data • An composite interface which includes Map • NamedCache • Logically equivalent to a Database table • Store related types of information (trades, orders, sessions) • May be hundreds / thousands of per Application • May be dynamically created • May contain any data (no need to setup a schema) • No restriction on types (homogeneous and heterogeneous) • Not relational (but may be)
  • 11. Clustered Hello World! public void main(String[] args) throws IOException { NamedCache nc = CacheFactory.getCache(“test”); nc.put(“key”, “Hello World”); System.out.println(nc.get(“key”)); System.in.read(); //may throw exception } • Joins / Establishes a cluster • Places an Entry (key, value) into the Cache “test” (notice no configuration) • Retrieves the Entry from the Cache. • Displays it. • “read” at the end to keep the application (and Cluster) from terminating.
  • 12. Caching Strategies (schemes) Different cache implementations • Local • Local on-heap caching for non-clustered caching. • Replicated • Perfect for small, read-heavy caches. • Partitioned • True linear scalability for both read and write access. Data is automatically, dynamically and transparently partitioned across nodes. The distribution algorithm minimizes network traffic and avoids service pauses by incrementally shifting data. • Near Cache • Provides the performance of local caching with the scalability of distributed caching. Several different near-cache strategies provide varying tradeoffs between performance and synchronization guarantees.
  • 16. The Near Scheme • A composition of pluggable Front and Back schemes • Provides L1 and L2 caching (cache of a cache) • Why: • Partitioned Topology may always go across the wire • Need a local cache (L1) over the distributed scheme (L2) • Best option for scalable performance! • How: • Configure ‘front’ and ‘back’ topologies • Configurable Expiration Policies: • LFU, LRU, Hybrid (LFU+LRU), Time-based, Never, Pluggable
  • 20. Queries • Filters applied in parallel (in the Grid) • A large range of filters out-of-the-box: All, Always, And, Any, Array, Between, ContainsAll, ContainsAny, Contains, Equals, GreaterEquals, Greater, In, InKeySet, IsNotNull, IsNull, LessEquals, Less, Like, Limit, Never, NotEquals, Not, Or… Filter filter = new AndFilter( new EqualsFilter("getTrader", traderId), new EqualsFilter("getStatus", Status.OPEN)); Set setOpenTrades = mapTrades.entrySet(filter);
  • 22. Real Time Events • Maintain real time visibility into data changes • Desktops • The usual example is the “Trader desktop” • Watch data change in near real time • Typically a few milliseconds • Servers • Monitoring data to trigger additional processing • Event Driven Architecture within the data grid • Very wide-ranging set of use cases • Not many common patterns of usage
  • 23. Continuous Query Cache Coherence implements Continuous Query using a combination of its data fabric parallel query capability and its real-time event- filtering and streaming. The result is support for thousands of client application instances, such as trading desktops. Using the previous trading system example, it can be converted to a Continuous Query with only one a single line of code changed NamedCache mapTrades = ... Filter filter = new AndFilter(new EqualsFilter("getTrader", traderid), new EqualsFilter("getStatus", Status.OPEN)); NamedCache mapOpenTrades = new ContinuousQueryCache(mapTrades, filter);
  • 24. Transaction Management • Explicit transaction management • Using the general pattern for pessimistic transactions is "lock -> read -> write -> unlock". For optimistic transactions, the sequence is "read -> lock & validate -> write -> unlock". • Implicit transaction management • Locking "by convention" – for example, requiring that all acessors lock only the "parent" Order object. Doing this can reduce the scope of the lock from table-level to order-level, enabling far higher scalability • Further transaction optimizations • Using EntryProcessors – sending the code to the data, so that operations are queued and all locking is local. Operations must be idempotent.
  • 27. HTTP Session Caching Overview • No code changes required to use • Portlet state can be cached • Built into WLS and WLP Benefits • Enables stateless middle tier • Better hardware utilization • Simpler network infrastructure • Facilitates modular application improvements • Scales out middle tier
  • 28. Serialization Portable Object Format (POF) • Benefits • Can store more data • Can read/write and move data faster 5x Smaller 10x Faster De-Serialization Coherence Serialization Test Results Coherence Compression Test Results 12000 10078 1000 900 867 10000 800 8000 700 600 Time (ms) 6000 Bytes 500 400 4000 309 322 1625 2070 300 2360 1234 186 2000 200 484 100 0 734 De-serialization 547 0 Serialization Java Serialization Java ExternalizationLite XMLBean POF De-serialization ExternalizationLite XMLBean Se rialization M echanisum POF
  • 29. Coherence Incubator Patterns • Pre-built examples • Used in production systems • Thoroughly tested • Extensible • Optimised • Incorporate best practice
  • 30. Gaming Challenges • Extreme scalability 500k+ users • Reliability. Outages damage reputation and can cost £100k+ p/hr • Flexibility. Enable products to be quickly brought to market
  • 31. Extreme Scalability • Scaling Users • 100k – 1M online users • Asynchronously update database so reduce latency, open connections etc. • Scaling Transactions and Processing • Betfair • INCERNO processed 5k TPS in simulation tests with no discernable deterioration in performance or reliability. • Scaling Data Capacity, >100 GB • Off-heap storage option in release 3.5 • Potential storage limit now > TB
  • 32. Extreme Reliability • Non-Stop running • 2 years+ continuous running • Withstand database or link replication failure • Queue requests • Failure of multiple servers • No ‘Single Point Of Failure’ • Processing (as well as data) failover
  • 33. Extreme Flexibility • Native Java, C++ and .NET clients • Simple Map and IDictionary API • Simple to install • Pre-built examples (Incubator Projects) • Seamless HTTP Session integration for J2EE and .NET • Support of Hibernate, JPA and Spring Support • Active forums and SIG’s • Well documented
  • 34. Summary • Coherence™ is the leading product for high <Insert Picture Here> performance distributed in-memory data services • Proven technology, 100+ customers and 1500+ production systems • Offers a unique combination of features • Coherence™ is easy to use and delivers data performance, scalability and reliability