SlideShare a Scribd company logo
Quickly Build Spring Boot Apps to
Consume Public Cloud Services
Colin Stevenson - Pivotal Partner Architect, @cwsteve
Prasad Bopardikar - Pivotal Partner Architect, @PrasadB26
1
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
Wait… this seems familiar
2
Thank you!
Microsoft and Google
Java and Service Broker Teams
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
We have service brokers!
4
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
What’s in the box?
5
BigTable
BigQuery
Cloud SQL
Cloud Storage
Cloud Pub/Sub
Machine Learning
Spanner
StackDriver Debugger
StackDriver Trace
SQL DB
BLOB Storage
CosmosDB
Azure Redis Cache
Service Bus
Event Hubs
MySQL
PostgreSQL
RDS PostgreSQL
RDS MySQL
RDS SQL Server
RDS Oracle Database
RDS MariaDB
S3
Aurora
DynamoDB
SQS
EMR (coming soon)
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
What about vendor lock in?
• Open Service Broker API to the rescue!
• Deploy the brokers to any Cloud Foundry deployment anywhere.
• Consider the benefits of managed cloud services.
• Do you really want to administer that highly available database?
• Don’t let Perfect be the enemy of Good
• No analysis paralysis!
6
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
We have service creds – now what?
7
Who has parsed VCAP Services
without Spring Boot?
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
The “hard way”
1. Write code to read VCAP_SERVICES credentials from the environment
2. Add JSON dependencies and parse the VCAP_SERVICES JSON to extract
the credential values
3. Add the dependencies for the libraries provided by the service provider for the
type of service.
4. Write code to instantiate the appropriate beans. Examples:
• com.google.cloud.storage.Storage
• com.microsoft.azure.documentdb.DocumentClient
9
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
Spring Boot to the Rescue!
10
Demo Time!
Spring Boot Starters Demo App
Azure Storage Container
App
Gateway
Pivotal Cloud Foundry
Demo App
GCP Storage Bucket
Upload image
Upload image to Azure storage
Upload image to GCP storage
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
The “hard way”
1. Write code to read VCAP_SERVICES credentials from the environment
2. Add JSON dependencies and parse the VCAP_SERVICES JSON to extract
the credential values
3. Add the dependencies for the libraries provided by the service provider for the
type of service.
4. Write code to instantiate the appropriate beans. Examples:
• com.google.cloud.storage.Storage
• com.microsoft.azure.documentdb.DocumentClient
13
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
14
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
Key Takeaways
• Use Spring Boot!!!
• Use the Service Brokers wherever you can – the Brokers
are evolving.
• If you are writing CF apps to consume Azure/GCP services,
use the Starters
15
Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
Resources
https://github.com/Microsoft/azure-spring-boot
https://github.com/spring-cloud/spring-cloud-gcp
https://seroter.wordpress.com/2017/11/02/trying-out-microsofts-spring-boot-
starters/
16
Learn More. Stay Connected.
Check out all the Starters, provide feedback!
17
#springone@s1p

More Related Content

PDF
Enable Authentication and Authorization with Azure Active Directory and Sprin...
PDF
Rapid Development with Azure Spring Cloud
PPTX
Aws amity university_presentation_oct-31-2020
PDF
Spring Boot Tutorial | Microservices Spring Boot | Microservices Architecture...
PDF
Ruby on Rails and AWS Elastic Beanstalk
PDF
Building Faster With Your Team's UI Kit
PDF
Modernize DotNet Apps With Azure
PDF
Progressive Web Apps by Millicent Convento
Enable Authentication and Authorization with Azure Active Directory and Sprin...
Rapid Development with Azure Spring Cloud
Aws amity university_presentation_oct-31-2020
Spring Boot Tutorial | Microservices Spring Boot | Microservices Architecture...
Ruby on Rails and AWS Elastic Beanstalk
Building Faster With Your Team's UI Kit
Modernize DotNet Apps With Azure
Progressive Web Apps by Millicent Convento

What's hot (14)

PPTX
Basic architecuture and operation concept of Backlog and Cacoo
PDF
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
PPT
Continuous integration
PDF
Spring Boot & Actuators
PDF
What's New in AppFuse 2.0
PDF
Improving Android app testing with Appium and Sauce Labs
PPTX
ACDKOCHI19 - Medlife's journey on AWS from ZERO Orders to 6 digits mark
PPTX
ACDKOCHI19 - CI / CD using AWS Developer Tools
PPTX
Getting Started with PaaS
PDF
Easy Continuous Deployment You Can Trust (Webinar)
PDF
Selenium and Sauce Labs
PPTX
AWS Community Day, Chennai - 2019
PDF
Automating Hybrid Applications with Appium
PPTX
Next level of Appium
Basic architecuture and operation concept of Backlog and Cacoo
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
Continuous integration
Spring Boot & Actuators
What's New in AppFuse 2.0
Improving Android app testing with Appium and Sauce Labs
ACDKOCHI19 - Medlife's journey on AWS from ZERO Orders to 6 digits mark
ACDKOCHI19 - CI / CD using AWS Developer Tools
Getting Started with PaaS
Easy Continuous Deployment You Can Trust (Webinar)
Selenium and Sauce Labs
AWS Community Day, Chennai - 2019
Automating Hybrid Applications with Appium
Next level of Appium
Ad

Similar to Quickly Build Spring Boot Applications to Consume Public Cloud Services (20)

PDF
Extending the Platform with Spring Boot and Cloud Foundry
PDF
Extending the Platform
PDF
Cloud Native Java with Spring Cloud Services
PDF
Spring Boot & Spring Cloud on Pivotal Application Service
PPTX
Spring on PAS - Fabio Marinelli
PDF
Pivotal spring boot-cloud workshop
PDF
How to build Spring services for Cloud Native platforms using the Open Servic...
PDF
Cloud Native Java with Spring Cloud Services
PDF
Cloud Native Java with Spring Cloud Services
PDF
Supercharge Your Spring Boot Apps!
PDF
Using Pivotal Cloud Foundry with Google’s BigQuery and Cloud Vision API
PDF
The Beginner’s Guide To Spring Cloud
PDF
Power of Google Cloud Platform with Spring Cloud GCP
PDF
Pivotal microservices spring_pcf_skillsmatter.pptx
PPTX
Spring Boot & Spring Cloud Apps on Pivotal Application Service - Daniel Lavoie
PDF
Spring and Pivotal Application Service - SpringOne Tour - Boston
PDF
Cloud Native Java Microservices
PPTX
How to Build More Secure Service Brokers
PDF
To Microservices and Beyond
PDF
CredHub and Secure Credential Management
Extending the Platform with Spring Boot and Cloud Foundry
Extending the Platform
Cloud Native Java with Spring Cloud Services
Spring Boot & Spring Cloud on Pivotal Application Service
Spring on PAS - Fabio Marinelli
Pivotal spring boot-cloud workshop
How to build Spring services for Cloud Native platforms using the Open Servic...
Cloud Native Java with Spring Cloud Services
Cloud Native Java with Spring Cloud Services
Supercharge Your Spring Boot Apps!
Using Pivotal Cloud Foundry with Google’s BigQuery and Cloud Vision API
The Beginner’s Guide To Spring Cloud
Power of Google Cloud Platform with Spring Cloud GCP
Pivotal microservices spring_pcf_skillsmatter.pptx
Spring Boot & Spring Cloud Apps on Pivotal Application Service - Daniel Lavoie
Spring and Pivotal Application Service - SpringOne Tour - Boston
Cloud Native Java Microservices
How to Build More Secure Service Brokers
To Microservices and Beyond
CredHub and Secure Credential Management
Ad

More from VMware Tanzu (20)

PDF
Spring into AI presented by Dan Vega 5/14
PDF
What AI Means For Your Product Strategy And What To Do About It
PDF
Make the Right Thing the Obvious Thing at Cardinal Health 2023
PPTX
Enhancing DevEx and Simplifying Operations at Scale
PDF
Spring Update | July 2023
PPTX
Platforms, Platform Engineering, & Platform as a Product
PPTX
Building Cloud Ready Apps
PDF
Spring Boot 3 And Beyond
PDF
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
PDF
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
PDF
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
PPTX
tanzu_developer_connect.pptx
PDF
Tanzu Virtual Developer Connect Workshop - French
PDF
Tanzu Developer Connect Workshop - English
PDF
Virtual Developer Connect Workshop - English
PDF
Tanzu Developer Connect - French
PDF
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
PDF
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
PDF
SpringOne Tour: The Influential Software Engineer
PDF
SpringOne Tour: Domain-Driven Design: Theory vs Practice
Spring into AI presented by Dan Vega 5/14
What AI Means For Your Product Strategy And What To Do About It
Make the Right Thing the Obvious Thing at Cardinal Health 2023
Enhancing DevEx and Simplifying Operations at Scale
Spring Update | July 2023
Platforms, Platform Engineering, & Platform as a Product
Building Cloud Ready Apps
Spring Boot 3 And Beyond
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
tanzu_developer_connect.pptx
Tanzu Virtual Developer Connect Workshop - French
Tanzu Developer Connect Workshop - English
Virtual Developer Connect Workshop - English
Tanzu Developer Connect - French
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
SpringOne Tour: The Influential Software Engineer
SpringOne Tour: Domain-Driven Design: Theory vs Practice

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation theory and applications.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
sap open course for s4hana steps from ECC to s4
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.
Teaching material agriculture food technology
Electronic commerce courselecture one. Pdf
Review of recent advances in non-invasive hemoglobin estimation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Programs and apps: productivity, graphics, security and other tools
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing

Quickly Build Spring Boot Applications to Consume Public Cloud Services

  • 1. Quickly Build Spring Boot Apps to Consume Public Cloud Services Colin Stevenson - Pivotal Partner Architect, @cwsteve Prasad Bopardikar - Pivotal Partner Architect, @PrasadB26 1
  • 2. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Wait… this seems familiar 2
  • 3. Thank you! Microsoft and Google Java and Service Broker Teams
  • 4. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ We have service brokers! 4
  • 5. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What’s in the box? 5 BigTable BigQuery Cloud SQL Cloud Storage Cloud Pub/Sub Machine Learning Spanner StackDriver Debugger StackDriver Trace SQL DB BLOB Storage CosmosDB Azure Redis Cache Service Bus Event Hubs MySQL PostgreSQL RDS PostgreSQL RDS MySQL RDS SQL Server RDS Oracle Database RDS MariaDB S3 Aurora DynamoDB SQS EMR (coming soon)
  • 6. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What about vendor lock in? • Open Service Broker API to the rescue! • Deploy the brokers to any Cloud Foundry deployment anywhere. • Consider the benefits of managed cloud services. • Do you really want to administer that highly available database? • Don’t let Perfect be the enemy of Good • No analysis paralysis! 6
  • 7. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ We have service creds – now what? 7
  • 8. Who has parsed VCAP Services without Spring Boot?
  • 9. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ The “hard way” 1. Write code to read VCAP_SERVICES credentials from the environment 2. Add JSON dependencies and parse the VCAP_SERVICES JSON to extract the credential values 3. Add the dependencies for the libraries provided by the service provider for the type of service. 4. Write code to instantiate the appropriate beans. Examples: • com.google.cloud.storage.Storage • com.microsoft.azure.documentdb.DocumentClient 9
  • 10. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Boot to the Rescue! 10
  • 12. Spring Boot Starters Demo App Azure Storage Container App Gateway Pivotal Cloud Foundry Demo App GCP Storage Bucket Upload image Upload image to Azure storage Upload image to GCP storage
  • 13. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ The “hard way” 1. Write code to read VCAP_SERVICES credentials from the environment 2. Add JSON dependencies and parse the VCAP_SERVICES JSON to extract the credential values 3. Add the dependencies for the libraries provided by the service provider for the type of service. 4. Write code to instantiate the appropriate beans. Examples: • com.google.cloud.storage.Storage • com.microsoft.azure.documentdb.DocumentClient 13
  • 14. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 14
  • 15. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Key Takeaways • Use Spring Boot!!! • Use the Service Brokers wherever you can – the Brokers are evolving. • If you are writing CF apps to consume Azure/GCP services, use the Starters 15
  • 16. Unless otherwise indicated, these slides are © 2013 -2016 Piv otal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Resources https://github.com/Microsoft/azure-spring-boot https://github.com/spring-cloud/spring-cloud-gcp https://seroter.wordpress.com/2017/11/02/trying-out-microsofts-spring-boot- starters/ 16
  • 17. Learn More. Stay Connected. Check out all the Starters, provide feedback! 17 #springone@s1p