SlideShare a Scribd company logo
1 of 46
Download to read offline
AWS Workshops
@rorypreddy
Meet Rory
• Developer in R&D team at BBD
• Organizer for
– Jozi-JUG
– AWS-Jozi
• Not related to Tyrion Lannister
• Don’t do kids parties
Agenda
• The “Cloud”
• Core AWS Services
– Tooling
– Billing
– Monitoring
• Serverless
• Labs
6 Cloud Benefits
1. Trade capital expense for flexible expense.
2. Economies of scale.
3. Eliminate guessing capacity needs.
4. Speed and agility.
5. Stop spending money on running and
maintaining data centers.
6. Global quickly.
Lift and Shift
(Minimal
Change)
Move the App
Infrastructure
Decommission
Do NotMove
Determine
Migration
Process
Manually Move
App and Data
rd3 Party Tools
AWS VM Import
Refactor
for AWS
Rebuild Application
Architecture
Refactor
for AWS
Application
Lift and Shift
Vendor Move the
S/PaaS Application
(if available)
3rd Party Migration Tool
Manually Move App andData
Determine
MigrationProcess
Replatform
(typically legacy
applications)
Recode App
Components
Rearchitect
Application
Recode
Application
ArchitectAWS Environment
and Deploy App, Migrate Data
Org/Ops
Impact
Analysis
Change
Management
Plan
Discover,
Assess (Enterprise
Architecture and
Applications)
Operate
Determine
Migration Path
Design, Build AWS
Environment
Signoff
Tuning Cutover
Identify
Ops Changes
Migration and
UAT Testing
Plan Migration andSequencing
Adoption
Signing up for an AWS account
• Sign up through https://aws.amazon.com
• You will need a credit card
• There will be a telephone verification
• Choose a zone
• try and stick to one
• Ireland is Best!
Regions and Availability Zones
Regions and Availability Zones
Core Services
• Traditional Infrastructure Amazon Web Services
Security
Network
Security
Network
Security Groups NACLs Access Mgmt
VPCVPCEC2 “Classic”
“Public
”
ELB
On-Demand
Provision
Servers
Amazon EC2 InstancesOn-Premises Servers
Security
Security Groups Network ACLs AWS IAMFirewalls ACLs Administrators
Networking
VPCELBRouter Network Pipeline Switch
Storage
and
Database
RDBMS
SAN Amazon
EBS
Amazon
EFS
Amazon
S3
Amazon
RDS
S3
Simple Storage Service (S3)
• Cloud based file storage
• Simple API to CRUD files
• Unlimited capacity
• Static website hosting
EC2
• Hardware virtualization in the cloud
• Various sized servers
• All major operating systems
• Provision, configure, start and stop machines
from Java App!
• Full operating system access via SSH and
Security Groups
EC2 Purchasing Options
• On Demand – allow you to pay a fixed rate by the
hour/minute with no commitment.
• Reserved – provide you with a capacity reservation, and offer
a significant discount on the hourly charge for an instance. 1
Year or 3 Year Terms.
• Spot – bid whatever price you want for instance capacity
• Dedicated Hosts – physical EC2 server dedicated for your
use.
• Dedicated instances – Pay, by the hour, for instances that
run on single-tenant hardware.
EC2 Instance Types
• General Purpose
• Compute Optimized
– batch processing
• Memory Optimized
– big data processing
• Accelerated Computing
– 3D rendering
• Storage Optimized
– noSQL
Databases
Relational Database Service (RDS)
• MySQL, Oracle, SQL Server, PostGres
• Automated backups
• Live replication for fail-over support
• No difference for JDBC based apps
• DB provisioning from your browser or from within your Java
app.
NOSQL databases
• SimpleDB – small amounts of structured data 10GB limit
per table
• DynamoDB – hosted on SSD – no size or request limitations
Elastic Beanstalk
• Deploy and scale web applications
• Languages: Java, .NET, PHP, Node.js, Python, Ruby
• Servers: Apache, Nginx, Tomcat , IIS
• Upload your code; AWS handles:
Deployment
Capacity Provisioning
Load balancing
Auto scaling
Health Monitoring
Container Service
• ECS
• AWS container cluster
• EKS
• Kubernetes for AWS
• API controlled
• Support Images from private Docker repositories
Tooling
• AWS and EB CLI
• IDE integration – Eclipse, IntelliJ,
Visual Studio
• AWS Java SDK
• API to manage AWS services
• Use services from within your
application
• Android and IOS app
AWS Pipelines
• CodeCommit or GitHub or BitBucket
• CodeBuild or Jenkins
• CodeDeploy or Jenkins
• CodePipeline
Billing
Free Tier
• Free for 12 months
• EC2 - run 1 micro instance x 1 month or 2
micro instances x half a month
• S3 - 5 GB of Standard Storage
• RDS - 750 Hours
And a lot more….
Billing
• Keep a close handle on what you are running in
the cloud
• Measure what you are spending
• Alarms and Reports
• Calculate Return On Investment
• Minimize what you don’t need
• Protect yourself from DDoS
SSH
• SSH keys are used for secured
access to EC2 instances
Security Group
• Security Groups are firewalls for your
instances
• By default, they block all traffic
• You can choose what protocols and
ports to open
Monitoring
Service Type
Continuouslogging
Continuousevaluations
On-demand evaluations
Periodic evaluations
Actions in response to APIs and state
change
X-Ray Helps developers analyze and debug
production,distributedapplications
Inspector
Config Rules
Trusted Advisor
CloudTrail
CloudWatch Events
Operations and management Scaling
Provisioning and utilization Availability and fault tolerance
Owning servers means
dealing with ...
AWS Lambda is a compute
service that runs your code in
response to events and
automatically manages the
compute resources for you
No servers to provision
or manage
Scales with usage
Never pay for idle Availability and fault
tolerance built in
Benefits of Lambda and
serverless compute
Run code in response to events
FUNCTION SERVICES (ANYTHING)
Changes in
data state
Requests to
endpoints
Changes in
resource state
Node
Python
Java
C#
EVENT SOURCE
Common use cases
Web
Applications
• Static
websites
• Complex web
apps
Data
Processing
ChatbotsBackends
• Apps &
services
• Mobile
• IoT
</>
Personal
Assistant
IT
Automation
• Powering
chatbot logic
• voice-enabled
apps
• Real time
• MapReduce
• Batch
• Policy engines
• Extending AWS
services
• Infrastructure
management
API Gateway
• RESTful API gateway service
• Multiple API stages that you define
(e.g., dev, test, prod)
• Works well with Lambda functions
LAMBDA PRICING
• Lambda
– Requests
• First 1 million per month are free
• $0.20 per 1 million requests thereafter
– Duration
• Charged per 100ms execution time
• First 400,000 GB-seconds of compute time per month are free
• $0.00001667 for every GB-second thereafter
• API Gateway
– $3.50 per million API calls received plus data transfer
costs
• Estimate for Malicious Domain Application:
• Lambda: $0.37/hour with 10 threads after free-tier
• API Gateway: $0.71/hour
• Total: ~$1/hr
Limitations
• Stateless
• Cold start behavior
• API Gateway timeout of 10 secs
Lambda Considerations
• Lambda can be invoked by **anything** or you can
figure out a way to make it happen.
• NodeJs and .Net Core perform well
• Java 9?
• Iterate and test quickly with local code and mock
events.
Labs
https://github.com/roryp/awslabs
1. Create a Spring Project with a EC2 server
2. Beanstalk with Autoscaling group
3. Serverless with Lambda and API Gateway
4. Calling an 3rd party API via Java SDK

More Related Content

What's hot

Getting Started with Elasticsearch
Getting Started with ElasticsearchGetting Started with Elasticsearch
Getting Started with ElasticsearchAlibaba Cloud
 
Managing application & instance state on AWS
Managing application & instance state on AWSManaging application & instance state on AWS
Managing application & instance state on AWSDavid Mat
 
AWS Kinesis - Streams, Firehose, Analytics
AWS Kinesis - Streams, Firehose, AnalyticsAWS Kinesis - Streams, Firehose, Analytics
AWS Kinesis - Streams, Firehose, AnalyticsSerhat Can
 
Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018
Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018
Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018iguazio
 
Real-time Data Processing with Amazon DynamoDB Streams and AWS Lambda
Real-time Data Processing with Amazon DynamoDB Streams and AWS LambdaReal-time Data Processing with Amazon DynamoDB Streams and AWS Lambda
Real-time Data Processing with Amazon DynamoDB Streams and AWS LambdaAmazon Web Services
 
How IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud ServicesHow IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud ServicesRightScale
 
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the CloudMathieu Chauvin
 
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...iguazio
 
Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?Javier Arias Losada
 
Splunk Spark Integration
Splunk Spark IntegrationSplunk Spark Integration
Splunk Spark IntegrationGang Tao
 
Navigating a Mesh of Microservices in the new Cloud-Native World with Istio
Navigating a Mesh of Microservices in the new Cloud-Native World with IstioNavigating a Mesh of Microservices in the new Cloud-Native World with Istio
Navigating a Mesh of Microservices in the new Cloud-Native World with IstioGary Arora
 
Vitalii Korzh "Managed Workflows or How to Master Data"
Vitalii Korzh "Managed Workflows or How to Master Data" Vitalii Korzh "Managed Workflows or How to Master Data"
Vitalii Korzh "Managed Workflows or How to Master Data" LogeekNightUkraine
 
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBMShould we manage events like APIs? | Alan Chatt and Kim Clark, IBM
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBMHostedbyConfluent
 
From Zero to Serverless
From Zero to ServerlessFrom Zero to Serverless
From Zero to ServerlessChad Green
 
Better CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
Better CQRS with ksqlDB | Anshuman Mukherjee, AirwallexBetter CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
Better CQRS with ksqlDB | Anshuman Mukherjee, AirwallexHostedbyConfluent
 
RightScale Webinar: Get Top Performance for Your Games
RightScale Webinar: Get Top Performance for Your GamesRightScale Webinar: Get Top Performance for Your Games
RightScale Webinar: Get Top Performance for Your GamesRightScale
 
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
IoT and Serverless - AWS - Serverless Summit - Madhusudan ShekarIoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
IoT and Serverless - AWS - Serverless Summit - Madhusudan ShekarCodeOps Technologies LLP
 
Kafka Summit NYC 2017 - Simplifying Omni-Channel Retail at Scale
Kafka Summit NYC 2017 - Simplifying Omni-Channel Retail at ScaleKafka Summit NYC 2017 - Simplifying Omni-Channel Retail at Scale
Kafka Summit NYC 2017 - Simplifying Omni-Channel Retail at Scaleconfluent
 

What's hot (20)

Getting Started with Elasticsearch
Getting Started with ElasticsearchGetting Started with Elasticsearch
Getting Started with Elasticsearch
 
Managing application & instance state on AWS
Managing application & instance state on AWSManaging application & instance state on AWS
Managing application & instance state on AWS
 
AWS Kinesis - Streams, Firehose, Analytics
AWS Kinesis - Streams, Firehose, AnalyticsAWS Kinesis - Streams, Firehose, Analytics
AWS Kinesis - Streams, Firehose, Analytics
 
Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018
Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018
Serverless and AI: Orit Nissan-Messing, Iguazio, Serverless NYC 2018
 
Real-time Data Processing with Amazon DynamoDB Streams and AWS Lambda
Real-time Data Processing with Amazon DynamoDB Streams and AWS LambdaReal-time Data Processing with Amazon DynamoDB Streams and AWS Lambda
Real-time Data Processing with Amazon DynamoDB Streams and AWS Lambda
 
How IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud ServicesHow IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud Services
 
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
 
Welcome Keynote
Welcome KeynoteWelcome Keynote
Welcome Keynote
 
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
 
Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?
 
Splunk Spark Integration
Splunk Spark IntegrationSplunk Spark Integration
Splunk Spark Integration
 
Navigating a Mesh of Microservices in the new Cloud-Native World with Istio
Navigating a Mesh of Microservices in the new Cloud-Native World with IstioNavigating a Mesh of Microservices in the new Cloud-Native World with Istio
Navigating a Mesh of Microservices in the new Cloud-Native World with Istio
 
Vitalii Korzh "Managed Workflows or How to Master Data"
Vitalii Korzh "Managed Workflows or How to Master Data" Vitalii Korzh "Managed Workflows or How to Master Data"
Vitalii Korzh "Managed Workflows or How to Master Data"
 
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBMShould we manage events like APIs? | Alan Chatt and Kim Clark, IBM
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
 
From Zero to Serverless
From Zero to ServerlessFrom Zero to Serverless
From Zero to Serverless
 
Better CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
Better CQRS with ksqlDB | Anshuman Mukherjee, AirwallexBetter CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
Better CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
 
RightScale Webinar: Get Top Performance for Your Games
RightScale Webinar: Get Top Performance for Your GamesRightScale Webinar: Get Top Performance for Your Games
RightScale Webinar: Get Top Performance for Your Games
 
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
IoT and Serverless - AWS - Serverless Summit - Madhusudan ShekarIoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
 
Kafka Summit NYC 2017 - Simplifying Omni-Channel Retail at Scale
Kafka Summit NYC 2017 - Simplifying Omni-Channel Retail at ScaleKafka Summit NYC 2017 - Simplifying Omni-Channel Retail at Scale
Kafka Summit NYC 2017 - Simplifying Omni-Channel Retail at Scale
 
Elk meetup
Elk meetupElk meetup
Elk meetup
 

Similar to AWS for Java Developers workshop

AWS for the Java Developer
AWS for the Java DeveloperAWS for the Java Developer
AWS for the Java DeveloperRory Preddy
 
AWS and Serverless with Alexa
AWS and Serverless with AlexaAWS and Serverless with Alexa
AWS and Serverless with AlexaRory Preddy
 
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...Gary Arora
 
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)Amazon Web Services
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...Amazon Web Services
 
2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWSSmartWave
 
AWS 2016 re:Invent Launch Summary
AWS 2016 re:Invent Launch SummaryAWS 2016 re:Invent Launch Summary
AWS 2016 re:Invent Launch SummaryAmazon Web Services
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds MeetupIntroducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds MeetupBoaz Ziniman
 
Serverlessusecase workshop feb3_v2
Serverlessusecase workshop feb3_v2Serverlessusecase workshop feb3_v2
Serverlessusecase workshop feb3_v2kartraj
 
Microservices and Serverless for Mega Startups - DevOps IL Meetup
Microservices and Serverless for Mega Startups - DevOps IL MeetupMicroservices and Serverless for Mega Startups - DevOps IL Meetup
Microservices and Serverless for Mega Startups - DevOps IL MeetupBoaz Ziniman
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAmazon Web Services
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingAmazon Web Services
 
Understanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud PlatformUnderstanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud PlatformDr. Ketan Parmar
 
Introduction to Google Cloud Platform
Introduction to Google Cloud PlatformIntroduction to Google Cloud Platform
Introduction to Google Cloud PlatformSujai Prakasam
 
Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Amazon Web Services
 
How Serverless Changes DevOps
How Serverless Changes DevOpsHow Serverless Changes DevOps
How Serverless Changes DevOpsRichard Donkin
 
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...Amazon Web Services
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017Amazon Web Services
 

Similar to AWS for Java Developers workshop (20)

AWS for the Java Developer
AWS for the Java DeveloperAWS for the Java Developer
AWS for the Java Developer
 
AWS and Serverless with Alexa
AWS and Serverless with AlexaAWS and Serverless with Alexa
AWS and Serverless with Alexa
 
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Confere...
 
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 
2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS
 
AWS 2016 re:Invent Launch Summary
AWS 2016 re:Invent Launch SummaryAWS 2016 re:Invent Launch Summary
AWS 2016 re:Invent Launch Summary
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds MeetupIntroducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
 
Serverlessusecase workshop feb3_v2
Serverlessusecase workshop feb3_v2Serverlessusecase workshop feb3_v2
Serverlessusecase workshop feb3_v2
 
Microservices and Serverless for Mega Startups - DevOps IL Meetup
Microservices and Serverless for Mega Startups - DevOps IL MeetupMicroservices and Serverless for Mega Startups - DevOps IL Meetup
Microservices and Serverless for Mega Startups - DevOps IL Meetup
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Serverless Workshop
Serverless WorkshopServerless Workshop
Serverless Workshop
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
Understanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud PlatformUnderstanding cloud with Google Cloud Platform
Understanding cloud with Google Cloud Platform
 
The Best of re:invent 2016
The Best of re:invent 2016The Best of re:invent 2016
The Best of re:invent 2016
 
Introduction to Google Cloud Platform
Introduction to Google Cloud PlatformIntroduction to Google Cloud Platform
Introduction to Google Cloud Platform
 
Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017
 
How Serverless Changes DevOps
How Serverless Changes DevOpsHow Serverless Changes DevOps
How Serverless Changes DevOps
 
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017
 

More from Rory Preddy

Programming for accessibility
Programming for accessibilityProgramming for accessibility
Programming for accessibilityRory Preddy
 
Whats new in .net for 2019
Whats new in .net for 2019Whats new in .net for 2019
Whats new in .net for 2019Rory Preddy
 
Whats new in .NET for 2019
Whats new in .NET for 2019Whats new in .NET for 2019
Whats new in .NET for 2019Rory Preddy
 
Getting started with Firebase
Getting started with FirebaseGetting started with Firebase
Getting started with FirebaseRory Preddy
 
Whats new in Java 9,10,11,12
Whats new in Java 9,10,11,12Whats new in Java 9,10,11,12
Whats new in Java 9,10,11,12Rory Preddy
 
Java 2018 certifications
Java 2018 certificationsJava 2018 certifications
Java 2018 certificationsRory Preddy
 
AWS Transcribe and Comprehend
AWS Transcribe and ComprehendAWS Transcribe and Comprehend
AWS Transcribe and ComprehendRory Preddy
 
BDD with Mockito
BDD with MockitoBDD with Mockito
BDD with MockitoRory Preddy
 
Up and Running with Kubernetes
Up and Running with KubernetesUp and Running with Kubernetes
Up and Running with KubernetesRory Preddy
 
Functional Reactive Endpoints using Spring 5
Functional Reactive Endpoints using Spring 5Functional Reactive Endpoints using Spring 5
Functional Reactive Endpoints using Spring 5Rory Preddy
 
BDD - Keep love alive
BDD - Keep love aliveBDD - Keep love alive
BDD - Keep love aliveRory Preddy
 

More from Rory Preddy (17)

Programming for accessibility
Programming for accessibilityProgramming for accessibility
Programming for accessibility
 
Whats new in .net for 2019
Whats new in .net for 2019Whats new in .net for 2019
Whats new in .net for 2019
 
Whats new in .NET for 2019
Whats new in .NET for 2019Whats new in .NET for 2019
Whats new in .NET for 2019
 
Getting started with Firebase
Getting started with FirebaseGetting started with Firebase
Getting started with Firebase
 
Whats new in Java 9,10,11,12
Whats new in Java 9,10,11,12Whats new in Java 9,10,11,12
Whats new in Java 9,10,11,12
 
Java modules
Java modulesJava modules
Java modules
 
Java 2018 certifications
Java 2018 certificationsJava 2018 certifications
Java 2018 certifications
 
AWS Transcribe and Comprehend
AWS Transcribe and ComprehendAWS Transcribe and Comprehend
AWS Transcribe and Comprehend
 
BDD with Mockito
BDD with MockitoBDD with Mockito
BDD with Mockito
 
Up and Running with Kubernetes
Up and Running with KubernetesUp and Running with Kubernetes
Up and Running with Kubernetes
 
Dockercompose
DockercomposeDockercompose
Dockercompose
 
Functional Reactive Endpoints using Spring 5
Functional Reactive Endpoints using Spring 5Functional Reactive Endpoints using Spring 5
Functional Reactive Endpoints using Spring 5
 
Nashorn
NashornNashorn
Nashorn
 
Vs java (1)
Vs java (1)Vs java (1)
Vs java (1)
 
Polyglot
PolyglotPolyglot
Polyglot
 
BDD - Keep love alive
BDD - Keep love aliveBDD - Keep love alive
BDD - Keep love alive
 
Kotlin
KotlinKotlin
Kotlin
 

Recently uploaded

WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2
 

Recently uploaded (20)

WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
 

AWS for Java Developers workshop

  • 2. Meet Rory • Developer in R&D team at BBD • Organizer for – Jozi-JUG – AWS-Jozi • Not related to Tyrion Lannister • Don’t do kids parties
  • 3.
  • 4. Agenda • The “Cloud” • Core AWS Services – Tooling – Billing – Monitoring • Serverless • Labs
  • 5.
  • 6.
  • 7. 6 Cloud Benefits 1. Trade capital expense for flexible expense. 2. Economies of scale. 3. Eliminate guessing capacity needs. 4. Speed and agility. 5. Stop spending money on running and maintaining data centers. 6. Global quickly.
  • 8.
  • 9. Lift and Shift (Minimal Change) Move the App Infrastructure Decommission Do NotMove Determine Migration Process Manually Move App and Data rd3 Party Tools AWS VM Import Refactor for AWS Rebuild Application Architecture Refactor for AWS Application Lift and Shift Vendor Move the S/PaaS Application (if available) 3rd Party Migration Tool Manually Move App andData Determine MigrationProcess Replatform (typically legacy applications) Recode App Components Rearchitect Application Recode Application ArchitectAWS Environment and Deploy App, Migrate Data Org/Ops Impact Analysis Change Management Plan Discover, Assess (Enterprise Architecture and Applications) Operate Determine Migration Path Design, Build AWS Environment Signoff Tuning Cutover Identify Ops Changes Migration and UAT Testing Plan Migration andSequencing Adoption
  • 10. Signing up for an AWS account • Sign up through https://aws.amazon.com • You will need a credit card • There will be a telephone verification • Choose a zone • try and stick to one • Ireland is Best!
  • 13. Core Services • Traditional Infrastructure Amazon Web Services Security Network Security Network Security Groups NACLs Access Mgmt VPCVPCEC2 “Classic” “Public ” ELB On-Demand Provision Servers Amazon EC2 InstancesOn-Premises Servers Security Security Groups Network ACLs AWS IAMFirewalls ACLs Administrators Networking VPCELBRouter Network Pipeline Switch Storage and Database RDBMS SAN Amazon EBS Amazon EFS Amazon S3 Amazon RDS
  • 14.
  • 15. S3 Simple Storage Service (S3) • Cloud based file storage • Simple API to CRUD files • Unlimited capacity • Static website hosting
  • 16.
  • 17. EC2 • Hardware virtualization in the cloud • Various sized servers • All major operating systems • Provision, configure, start and stop machines from Java App! • Full operating system access via SSH and Security Groups
  • 18. EC2 Purchasing Options • On Demand – allow you to pay a fixed rate by the hour/minute with no commitment. • Reserved – provide you with a capacity reservation, and offer a significant discount on the hourly charge for an instance. 1 Year or 3 Year Terms. • Spot – bid whatever price you want for instance capacity • Dedicated Hosts – physical EC2 server dedicated for your use. • Dedicated instances – Pay, by the hour, for instances that run on single-tenant hardware.
  • 19. EC2 Instance Types • General Purpose • Compute Optimized – batch processing • Memory Optimized – big data processing • Accelerated Computing – 3D rendering • Storage Optimized – noSQL
  • 20. Databases Relational Database Service (RDS) • MySQL, Oracle, SQL Server, PostGres • Automated backups • Live replication for fail-over support • No difference for JDBC based apps • DB provisioning from your browser or from within your Java app. NOSQL databases • SimpleDB – small amounts of structured data 10GB limit per table • DynamoDB – hosted on SSD – no size or request limitations
  • 21. Elastic Beanstalk • Deploy and scale web applications • Languages: Java, .NET, PHP, Node.js, Python, Ruby • Servers: Apache, Nginx, Tomcat , IIS • Upload your code; AWS handles: Deployment Capacity Provisioning Load balancing Auto scaling Health Monitoring
  • 22.
  • 23. Container Service • ECS • AWS container cluster • EKS • Kubernetes for AWS • API controlled • Support Images from private Docker repositories
  • 24.
  • 25. Tooling • AWS and EB CLI • IDE integration – Eclipse, IntelliJ, Visual Studio • AWS Java SDK • API to manage AWS services • Use services from within your application • Android and IOS app
  • 26. AWS Pipelines • CodeCommit or GitHub or BitBucket • CodeBuild or Jenkins • CodeDeploy or Jenkins • CodePipeline
  • 27.
  • 28. Billing Free Tier • Free for 12 months • EC2 - run 1 micro instance x 1 month or 2 micro instances x half a month • S3 - 5 GB of Standard Storage • RDS - 750 Hours And a lot more….
  • 29. Billing • Keep a close handle on what you are running in the cloud • Measure what you are spending • Alarms and Reports • Calculate Return On Investment • Minimize what you don’t need • Protect yourself from DDoS
  • 30. SSH • SSH keys are used for secured access to EC2 instances
  • 31. Security Group • Security Groups are firewalls for your instances • By default, they block all traffic • You can choose what protocols and ports to open
  • 32.
  • 33. Monitoring Service Type Continuouslogging Continuousevaluations On-demand evaluations Periodic evaluations Actions in response to APIs and state change X-Ray Helps developers analyze and debug production,distributedapplications Inspector Config Rules Trusted Advisor CloudTrail CloudWatch Events
  • 34.
  • 35. Operations and management Scaling Provisioning and utilization Availability and fault tolerance Owning servers means dealing with ...
  • 36. AWS Lambda is a compute service that runs your code in response to events and automatically manages the compute resources for you
  • 37. No servers to provision or manage Scales with usage Never pay for idle Availability and fault tolerance built in Benefits of Lambda and serverless compute
  • 38. Run code in response to events FUNCTION SERVICES (ANYTHING) Changes in data state Requests to endpoints Changes in resource state Node Python Java C# EVENT SOURCE
  • 39. Common use cases Web Applications • Static websites • Complex web apps Data Processing ChatbotsBackends • Apps & services • Mobile • IoT </> Personal Assistant IT Automation • Powering chatbot logic • voice-enabled apps • Real time • MapReduce • Batch • Policy engines • Extending AWS services • Infrastructure management
  • 40. API Gateway • RESTful API gateway service • Multiple API stages that you define (e.g., dev, test, prod) • Works well with Lambda functions
  • 41.
  • 42. LAMBDA PRICING • Lambda – Requests • First 1 million per month are free • $0.20 per 1 million requests thereafter – Duration • Charged per 100ms execution time • First 400,000 GB-seconds of compute time per month are free • $0.00001667 for every GB-second thereafter • API Gateway – $3.50 per million API calls received plus data transfer costs • Estimate for Malicious Domain Application: • Lambda: $0.37/hour with 10 threads after free-tier • API Gateway: $0.71/hour • Total: ~$1/hr
  • 43. Limitations • Stateless • Cold start behavior • API Gateway timeout of 10 secs
  • 44.
  • 45. Lambda Considerations • Lambda can be invoked by **anything** or you can figure out a way to make it happen. • NodeJs and .Net Core perform well • Java 9? • Iterate and test quickly with local code and mock events.
  • 46. Labs https://github.com/roryp/awslabs 1. Create a Spring Project with a EC2 server 2. Beanstalk with Autoscaling group 3. Serverless with Lambda and API Gateway 4. Calling an 3rd party API via Java SDK