Accelerate Your Java Development on AWS (TLS301) | AWS re:Invent 2013

1,694 views

Published on

The AWS SDK for Java is an essential tool for any Java developer building applications that leverage AWS. See how easy the SDK is to use and learn new tips and tricks that will help you get more out of AWS. During this session, we develop a sample application, see how to use various SDK APIs, and take advantage of other tools, like the AWS Toolkit for Eclipse, to speed your development.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,694
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
42
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Accelerate Your Java Development on AWS (TLS301) | AWS re:Invent 2013

  1. 1. TLS301 Accelerate Your Java Development on AWS Jason Fulghum, AWS SDKs and Tools November 14, 2013 © 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified, or distributed in whole or in part without the express consent of Amazon.com, Inc.
  2. 2. Session Goal Learn how to develop AWS applications faster By taking advantage of… • High-level APIs
  3. 3. AWS SDK for Java • Easy, secure, and robust access to AWS • Open Source – Find us on GitHub! • Apache 2.0 licensed • Distributed through Maven
  4. 4. AWS SDK for Java
  5. 5. AWS Toolkit for Eclipse • Develop, Debug, and Deploy AWS applications • Open source
  6. 6. AWS Toolkit for Eclipse • Develop AWS Android applications • Deploy and manage AWS CloudFormation stacks
  7. 7. AWS Meme Generator
  8. 8. AWS Meme Generator
  9. 9. Developing the Meme Generator • • • • Creating AWS projects in Eclipse Working with Amazon S3 Working with Amazon DynamoDB Hosting web apps in AWS Elastic Beanstalk
  10. 10. Creating New AWS Java Projects Get your projects off to a fast start!
  11. 11. Amazon Simple Storage Service (S3) Unlimited storage in the cloud
  12. 12. Amazon S3 – Listing Objects ObjectListing page = s3.listObjects(myBucket, "photos/"); while (true) { for (S3ObjectSummary objectSummary : page.getObjectSummaries()) { System.out.println("Object: ” + summary); } if (page.isTruncated) page = s3.listNextBatchOfObjects(page); else break; }
  13. 13. Amazon S3 Iterators Using S3Objects or S3Versions: for (S3ObjectSummary summary : S3Objects.withPrefix(s3, myBucket, "photos/”)) { System.out.println("Object: ” + summary); }
  14. 14. Amazon S3 TransferManager • Asynchronous management of S3 data transfers • Simple interface • Client-side best practices and optimizations
  15. 15. Amazon S3 TransferManager TransferManager • upload • download • • • • • Download Transfer state description progress listeners wait ProgressListener • progressChanged Upload
  16. 16. Amazon DynamoDB A fully managed NoSQL database with fast and predictable performance
  17. 17. DynamoDB Object Mapper • Automatic data marshaling from POJOs • Scanning and querying your data • Batching data updates
  18. 18. S3Link • New type supported by the DynamoDB Mapper • References data stored in Amazon S3 • Simplifies working the referenced data S3Link DynamoDB Table Amazon S3 Bucket s3link.uploadFrom(mySourceFile); s3link.downloadTo(myDestFile); s3link.setAcl(myCustomAcl);
  19. 19. AWS Elastic Beanstalk Quickly deploy and manage web applications in the AWS cloud
  20. 20. AWS Elastic Beanstalk Concepts • Applications – The projects you’re building • Application Versions – Uploads of code for your project • Environments – A running application: a specific application version plus all the infrastructure to run your application
  21. 21. More to Explore • Follow the AWS Java Developer Blog – http://java.awsblog.com – Twitter: @awsforjava • Download the AWS SDK for Java – http://aws.amazon.com/sdkforjava • Install the AWS Toolkit for Eclipse – http://aws.amazon.com/eclipse • Find us on GitHub – https://github.com/aws
  22. 22. Please give us your feedback on this presentation TLS301 As a thank you, we will select prize winners daily for completed surveys!

×