lightweight java in the cloud

25
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Lightweight Java in the Cloud The state of Java server-side apps and how they can run on Oracle Java SE Cloud Service Bruno Borges - @brunoborges Oracle Cloud Platform @brunoborges

Upload: bruno-borges

Post on 16-Aug-2015

567 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Lightweight Java in the Cloud

@brunoborgesCopyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Lightweight Java in the CloudThe state of Java server-side apps and how they can run on Oracle Java SE Cloud Service

Bruno Borges - @brunoborgesOracle Cloud Platform

Page 2: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

•Bruno Borges–Product Manager / Developer Advocate–Oracle Cloud Platform

–Twitter: @brunoborges

Speaker

Page 3: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Safe Harbor StatementThe 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.

Page 4: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Why Move to the Cloud?

Better applicationsdeveloped fasterand cheaper

Page 5: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Why Move to the Cloud?

Better applicationsdeveloped fasterand cheaper

Page 6: Lightweight Java in the Cloud

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

Page 7: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

The Java Ecosystem

Page 8: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Spring Boot

Page 9: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Ratpack

Page 10: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

WildFly Swarm

Page 11: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

SparkJava

Page 12: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Platform as a Service

Bring Oracle’s leading Database and Middleware Technology Software to customers and partners anywhere in the World through the Internet

Infrastructure as a Service

Software as a Service

Data as a Service

Industry’s Most Comprehensive Cloud Platform Strategy

Page 13: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 15

Integrated Oracle Cloud Servicesfor a DevOps Culture

Developer Cloud Service

Developer

GITHudson

Push codeSubmit bugsShareon Wiki

Java Cloud Service

WebLogic

Load Balancer

WebLogic WebLogic

(coming soon)

Java SE Cloud Service

Java SE

Load Balancer

Java SE Java SEDeploy Directly

Continuous Delivery

Messaging Cloud Service

Storage Cloud Service

Database Cloud Service

BigData, Mobile, Integration, Process, ...

Page 14: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java Cloud ServicePaaS for Java EE applications

• Oracle WebLogic with ease

• Self-service application platform with advanced cloud tools

• Save time and cost with simplified provisioning

• Reduce down time: automated patching, backup, recovery

• Increase data and processing capacity on demand to scale for new business needs

• Includes Oracle Coherence for caching and data grid functions and Oracle Traffic Director for load balancing

• Pre-configured for Database and Developer Cloud Services for complete cloud application management

JAVA CLOUD SERVICE

Key Oracle Cloud component

Page 15: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java SE Cloud Service

• Choose Java SE 7 or Java SE 8 • With advanced features like Flight Recorder & Mission Control•On-Demand scale in and out. • Easily add or remove application instances to meet demand•One click upgrade between major and minor releases

Page 16: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Develop, Package and Run• Build any Java application with a main class– static void main(String args[])

• Inside you do whatever you want• Use 3rd-party libraries and frameworks– By defining Apache Maven dependencies

• Build a runnable “fat JAR” (that includes all dependencies) or ZIP file with runnable shell script to start your application• Integrate with Oracle Cloud and external services– Connect to the database, call REST APIs, etc

Page 17: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Easily build cloud native applications leveraging available cloud servicesIntegrated Oracle Public Cloud Services

Java Java (SE) Node.js Compute Storage

Messaging Process

InfrastructurePlatform

BusinessIntelligence

DatabaseBackup

Big Data Big DataDiscovery Mobile

Data

For Sales For Marketing

For Social Integration

Documents

Database

Developer

DatabaseSchema / PDB

Page 18: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Deploying Applications to Java SE Cloud Service

• Applications deployed as archives– Packaging all required Jars, HTML files, images, scripts etc. – Structure and content of the archive are user defined

• User defined application launch command– Start Java application directly or through a script– Control over all command line args and switches

• Define environment variables and hostname mappings to configure application for cloud deployment environment

Page 19: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java SE Cloud Service Features

• Applications run inside certified Oracle Linux containers• User selectable amount of RAM per application—usage charged in GB-

hours• Stateless Applications– Ephemeral disk– Permanent storage through database or storage service

Page 20: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java SE Cloud Service Features (cont.)

• No Backup Required—applications are stateless• No Patching Required—uptake of new releases of Java by upgrading• Simple archive deployment from on-premise or from Developer Cloud

Service

Page 21: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java SE Cloud Service Architecture

Developer

Java SE Cloud Service

Java SE Java SE Java SE

Load Balancer…

Messaging Cloud Service

Storage Cloud Service

Database Cloud Service

Java Cloud Service

Developer Cloud Service

Page 22: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java SE, Node Cloud Service

Tenant 2

Java SE Cloud Service Architecture

Developer

Java SE Cloud Service

Load Balancer

Messaging Cloud Service

Storage Cloud Service

Database Cloud Service

Java Cloud Service

Java SE(app1)

Developer Cloud Service

Tenant 1

Java SE(app1)

Java SE(app2)Java SE

(app2)

Node.js(app3)Java SE

(app3)

Page 23: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges

Java SE Cloud Service Use Cases

New App DevelopmentMigrate Apps to Cloud

• Born-in-the-cloud apps• Preconfigured for PaaS• Broad technology support• Light-weight environment

• Easy “rehosting” of apps• Latest Java updates• Cloud management• Connect to PaaS services

Page 24: Lightweight Java in the Cloud

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

For More Information

cloud.oracle.com/java

Page 25: Lightweight Java in the Cloud

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | @brunoborges