Your SlideShare is downloading. ×
0
Amazon Elastic Beanstalk
Eberhard Wolff
Freelance Consultant/ Trainer
Head Technology Advisory Board
adesso AG
HISTORY & ORIGIN

Eberhard Wolff - @ewolff
History & Origin
! Amazon: cloud pioneer
! Original offerings
! EC2 Elastic Compute Cloud
! S3 Simple Storage Service
! Ma...
Other Amazon Services
! Elastic Load Balancer
! Auto Scaling
starts new EC2 instances
! EBS: Elastic Block Storage
virtual...
Elastic Beanstalk in a
Nutshell

Eberhard Wolff - @ewolff
Elastic Beanstalk in a
Nutshell
!  EC2 Server
Elastic Load Balancer
!  +Linux
Auto Scaling
!  +OpenJDK
!  +Tomcat
EC2 Serv...
Programming Model
! OpenJDK + Tomcat
! Standard Java Programming Model
! Also supported: Python, PHP, Ruby,
Node.js (Linux...
Scaling / High Availability 
! Servers automatically started
! Auto Scaling
! Failed servers will be restarted
! Servers c...
TOOLS

Eberhard Wolff - @ewolff
Web Console
! Web UI
! Wizard to create new application
! + environment to run the application
on

Eberhard Wolff - @ewolf...
DEMO: NEWS APPLICATION

Eberhard Wolff - @ewolff
News Application

Eberhard Wolff - @ewolff
News Application
Originally by
Bernhard
Löwenstein

Eberhard Wolff - @ewolff
News Application

✔
✔

(✔)

✔
Eberhard Wolff - @ewolff
News Application
✔

✔

✖
Spring

✔

Eberhard Wolff - @ewolff
News Application

Next slide

Eberhard Wolff - @ewolff
Code Changes
Took the Spring application
Converted to MySQL

<bean class="java.net.URI" id="dbUrl">	
<constructor-arg	
val...
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Eberhard Wolff - @ewolff
Some tricks...
! Easy to create a new environment
! E.g. for testing, staging
! URLs can be swapped

Eberhard Wolff - @ewo...
Some tricks...
! Deploy new version on new
environment
! Switch URLs with production
! Zero downtime
Eberhard Wolff - @ewo...
More tools
! All web console action also possible
using SOAP Web Services
! Command Line tools

Eberhard Wolff - @ewolff
Eclipse Plug In
! Manage all AWS resources (EC2,
S3…)
! Manage Elastic Beanstalk server just
like local servers

Eberhard ...
Eclipse Plug In

Eberhard Wolff - @ewolff
FLEXIBILITY

Eberhard Wolff - @ewolff
Flexibility
!  Tuning possible
!  E.g. JVM parameters
!  Load balancer configuration
!  Can even use your own system image...
Configuration Files
! Part of the deployable artifact
! Declaratively install packages &
libraries
! Configure software com...
PLATFORM AND OTHER
SERVICES
Eberhard Wolff - @ewolff
Platform
!  Amazon Web Services
!  Proven foundation
!  Used for many other cloud plattforms
!  …and by many users
!  Incl...
Other Services
! Amazon Relational Database Service
! Oracle, MySQL, MS SQL Server
! Diverse NoSQL solutions
(e.g. DynamoD...
Amazon Elastic Beanstalk:
Highlights
! Proven foundation
! Standard Java stack (Tomcat +
OpenJDK)
! World wide availabilit...
Upcoming SlideShare
Loading in...5
×

Amazon Elastic Beanstalk

2,004

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,004
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
26
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Amazon Elastic Beanstalk"

  1. 1. Amazon Elastic Beanstalk Eberhard Wolff Freelance Consultant/ Trainer Head Technology Advisory Board adesso AG
  2. 2. HISTORY & ORIGIN Eberhard Wolff - @ewolff
  3. 3. History & Origin ! Amazon: cloud pioneer ! Original offerings ! EC2 Elastic Compute Cloud ! S3 Simple Storage Service ! Many other offerings ! E.g. databases, Map / Reduce … ! Foundation for many other services Eberhard Wolff - @ewolff
  4. 4. Other Amazon Services ! Elastic Load Balancer ! Auto Scaling starts new EC2 instances ! EBS: Elastic Block Storage virtual hard disks Eberhard Wolff - @ewolff
  5. 5. Elastic Beanstalk in a Nutshell Eberhard Wolff - @ewolff
  6. 6. Elastic Beanstalk in a Nutshell !  EC2 Server Elastic Load Balancer !  +Linux Auto Scaling !  +OpenJDK !  +Tomcat EC2 Server EC2 Server Linux Linux !  Scaling Elastic ... OpenJDK OpenJDK Load Balancer / Tomcat Tomcat Auto Scaling !  Deploy artefacts on S3 WAR !  Can add database S3 (RDS) Eberhard Wolff - @ewolff
  7. 7. Programming Model ! OpenJDK + Tomcat ! Standard Java Programming Model ! Also supported: Python, PHP, Ruby, Node.js (Linux), .NET (Windows Server 2008R2) Eberhard Wolff - @ewolff
  8. 8. Scaling / High Availability ! Servers automatically started ! Auto Scaling ! Failed servers will be restarted ! Servers can run in several data centers Eberhard Wolff - @ewolff
  9. 9. TOOLS Eberhard Wolff - @ewolff
  10. 10. Web Console ! Web UI ! Wizard to create new application ! + environment to run the application on Eberhard Wolff - @ewolff
  11. 11. DEMO: NEWS APPLICATION Eberhard Wolff - @ewolff
  12. 12. News Application Eberhard Wolff - @ewolff
  13. 13. News Application Originally by Bernhard Löwenstein Eberhard Wolff - @ewolff
  14. 14. News Application ✔ ✔ (✔) ✔ Eberhard Wolff - @ewolff
  15. 15. News Application ✔ ✔ ✖ Spring ✔ Eberhard Wolff - @ewolff
  16. 16. News Application Next slide Eberhard Wolff - @ewolff
  17. 17. Code Changes Took the Spring application Converted to MySQL <bean class="java.net.URI" id="dbUrl"> <constructor-arg value="#{systemEnvironment['JDBC_CONNECTION_STRING']}" /> </bean> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="url" value="#{ 'jdbc:mysql://' + @dbUrl.getHost() + " ':' + @dbUrl.getPort() + @dbUrl.getPath() }" /> <property name="username" value="#{ @dbUrl.getUserInfo().split(':')[0] }" /> <property name="password" value="#{ @dbUrl.getUserInfo().split(':')[1] }" /> </bean> Eberhard Wolff - @ewolff
  18. 18. Eberhard Wolff - @ewolff
  19. 19. Eberhard Wolff - @ewolff
  20. 20. Eberhard Wolff - @ewolff
  21. 21. Eberhard Wolff - @ewolff
  22. 22. Eberhard Wolff - @ewolff
  23. 23. Eberhard Wolff - @ewolff
  24. 24. Eberhard Wolff - @ewolff
  25. 25. Eberhard Wolff - @ewolff
  26. 26. Eberhard Wolff - @ewolff
  27. 27. Eberhard Wolff - @ewolff
  28. 28. Some tricks... ! Easy to create a new environment ! E.g. for testing, staging ! URLs can be swapped Eberhard Wolff - @ewolff
  29. 29. Some tricks... ! Deploy new version on new environment ! Switch URLs with production ! Zero downtime Eberhard Wolff - @ewolff
  30. 30. More tools ! All web console action also possible using SOAP Web Services ! Command Line tools Eberhard Wolff - @ewolff
  31. 31. Eclipse Plug In ! Manage all AWS resources (EC2, S3…) ! Manage Elastic Beanstalk server just like local servers Eberhard Wolff - @ewolff
  32. 32. Eclipse Plug In Eberhard Wolff - @ewolff
  33. 33. FLEXIBILITY Eberhard Wolff - @ewolff
  34. 34. Flexibility !  Tuning possible !  E.g. JVM parameters !  Load balancer configuration !  Can even use your own system images !  i.e. can add software, fine tune … !  Can log into running servers !  Session handling can be tuned !  Use EC2 if Elastic Beanstalk not flexible enough Eberhard Wolff - @ewolff
  35. 35. Configuration Files ! Part of the deployable artifact ! Declaratively install packages & libraries ! Configure software components ! Run commands ! Set environment variables ! Create users & groups Eberhard Wolff - @ewolff
  36. 36. PLATFORM AND OTHER SERVICES Eberhard Wolff - @ewolff
  37. 37. Platform !  Amazon Web Services !  Proven foundation !  Used for many other cloud plattforms !  …and by many users !  Includes monitoring !  No additional charges to EC2 / S3 !  Free tier (750 h/month for one year) available Eberhard Wolff - @ewolff
  38. 38. Other Services ! Amazon Relational Database Service ! Oracle, MySQL, MS SQL Server ! Diverse NoSQL solutions (e.g. DynamoDB, SimpleDB) ! Lots of AWS services (Map/Reduce, Caches, Search etc) ! Other services provided by 3rd parties Eberhard Wolff - @ewolff
  39. 39. Amazon Elastic Beanstalk: Highlights ! Proven foundation ! Standard Java stack (Tomcat + OpenJDK) ! World wide availability (incl. Europe) ! Lots of additional services Eberhard Wolff - @ewolff
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×