oracle coherence training with hands on exercises

25

Upload: exequiel-meza

Post on 27-Mar-2016

231 views

Category:

Documents


2 download

DESCRIPTION

Presentación Oracle Coherence Training with Hands On Exercises

TRANSCRIPT

Page 1: Oracle Coherence Training with Hands On Exercises
Page 2: Oracle Coherence Training with Hands On Exercises

<Insert Picture Here>

Oracle Coherence TrainingOverview and Architecture

<Name>

<Title>

Page 3: Oracle Coherence Training with Hands On Exercises

Overview

• Overview

• What is Coherence?

• How does it work?

• Installation

• Installing and Testing Coherence

• Getting Started

• Code Examples

• Object Modelling

• Integration

• In-Grid Processing

• Management, Monitoring and Sizing

Copyright © 2011. Oracle Corporation

Page 4: Oracle Coherence Training with Hands On Exercises

What is Coherence

Copyright © 2011. Oracle Corporation

Page 5: Oracle Coherence Training with Hands On Exercises

Oracle Coherence

• Development Library

• Pure Java 1.4.2+

• Pure .Net 1.1+ (client)

• Pure C++ (client) for Windows, Solaris and Linux

• No Third-Party Dependencies

• No Open Source Dependencies

• Proprietary Network Stack (Peer-To-Peer model)

• Other Libraries Support9

• Database and File System Integration

• Top Link and Hibernate

• Http Session Management

• Spring, Groovy

Copyright © 2011. Oracle Corporation

Page 6: Oracle Coherence Training with Hands On Exercises

Oracle Coherence

• Provides9

• Container-less Clustering of Java Processes

• Data Structures to manage Data (XML-free) across a Cluster

• Real-Time Event Observation – Listener Pattern

• Materialized Views of Data – Invariant views (no-polling)

• Parallel Queries and Aggregation – Object-based Queries

• Parallel Processing – Data and Processing Affinity

• RemoteException Free Distributed Computing Services

• Clustered JMX

• MAN + WAN Data and Processing Services

• Client + Data Grid Deployment Models

• Point-To-Point Communication Layer

Copyright © 2011. Oracle Corporation

Page 7: Oracle Coherence Training with Hands On Exercises

Oracle Coherence

• Uses9

• Caching Objects in the Application Tier

• Relieve load on lower-tier systems • Databases, Mainframes, Web Servers, Web Services

• Managing Object state in the Application Tier

• Http Session Management (scale out)

• Temporary System of Record for Extreme Transaction

Processing

Copyright © 2011. Oracle Corporation

Page 8: Oracle Coherence Training with Hands On Exercises

How Coherence

Copyright © 2011. Oracle Corporation

Page 9: Oracle Coherence Training with Hands On Exercises

Distributed Data Management (access)

The Partitioned Topology

(one of many)

In-Process DataManagement

Copyright © 2011. Oracle Corporation

Page 10: Oracle Coherence Training with Hands On Exercises

Distributed Data Management (update)

Copyright © 2011. Oracle Corporation

Page 11: Oracle Coherence Training with Hands On Exercises

Distributed Data Management (failover)

Copyright © 2011. Oracle Corporation

Page 12: Oracle Coherence Training with Hands On Exercises

Distributed Data Management

• Members have logical access to all Entries

• At most 2 network operations for Access

• At most 4 network operations for Update

• Regardless of Cluster Size

• Deterministic access and update behaviour

(performance can be improved with local caching)

• Predictable Scalability

• Cache Capacity Increases with Cluster Size

• Coherence Load-Balances Partitions across Cluster

• Point-to-Point Communication (peer to peer)

• No multicast required (sometimes not allowed)

Copyright © 2011. Oracle Corporation

Page 13: Oracle Coherence Training with Hands On Exercises

Data Distribution: Clients and Servers

“Clients” with storage disabled

“Servers” with storage enabled

Copyright © 2011. Oracle Corporation

Page 14: Oracle Coherence Training with Hands On Exercises

Near Caching (L1 + L2) Topology

Copyright © 2011. Oracle Corporation

Page 15: Oracle Coherence Training with Hands On Exercises

Observing Data Changes

Copyright © 2011. Oracle Corporation

Page 16: Oracle Coherence Training with Hands On Exercises

Parallel Queries

Copyright © 2011. Oracle Corporation

Page 17: Oracle Coherence Training with Hands On Exercises

Parallel Processing and Aggregation

Copyright © 2011. Oracle Corporation

Page 18: Oracle Coherence Training with Hands On Exercises

Data Source Integration (read-through)

Copyright © 2011. Oracle Corporation

Page 19: Oracle Coherence Training with Hands On Exercises

Data Source Integration (write-

through)

Copyright © 2011. Oracle Corporation

Page 20: Oracle Coherence Training with Hands On Exercises

Data Source Integration (write-behind)

Copyright © 2011. Oracle Corporation

Page 21: Oracle Coherence Training with Hands On Exercises

Configuration

• Cache configuration file – client and server

• Override file – version, logging, WKA, Security etc.

• Command line parameters, macros and properties

• POF user types configuration file

• .NET configuration via App.config, C++ via

tangosol.coherence.cacheconfig and environment variables

Client Cache

Configuration File

Client Server

Server Cache

Configuration File

Tangosol Server Override

Configuration File

Client POF

Configuration File

Server POF

Configuration File

Coherence (coherence.xml)

Configuration FileTangosol Client Override

Configuration File

Application (App.config)

Configuration File

Copyright © 2011. Oracle Corporation

Page 22: Oracle Coherence Training with Hands On Exercises

Cache Semantics

• Client objects are copies not references to objects

• Although a cache can contain any object they are

almost always of the same type

• Links between objects in different caches are made

using key’s

• Cache nodes can be storage enabled or disabled

• Cache member communications are peer-to-peer

Copyright © 2011. Oracle Corporation

Page 23: Oracle Coherence Training with Hands On Exercises

Coherence Editions

• Coherence*Web

• Standard Edition• Partitioned Caching

• Read-through/write-through support

• Enterprise Edition• JMX Support

• HTTP Session Caching

• Write-behind

• Parallel operations, like queries and aggregations

• Grid Edition• WAN Replication

• Multi-platform Real-time events (used by Continuous Query and Near Cache)

Copyright © 2011. Oracle Corporation

Page 24: Oracle Coherence Training with Hands On Exercises

Overview

• No code changes required to use

• Portlet state can be cached

• Built into WLS and WLP

How it works

• Built-in to WebLogic Server

• Use script to inject into WAR/EAR file

• For IIS add as

Benefits

• Enables stateless middle tier

• Better hardware utilization

• Simpler network infrastructure

• Scales out middle tier

HTTP Session Caching

Copyright © 2011. Oracle Corporation

Page 25: Oracle Coherence Training with Hands On Exercises