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

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
RightScale
 

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

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
Amazon 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

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

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 

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