"oracle coherence 12c technical preview" waldemar thiel, senior sales consultant, oracle...
DESCRIPTION
Oracle Summer Tech Days – Fusion Middleware, 16.07.2013TRANSCRIPT
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 1
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 2
Oracle Coherence 12c Technical Preview
Waldemar Thiel | Senior Sales Consultant
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 3
Safe Harbor Statement
The following is intended to outline our general product direction. It is
intended for information purposes only, and may not be incorporated
into any contract. It is not a commitment to deliver any material,
code, or functionality, and should not be relied upon in making
purchasing decisions.
The development, release, and timing of any features or functionality
described for Oracle’s products remain at the sole discretion of
Oracle.
Coherence Basics
5 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Coherence In Memory Data Grid Scaling, Performance and Reliability of Application Infrastructure
• Application Scalability
– Reducing backend load with in memory caching – database, applications, mainframe
• Application Performance
– In memory data access – information close in memory, not in slow backend systems
• Application Reliability
– Reliable in memory data grid providing high-availability to applications
Coherence
Applications and
Middleware
Applications and
Middleware
Scale, Increase Performance &
Improve Reliability with
Peer to Peer, High Availability
In Memory Data Grid
6 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Oracle Coherence In-Memory Data Grid Secret Sauce for Scaling, Performance and Reliability at Internet Scale
2001 ….. 2008 2009 2000 2007 2010
Coherence
1.0
2011
Tangosol
founded to
pioneer
distributed
caching
Cool Vendor
Award
Oracle
acquires
Tangosol
Coherence
3.7.1.1
Coherence
3.6
Coherence
3.5
Coherence
3.7
Increasing market share and feature capabilities for In Memory Data Grid.
Market widened All Categories – Financial Services, E-Commerce, Travel,
Insurance, Retail, Manufacturing, Telco …
Deep adoption in Fusion Middleware, Oracle Horizontal
and Vertical and Business Applications and Exalogic
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
8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Coherence Clustered Caching Explained Partitioned, Fault Tolerant, Self-Healing Cache
• Cluster of nodes holding % of primary data locally
• Back-up of primary data is distributed across all other nodes
• Logical view of all data from any node
• All nodes verify health of each other
• In the event a node is unhealthy, other nodes diagnose
state
• Unhealthy node isolated from cluster
• Remaining nodes redistribute primary and back-
up responsibilities to healthy nodes
X
?
Coherence 12c (12.1.2) What’s new
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 10
Coherence 12.1.2
New major release of Coherence 12c
Key Themes
- Database Synchronization
- Configuration and Usability Improvements
- Oracle Fusion Middleware Convergence
- Simplification of development, deployment, and
management of Coherence applications
- Exalogic Innovation
2013 Coherence 12c (12.1.2)
• Golden Gate Adapter for Coherence
• REST security and usability improvements
• Unified Event Model
• Configuration Modernization
• Asynchronous Backups
• Backup Management Improvements
• Maven Support
• Exalogic performance optimizations
• Managed Coherence Servers
• Dynamic Thread Pooling for Proxy Servers
• OUI/Opatch Integration
• ECID Support
• OSGi Support
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 11
Solves the “stale cache” problem
– Applications updating DB outside Coherence
Leverages existing technologies
– Golden Gate
– TopLink Grid
Golden Gate detects changes, drives Cache updates through JPA/TopLink Grid
No programming
Broaden the applicability/usability of Coherence in enterprise applications
Database Synchronization – 12.1.2 Release
Golden Gate Adaptor for Coherence
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 12
REST Security & Usability Improvements
Security
Secure communication between
REST clients and proxies using SSL
– Supports HTTP basic
authentication, client-side
certificates, or both.
– Fine-grained authorization of
REST requests.
Usability
Support for pluggable query engines
Fine grained control over queries
allowed to be executed via REST
– Introduced “named queries”
defined in the resource definition
– Allow for limitation of query
results.
Keysets retrieval
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 13
Unified Event Model Simplified server-side programming and configuration
One programming model for all events
– Triggers
– Backing Map Listeners
– Partition Listeners
– Cache Stores
Formalizes programming semantics for event
driven architectures
Exposes advanced features to a wider audience
Declarative configuration
Cache
Interceptor
Data
Interceptor
Cache Server
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 14
Configuration Modernization Facilitate programmatic configuration and extension
Goals
Permit customer driven configuration
extension
Strengthen configuration validation
Simplify integration with other products
(e.g. Spring, Guice, etc.)
eg: out-of-the-box Spring support
Fully backwards compatible
(i.e. full support for existing configurations)
Enable dynamic runtime configuration
(for Managed Coherence Servers)
Benefits
Pluggable custom configuration - no need to
extend internal Coherence classes
Moving towards removing XML requirement
to construct configuration
Minimize requirement to understand internal
Coherence classes work
Fully documented approaches for extension
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 15
Asynchronous Backups
Decouples backup operations
from application’s interaction
with the data grid
~40-50% reduction in request
latency
Speed vs consistency
guarantees
Primary Backup Client
1
2 2
3
Primary Backup Client
1
3
2
4
Synchronous
Asynchronous
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 17
Coherence Exabus Improvements
Stability Improvements
– Unsolicited disconnect handling
– Refined service join protocol
Improved Scalability:
– Leveraged MessageBus to remove logical
bottlenecks in the cache service tier
– Reduced per-connection CPU consumption
Reduced end-to-end latency
– Reduced number of per request context switches
Coherence on Exalogic
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 18
Install, Upgrade and Patching
Use common Fusion Middleware install, patching and upgrade technology
Three Coherence distributions
– Coherence ZIP Install Lightweight, development focused installer
Does not support Opatch
– Coherence Quick Install Lightweight, development focused installer
‘java –jar coherence_generic.jar’
Supports Opatch
– Coherence OUI Installer Oracle Universal Installer (GUI)
Production focused
Three WebLogic and Coherence Distributions
– WebLogic & Coherence ZIP Install (development)
– WebLogic & Coherence Quick Install (development)
– WebLogic & Coherence OUI Installer (production)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 19
Managed Coherence Servers
Streamlined development and management environment
Introduces the Grid Archive (GAR)
– Follows the Java EE model
– Consolidates configuration into a single distributable entity
– Provides Application Isolation & Lifecycle Events
Leverages WebLogic infrastructure
– A Coherence container similar to EJB, JMS and JCA
– Management through Configuration Wizard, WebLogic admin console, WLST, JMX, FMWC
– Deployment of Coherence applications (GARs)
– Node Manager for lifecycle management
– Release and install Coherence libraries on the system classpath (no need to package in your application)
Coherence remains available “standalone” including support for GARs
Node Manager
Machine
Java EE/Coh
Server
Coherence
Server
Node Manager
Machine
Java EE/Coh
Server
Coherence
Server
Node Manager
Machine
Admin
Server
WebLogic Domain/Coherence Managed Servers
Cluster
Cluster
Standalone Coherence Clusters
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 21
Benefits of Managed Coherence Servers
Simplified Operations Management
– Configure, manage and deploy Coherence from the WebLogic Server administration console
– Manage Coherence resources centrally
– Automatic WKA generation based on domain servers
– Tight Maven integration
– Rolling Restarts
Simplified development and deployment
– GAR manages all application build artifacts
– Simplified application deployment across entire data grid
– Based on industry standard Java EE
Easier integration for WebLogic Server-based applications that leverage Coherence
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 22
POF Configuration Generator
Generates POF configuration
file based on @Portable classes
Predictable type-id generation
Generational
– Accepts previous POF
configuration file
Operates against a GAR and
supported by maven GAR plugin
Can be invoked command line or
consumable API
dependency-1.jar
@Portable PofObject1@Portable PofObject2
dependency-2.jar
@Portable PofObject3@Portable PofObject4
dependency-3.jar
@Portable PofObject5@Portable PofObject6
POF Configuration Generator
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 23
Maven Sync Plugin
Maven Support
Seamless integration between Oracle Home
and Maven repositories.
Standardize Maven usage and naming
conventions.
Synchronize patches to Oracle Home with
Maven repositories.
GAR Archetype support.
GAR packaging type support for use with
WLS deploy plugin.
Oracle Home
Enterprise Maven
Repository
Development Environment
Production Environment
Coherence Use Cases
25
Seamless Consolidation
Data Grid Application Server
Cluster with multiple
JVMs / Managed
Application Server
Cluster with less
members and data
grid cluster
connected
• Application data can overwhelm available server
memory.
• Adding more application servers only compounds
problem.
• Each app server requires fixed overhead.
• Memory management issues.
• Keep application data outside the application
server.
• Instant 25% increase of users per WLS application.
• Scale application data linearly thru commodity
hardware.
• Increase availability thru data redundancy.
Challenges Benefits
26
DB Offload
Data Grid
Challenges Benefits • Limited/scalability on the data tier
• Improve latency on data access
• Improve overall performance of Application
• Local side cache boost reading operations
• DB offload (less reads and CRUD
operations performed in batch)
27
“Always On” Information
Challenges Benefits • Database failures can bring down an entire
web application.
• Restarting application servers impacts
current user sessions.
• Possible loss of “in-flight” transactions and
customer data
• De-couple in-flight transactions, state and
sessions from physical servers
• “Bounce” production servers without losing
any current user state or transactions
• Useful for failure scenarios, upgrades,
troubleshooting, etc.
Data Grid
In-F
ligh
t D
ata
Production Servers
Staging Servers
28
Cross-Application User Sessions
Challenges Benefits • Many user experiences are composed of
multiple physical web applications.
• Each web application denotes a unique
web session.
• User experience impacted by
unsynchronized sessions.
• Establish a single session across all web
applications with ActiveCache.
• Share current user state and behavior
information across applications.
• Eliminate timeouts and improve overall
user experience.
• Zero code changes
Benefits
Data
Grid
Web App1
Web App2
Web App2
29
Object Interoperability
Challenges Benefits • Share objects/behavior between different
programming languages
• Web Services are good in interoperability
bad in performance
• Faster than Java and .Net serialization
• Pure .Net client (a single .DLL is needed)
Data Grid REST
Coherence References
Coherence Mainframe Offload
• European FS group including 200
banks
• Commercial-Retail Banking,
Insurance
• Revenue: $3 B
• Customers: 1.4 M
Customers Profile
• WebLogic Portal
• WebLogic Server
• Coherence EE (30 caches)
• Linux / X86
Solution
• Customer service cost reduced by 40%
• Current and consistent data compared
to prior local cache solution
• ROI in about 2 months
• Rock Solid - in production without a
single incident
Customer Benefits
• Business logic and data on
Mainframe (MF)
• Cost growing exponentially when
MF accessed from UI apps
• UI Apps running on middleware
• Apps accessing up to 30
times/session
• 10 Million accesses per month
Customer Problems
Solution Architecture
Customer service cost reduced by 40%
ROI in about 2 months
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 34
Join the Coherence Community
http://coherence.oracle.com
@OracleCoherence
facebook.com/OracleCoherence
blogs.oracle.com/OracleCoherence
Oracle Coherence Users
youtube.com/OracleCoherence
coherence.oracle.com/display/CSIG Coherence Special Interest Group
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 35