SlideShare a Scribd company logo
„Cloud-Native“ Java (Kotlin)
Applications & Cloud Foundry
Spring Boot Spring Cloud
https://projects.spring.io/spring-boot/ https://projects.spring.io/spring-cloud/
Cloud Foundry Stuttgart Meetup - 26.4.2017
Spring Cloud
Spring IO Platform
Spring Boot
Spring Cloud Config Spring Cloud Netflix
Spring Cloud for
CloudFoundry
Spring Cloud Bus
Spring Cloud Security
Spring Cloud Data FlowSpring Cloud Sleuth
Spring Cloud Stream
Spring Cloud TaskSpring Cloud Connectors
Spring Cloud ContractSpring Cloud
for AWS
Spring Cloud Function
https://github.com/markfisher/spring-cloud-function Spring Cloud Gateway
https://github.com/spring-cloud-incubator/spring-
cloud-gatewaySpring Cloud Pipelines
https://12factor.net/
„Cloud-Native“
Java Applications
buildscript {
ext {
springBootVersion = '1.5.3.RELEASE'
}
…
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
Spring Boot
II. Dependencies
Explicitly declare and isolate dependencies
http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#appendix-dependency-versions
$ java -jar helloworld-0.0.1-SNAPSHOT.jar
$ ./helloworld-0.0.1-SNAPSHOT.jar
…
… --- [main] HelloworldApplication : Started HelloworldApplication in 3.801 seconds (JVM running for 4.403)
$ <Ctrl-C>
…Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext
…Stopping beans in phase 0
…Unregistering JMX-exposed beans on shutdown
$ ./helloworld-0.0.1-SNAPSHOT.jar
…
… --- [main] HelloworldApplication : Started HelloworldApplication in 3.801 seconds (JVM running for 4.403)
…
Spring Boot
IX. Disposability
Maximize robustness with fast startup and graceful shutdown
Spring Boot Actuator
Monitor & manage via HTTP, JMX, SSH, Telnet
Auditing, health and metrics
 CloudFoundry integration
Spring Boot
Transparent about state / health
http://start.spring.io
https://www.cloudfoundry.org/
cf push
❤
Here is my source code
Run it on the cloud for me
I do not care how
cf push my-app …
“Here is my source code
Run it on the cloud for me
I do not care how!”
ONSI FAKHOURI (VP Cloud R&D, Pivotal)
https://network.pivotal.io/products/pcfdev
https://network.pivotal.io/products/pcfdev
https://github.com/cloudfoundry/cli
CloudFoundry Command Line Interface
$ cf login -a api.run.pivotal.io -u andreas.falk@novatec-gmbh.de -p xxx -s development
API endpoint: api.run.pivotal.io
Authenticating...
OK
API endpoint: https://api.run.pivotal.io (API version: 2.78.0)
User: andreas.falk@novatec-gmbh.de
Org: NT-Labs
Space: development
$ cf login -a api.local.pcfdev.io -u admin -p admin -o pcfdev-org -s pcfdev-space
…
Elastic
Runtime
Services
Buildpack Monitoring
cf push
IV. Backing services
Treat backing services as attached resources
Microservice
Service
Service Binding
Credentials
$ cf marketplace
…
$ cf create-service mysql 1gb mysqldb
…
$ cf bind-service myapp mysqldb
…
$ cf restage myapp
Spring Cloud Config
Externalize configuration to git repository
Refresh application configuration without restart
Store encrypted sensible configuration data
Spring Cloud
https://cloud.spring.io/spring-cloud-config/
III. Config
Store config in the environment
Spring Cloud Sleuth
Distributed tracing
PCF Metrics
Logs, metrics and event data from apps
Trace explorer
Spring Cloud
https://content.pivotal.io/blog/distributed-tracing-in-pcf-metrics-breakthrough-insight-for-microservices
XI. Logs
Treat logs as event streams
https://docs.pivotal.io/pcf-metrics/1-3/index.html
https://cloud.spring.io/spring-cloud-sleuth
CLOUD NATIVE SECURITY
Rotate
Repair
Repave
(Justin Smith)
Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development
Don‘t hesitate to ask: andreas.falk@novatec-gmbh.de
Questions?
The End

More Related Content

PDF
Universal JavaScript - Frontend United Athens 2017
PPTX
你不可不知的 ASP.NET Core 3 全新功能探索 (.NET Conf 2019)
PDF
Java Microservices with Spring Boot and Spring Cloud - Denver JUG 2019
PDF
Kubernetes x PaaS – コンテナアプリケーションのNoOpsへの挑戦
PDF
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
PPTX
.NET Overview & Roadmap
PDF
Yunong Xiao - The Paved PaaS to Microservices - Codemotion Milan 2017
PDF
Atmosphere Conference 2015: Do you think you're doing microservices?
Universal JavaScript - Frontend United Athens 2017
你不可不知的 ASP.NET Core 3 全新功能探索 (.NET Conf 2019)
Java Microservices with Spring Boot and Spring Cloud - Denver JUG 2019
Kubernetes x PaaS – コンテナアプリケーションのNoOpsへの挑戦
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
.NET Overview & Roadmap
Yunong Xiao - The Paved PaaS to Microservices - Codemotion Milan 2017
Atmosphere Conference 2015: Do you think you're doing microservices?

What's hot (20)

PDF
Choose Your Own Adventure with JHipster & Kubernetes - Denver JUG 2020
PDF
[Spring Camp 2018] 11번가 Spring Cloud 기반 MSA로의 전환 : 지난 1년간의 이야기
PDF
Introduction to Spring WebFlux #jsug #sf_a1
PDF
ServiceWorkerとES6 Modules時代のTypescript開発考察
PDF
Debug production server by counter
PPTX
Behind modern concurrency primitives
PPTX
DockerCon EU 2017 - Docker on Windows workshop
PPTX
Setup docker on existing application
PPTX
ContainerSched 2017: Why Containers Will Take Over the World
PDF
Building ‘Bootiful’ microservices cloud
PPTX
Linuxing in London: Docker Intro Workshop
PPTX
Xpirit MeetUp: Docker Windows Workshop
PPTX
If Hemingway Wrote JavaDocs
PPTX
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
PDF
Howto Create & Run zf2skeleton Apps with PHP's Built-in Webserver
PDF
From Spring Boot 2.2 to Spring Boot 2.3 #jsug
PPTX
Dev Ops 101
PPTX
Gameaways
PPTX
2015 09-18-jawsug hpc-#1
PPTX
Spring Cloud Netflixを使おう #jsug
Choose Your Own Adventure with JHipster & Kubernetes - Denver JUG 2020
[Spring Camp 2018] 11번가 Spring Cloud 기반 MSA로의 전환 : 지난 1년간의 이야기
Introduction to Spring WebFlux #jsug #sf_a1
ServiceWorkerとES6 Modules時代のTypescript開発考察
Debug production server by counter
Behind modern concurrency primitives
DockerCon EU 2017 - Docker on Windows workshop
Setup docker on existing application
ContainerSched 2017: Why Containers Will Take Over the World
Building ‘Bootiful’ microservices cloud
Linuxing in London: Docker Intro Workshop
Xpirit MeetUp: Docker Windows Workshop
If Hemingway Wrote JavaDocs
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
Howto Create & Run zf2skeleton Apps with PHP's Built-in Webserver
From Spring Boot 2.2 to Spring Boot 2.3 #jsug
Dev Ops 101
Gameaways
2015 09-18-jawsug hpc-#1
Spring Cloud Netflixを使おう #jsug
Ad

Similar to Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development (20)

PDF
今すぐ始めるCloud Foundry #hackt #hackt_k
PDF
Simplify Cloud Applications using Spring Cloud
PPTX
Cloud Native Applications for Cloud Foundry using Spring Cloud : A Workshop
PDF
Spring Boot & Spring Cloud on PAS- Nate Schutta (2/2)
PDF
SpringBoot and Spring Cloud Service for MSA
PPTX
Microservices with kubernetes @190316
PPTX
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
PPTX
Running your Spring Apps in the Cloud Javaone 2014
PPTX
Spring Boot & Spring Cloud on k8s and PCF
PDF
The Beginner’s Guide To Spring Cloud
PDF
Cloud Native Microservices with Spring Cloud
PDF
Spring cloud
PDF
quickguide-einnovator-8-spring-cloud
PDF
The Cloud Foundry Story on OpenStack
PDF
Cloud Native Java with Spring Cloud Services
PDF
Cloud Native Java Designing Resilient Systems with Spring Boot Spring Cloud a...
PDF
Cloud Native Microservices with Spring Cloud
PDF
Why PCF is the best platform for Spring Boot
PPTX
Building REST APIs with Spring Boot and Spring Cloud
PDF
quickguide-einnovator-4-cloudfoundry
今すぐ始めるCloud Foundry #hackt #hackt_k
Simplify Cloud Applications using Spring Cloud
Cloud Native Applications for Cloud Foundry using Spring Cloud : A Workshop
Spring Boot & Spring Cloud on PAS- Nate Schutta (2/2)
SpringBoot and Spring Cloud Service for MSA
Microservices with kubernetes @190316
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
Running your Spring Apps in the Cloud Javaone 2014
Spring Boot & Spring Cloud on k8s and PCF
The Beginner’s Guide To Spring Cloud
Cloud Native Microservices with Spring Cloud
Spring cloud
quickguide-einnovator-8-spring-cloud
The Cloud Foundry Story on OpenStack
Cloud Native Java with Spring Cloud Services
Cloud Native Java Designing Resilient Systems with Spring Boot Spring Cloud a...
Cloud Native Microservices with Spring Cloud
Why PCF is the best platform for Spring Boot
Building REST APIs with Spring Boot and Spring Cloud
quickguide-einnovator-4-cloudfoundry
Ad

More from Andreas Falk (6)

PDF
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
PDF
Sicher in die Cloud mit Angular und Spring Boot (Karlsruher Entwicklertag 2017)
PDF
Manage distributed configuration and secrets with spring cloud and vault (Spr...
PDF
JAX 2017 - Sicher in die Cloud mit Angular und Spring Boot
PDF
OWASP German Day 2016 - Sicher in die Cloud mit Angular 2 und Spring Boot
PDF
OWASP AppSecEu 2016 Rome - Building secure cloud native apps
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
Sicher in die Cloud mit Angular und Spring Boot (Karlsruher Entwicklertag 2017)
Manage distributed configuration and secrets with spring cloud and vault (Spr...
JAX 2017 - Sicher in die Cloud mit Angular und Spring Boot
OWASP German Day 2016 - Sicher in die Cloud mit Angular 2 und Spring Boot
OWASP AppSecEu 2016 Rome - Building secure cloud native apps

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
A Presentation on Artificial Intelligence
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
MYSQL Presentation for SQL database connectivity
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
cuic standard and advanced reporting.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Modernizing your data center with Dell and AMD
PDF
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Monthly Chronicles - July 2025
Review of recent advances in non-invasive hemoglobin estimation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.
A Presentation on Artificial Intelligence
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
The AUB Centre for AI in Media Proposal.docx
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
The Rise and Fall of 3GPP – Time for a Sabbatical?
Modernizing your data center with Dell and AMD
Electronic commerce courselecture one. Pdf

Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development

  • 1. „Cloud-Native“ Java (Kotlin) Applications & Cloud Foundry Spring Boot Spring Cloud https://projects.spring.io/spring-boot/ https://projects.spring.io/spring-cloud/ Cloud Foundry Stuttgart Meetup - 26.4.2017
  • 2. Spring Cloud Spring IO Platform Spring Boot Spring Cloud Config Spring Cloud Netflix Spring Cloud for CloudFoundry Spring Cloud Bus Spring Cloud Security Spring Cloud Data FlowSpring Cloud Sleuth Spring Cloud Stream Spring Cloud TaskSpring Cloud Connectors Spring Cloud ContractSpring Cloud for AWS Spring Cloud Function https://github.com/markfisher/spring-cloud-function Spring Cloud Gateway https://github.com/spring-cloud-incubator/spring- cloud-gatewaySpring Cloud Pipelines
  • 4. buildscript { ext { springBootVersion = '1.5.3.RELEASE' } … } dependencies { compile('org.springframework.boot:spring-boot-starter-actuator') compile('org.springframework.boot:spring-boot-starter-web') testCompile('org.springframework.boot:spring-boot-starter-test') } Spring Boot II. Dependencies Explicitly declare and isolate dependencies http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#appendix-dependency-versions
  • 5. $ java -jar helloworld-0.0.1-SNAPSHOT.jar $ ./helloworld-0.0.1-SNAPSHOT.jar … … --- [main] HelloworldApplication : Started HelloworldApplication in 3.801 seconds (JVM running for 4.403) $ <Ctrl-C> …Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext …Stopping beans in phase 0 …Unregistering JMX-exposed beans on shutdown $ ./helloworld-0.0.1-SNAPSHOT.jar … … --- [main] HelloworldApplication : Started HelloworldApplication in 3.801 seconds (JVM running for 4.403) … Spring Boot IX. Disposability Maximize robustness with fast startup and graceful shutdown
  • 6. Spring Boot Actuator Monitor & manage via HTTP, JMX, SSH, Telnet Auditing, health and metrics  CloudFoundry integration Spring Boot Transparent about state / health
  • 9. cf push ❤ Here is my source code Run it on the cloud for me I do not care how cf push my-app … “Here is my source code Run it on the cloud for me I do not care how!” ONSI FAKHOURI (VP Cloud R&D, Pivotal)
  • 13. $ cf login -a api.run.pivotal.io -u andreas.falk@novatec-gmbh.de -p xxx -s development API endpoint: api.run.pivotal.io Authenticating... OK API endpoint: https://api.run.pivotal.io (API version: 2.78.0) User: andreas.falk@novatec-gmbh.de Org: NT-Labs Space: development $ cf login -a api.local.pcfdev.io -u admin -p admin -o pcfdev-org -s pcfdev-space …
  • 15. IV. Backing services Treat backing services as attached resources Microservice Service Service Binding Credentials
  • 16. $ cf marketplace … $ cf create-service mysql 1gb mysqldb … $ cf bind-service myapp mysqldb … $ cf restage myapp
  • 17. Spring Cloud Config Externalize configuration to git repository Refresh application configuration without restart Store encrypted sensible configuration data Spring Cloud https://cloud.spring.io/spring-cloud-config/ III. Config Store config in the environment
  • 18. Spring Cloud Sleuth Distributed tracing PCF Metrics Logs, metrics and event data from apps Trace explorer Spring Cloud https://content.pivotal.io/blog/distributed-tracing-in-pcf-metrics-breakthrough-insight-for-microservices XI. Logs Treat logs as event streams https://docs.pivotal.io/pcf-metrics/1-3/index.html https://cloud.spring.io/spring-cloud-sleuth
  • 21. Don‘t hesitate to ask: andreas.falk@novatec-gmbh.de Questions? The End