lift & shift - Entwicklung in der Oracle Cloud mit dem Java Cloud Service

Peter Doschkinow Senior Java Architect Oracle Deutschland May 2015

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 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 remains at the sole discretion of Oracle.

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 3 Agenda • Java Cloud Service (JCS) – Introduction – Components – Features – Integration with Developer Cloud Service (DCS) • Demos – Shifting a simple Java EE app from on-premise to JCS – Extending a HTML5 app with HA and features and deploying it to a JCS, configured with Coherence

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Cloud and PaaS Adoption: On Fire!

Cloud is Top Cloud PaaS Mainstream Benefits Growing Rapidly

84% >80% ~90% • Using Cloud today • Greater Agility • Will adopt PaaS within or will be in Two Years • Lower Cost Five Years • Better Resource Utilization

*Source: Computerworld Strategic Marketing Services, February-March 2014 Cloud Survey **Source: GigaOM Research and VC North Bridge

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. – Cloud Services Rollout Schedule (inderjeet Singh EVP – NAS FMW All-hands) https://oraclemeetings.webex.com/oraclemeetings/ldr.php?RCID=07cd32a8fabf0cfb679153eace9165d8

Web Mobile Social Internet of Things

H2CY15 + SITES CLOUD Now MOBILE CLOUD

CLOUD

PROCESS DOCUMENTS BUSINESS INTELLIGENCE ANAYTICS Now Now Now H2CY15 +

CLOUD CLOUD CLOUD

CLOUD INTEGRATION DATA ENRICHMENT DATA INTEGRATION INTERNET OF THINGS

IDENTITY Now CLOUD H2CY15 + CLOUD H2CY15 + CLOUD H2CY15 + CLOUD CLOUD

DEVELOPER CLOUD JAVA CLOUD NODE.JS CLOUD

H2CY15 + Now Now H2CY15 + MONITORING H2CY15 +

On-Premise Cloud

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 6 Java Cloud Service: Three Options

JAVA CLOUD SERVICE SAAS EXTENSION

• Easy to enrich Oracle SaaS apps • Tailored-made WebLogic Server for rapid extension deployment • Ready marketplace with pre-built extensions, automated deployment

JAVA CLOUD SERVICE

JAVA CLOUD SERVICE Full-featured Service VIRTUAL IMAGE

• Simple, hosted WebLogic instance • Oracle controlled, updated

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 7 Oracle Java Cloud Services - Offerings

Java Cloud Service Java Cloud Service – SaaS Ext Full WebLogic Instance with VM access Limited WebLogic Instance NO VM access

Virtual Image Java Cloud Service SaaS Extension VM + WLS + Simple Provisioning VM + WLS + Cloud Automation Purpose-built for SaaS • Oracle approved image with simple, • Advanced provisioning • Fully managed automated provisioning of • Backup/Recovery automation • Dedicated VMs WebLogic domain • Patching/Rollback automation • Sizes - 1 node, 2 node, 4 node • No other lifecycle tooling in cloud • Scale OUT/IN automation • Integrated with Shared IDM • Product same as on premise • Monitoring & management to federate with SaaS services • Simplified consoles, tooling • 6.4 • Choice of software editions SE, EE and Suite • Choice of product version - 12c (12.1.2), and 11g (11.1.1.1.7) • On-demand storage & compute Production • Full network, VM and OS isolation, with SSH access into VM with root privilege October 2012 • Customer controlled lifecycle, using full cloud automation • REST for all lifecycle operations including provisioning

Production September 2014

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Java Cloud Service Main Use Cases

Dev/Test in the Cloud New App Development Migrate Apps to Cloud Strategic Outsourcing Recapture

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 9 Java Cloud Service: Development/Testing

• Dev/test in the cloud – deploy anywhere • Faster spin-up of dev/test instances – get to market faster! • Integrated developer environment with Developer Cloud Service • Consolidate with standardization • Focus on app development, not the infrastructure idiosyncrasies • Lower cost On Premises/Private Cloud

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 10 Java Cloud Service: New App Development in the Cloud

• Make your cloud apps smarter with a fully-integrated platform – upper-stack as well as run time • Leverage existing Java skills to build cloud-native applications • Broad cloud service portfolio to meet all technical needs • Preconfigured access to data sources with Database Cloud Service • Integrated cloud development environment with Developer Cloud Service • Lower your overall cost • Active marketplace for app promotion

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 11 Java Cloud Service: Application Migration to Cloud Lift-and-shift your apps

• Lower cost – no data centers • Easy, fast scalability to meet growing needs • Reduce ongoing management cost with OOTB tooling for production class operations – backup, restore, manage, monitor, scale, patch • Standardization and consolidation • Flexibility to move back to on-premise with Exalogic • Same platform you use on-premises & REST APIs for easy migration

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 12 Java Cloud Service: Outsourced Workloads

• Recapture control of your IT infrastructure and processes - perfect if you’ve strategically outsourced your IT

• Faster, more agile for LOB than traditional provisioning

• Allows end-user, self-service provisioning in minutes, versus lengthy processes that can take months JAVA CLOUD SERVICE

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 13 Java Cloud Service Feature: Provisioning

• Can pick shape/size – no complexity • Choose from popular versions: 11g (PS 6) or 12c (12.1.3) • Meet evolving technical and budgetary needs with popular Edition choices: Standard, Enterprise, Suite

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 14 Provisioning Topology

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Oracle Confidential – 15 Internal Java Cloud Service Feature: Patching

• Patching made simple – we handle the details

• You control patch timing - on demand or scheduled

• Includes unified patching of OS, JDK, WLS, JRF/ADF

• Supports rolling patching

• Supports Patchset Updates (PSUs), Patchsets (PS), Upgrades

• Don’t mess with backups! Full backup created before patching

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 16 Java Cloud Service Feature: Backup / Restore

• Coordinated backups with database and whole cloud stack - holistic backups • You choose - scheduled or on demand • Multiple depths supported: configuration/apps, logs, binaries, and database • Configurable: 7 day backup on local disk, older backups pushed to storage service

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 17 Java Cloud Service Feature: Scaling

• Fully-automated, on-demand – do it yourself without IT!

• Each managed server on separate virtual machine

• Zero downtime during scaling – keep customers happy

• Scale data capacity and processing up/down on demand – expand & retract at your own pace & business needs

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 18 Oracle Coherence Option: Data Caching & Scaling

• Scaling applications’ caching/data grid capacity in-memory to support growth

• Offload and protect shared cloud services + and databases

• Delivery of data to cloud apps in real time

JAVA CLOUD SERVICE • Transparency and high-availability in the cloud’s data grid tier

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Oracle Coherence Option: Your Cloud Data Grid Scalable, fault-tolerant cloud infrastructure

• Reliable In-Memory key-value store • Dynamically scalable • Scale processing with data • Entries can be • Reliably processed in-place • Queried • Aggregated • Integration with Database and Developer Cloud Services

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. + Coherence Cloud Service Seamlessly Deploy

• Coherence as a feature of Java Cloud Service • Build on WebLogic/Coherence 12c (12.1.3) Application Application Application • Leverages Managed Coherence Servers Server Server Server – Develop, deploy, manage and monitor your applications via WebLogic Application Cluster Management Framework • One Coherence cluster per domain Managed Managed Managed • Coherence (TCMP) cluster spans Java Cloud Service and Coherence Coherence Coherence Server Server Server Coherence Cloud Service managed servers Data Cluster • Cache storage disabled in the application tier Java Cloud Service

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Oracle Confidential – 21 Restricted How You Interact with Java Cloud Service

FMW Control/ WebLogic Admin Console • New Cloud Portal

Oracle Cloud Portal WLST • Familiar, but improved WebLogic Admin Console • Fusion Middleware Control • Traffic Director Admin Console • Public REST APIs REST API JAVA CLOUD SERVICE • Command Line Interface • SSH to VM • Standard IDEs

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 22 Speaking of Dev Environments… Developer Cloud Service

• Complete, Integrated Development Platform - as a Service • Application Lifecycle Management • Team Management • Entitlement with Java Cloud Service

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 23 Developer Cloud Service – Easy Adoption/Integration Pre-integrated development technologies in the cloud

• Standards Based • Git, Maven, Hudson, Ant, etc. • Built-in IDE Integration • Eclipse, NetBeans, JDeveloper • Flexible Source Location • Hosted Git or GitHub • Choice of Deployment Target • Oracle Java Cloud Service or on-premise

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 24 The Oracle Java Cloud Service Advantage

• On-Premises and Cloud Integration • Single-vendor Accountability • Vertically Integrated Stack • Self-Service/Provisioning • Pay-as-you-Grow Pricing JAVA CLOUD SERVICE • Includes Developer Cloud for FREE • Integrated With Database Cloud

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Oracle Company 25 Confidential – Shared Coming Soon: Java Cloud Service On-Premises!

• If you want to use public cloud, but can’t

• Geography, political, other reasons JAVA CLOUD SERVICE

• Same public experience, but on-premises

• Runs on Exalogic in your data center

JAVA CLOUD SERVICE

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 26 Java Cloud Service Pricing

Product JCS (Per OCPU) per Month per Hour*

Standard Edition $450 $0.75

Enterprise Edition $1,200 $2.02

Suite $2,800 $4.70

•Hourly price includes a 25% premium over Monthly price •Oracle Compute Unit (OCPU) provides the equivalent CPU capacity of a 3.0 GHz 2012 Intel Xeon processor with hyper threading enabled.

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. Transparent Pricing & Terms = No Surprises

Pay-as-you-Go with No Commitment • No credits purchase, no commitment

• Customer requests services, signs up, provisions • Credit card is the only supported payment method Surprises • Billed on actual usage and in arrears

Pre-Paid Subscriptions with Commitment • Burn down at negotiated rate for each metered service • Easy-to-follow price list published to • Customer can replenish the subscription at https://cloud.oracle.com/java?tabID=138514 Consumption Options Consumption any time 7650676 • Billing in arrears until replenished • Unused cloud credits expire at end of term • JCS requires purchase of Database & Storage Cloud Services

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 28 Demo

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 29 HTML5 App auf WebLogic : Drawing Board Demo https://github.com/doschkinow/hol-sse-websocket • Collaborative drawing • Two-page application – List of drawings – Drawing • Demonstrating – Server-side • Java EE 7: JAX-RS, JSON, WebSocket • WebLogic specific (Jersey): SSE, JSON-B – Client-side: AngularJS or JavaFX

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 30 Drawing Board Demo Thin Server Architecture

Clients WebLogic 12.1.3

HTTP/S

RS, RS, -

JSON SSE JAX (Jersey) DataProvider HTML5 Browser SSE POJO

(Drawings send(...) onEvent(...) JSON HashMap) DrawingService.query(...) Web WS webSocketSend.send(...)

Sockets Endpoint WebView/WebKit JavaFX

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 31 Drawing Board Demo How to scale, get HA and share application state?

?

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 32

Scalable Event-Based Architecture with In-Memory Data Grid

Coherence Cluster Coherence

https://github.com/doschkinow/hol-sse-websocket/solutions/exercise9

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 33 Additional Resources All available @ http://cloud.oracle.com/java • Pricing • Datasheets: • Java Cloud Service • Java Cloud Service – SaaS Extension • FAQ • Public Cloud FAQ • Java Cloud Service FAQ • Demo Videos • Forum • Public Cloud • Java Cloud Service • Blogs • Documentation

Copyright © 2015 Oracle and/or its affiliates. All rights reserved. 34