coherence 12.1.3 asynchronous processors

12
<Insert Picture Here> Asynchronous EntryProcessors Harvey Raja Consulting Member Technical Staff, Cloud Application Foundation Oracle Coherence Oracle Fusion Middleware 12c Cloud Application Foundation You Tube Video Series

Upload: oracle-coherence

Post on 22-Nov-2014

422 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Coherence 12.1.3 Asynchronous Processors

<Insert Picture Here>

Asynchronous EntryProcessorsHarvey RajaConsulting Member Technical Staff, Cloud Application FoundationOracle Coherence

Oracle Fusion Middleware 12c Cloud Application Foundation

YouTube Video Series

Page 2: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.2 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Insert Information Protection Policy Classification from Slide 8

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.

Page 3: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.3

Agenda

EntryProcessor Introduction

Why synchronous may not be required

Asynchronous is easy

Asynchronous EntryProcessor Introduction

Page 4: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.4

EntryProcessor Introduction

Avoids lock(K), get(K), mutate(V), put(K, V), unlock(K)

Executed on the member that owns K

Possible to be invoked with a Collection<K> or a Filter (Predicate)

Allow features such as Partition Lite Transactions

Page 5: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.5

EntryProcessor with Single Key

Page 6: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.6

EntryProcessor with Multiple Keys

Page 7: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.7

EntryProcessor with Multiple Keys

Page 8: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.8

Must the request be Synchronous?

Are the steps in a processing pipeline parallelizable?

If so the answer is simple:

Page 9: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.9

AsynchronousProcessor

As of 12.1.3 OOTB we provide an AsynchronousProcessor

Wrapper processor

AsynchronousProcessor extends AsyncAgent implements Future

Can specify – Unit of Order {default: Thread.getId()}– Automatic Flow Control {default: true}

Page 10: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.10

Demo

Page 11: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.11

Join the Coherence Communityhttp://coherence.oracle.com

@OracleCoherence

facebook.com/OracleCoherence

blogs.oracle.com/OracleCoherence

Oracle Coherence Users

youtube.com/OracleCoherence

coherence.oracle.com/display/CSIGCoherence Special Interest Group

Page 12: Coherence 12.1.3 Asynchronous Processors

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.12