Slide 1

Slide 1 text

© 2016 Pivotal Awesome Tools to Level Up Your Spring Cloud Architecture Andreas Evers, Principal Consultant, Ordina

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

ZUUL EUREKA CONFIG SERVER SPRING BOOT µS HYSTRIX DASHBOARD TURBINE CONFIG BUS DATA FLOW ZIPKIN (SLEUTH) ATLAS TASK STREAM

Slide 5

Slide 5 text

ZUUL EUREKA CONFIG SERVER SPRING BOOT µS HYSTRIX DASHBOARD TURBINE SPRING BOOT ADMIN MICROSERVICES DASHBOARD SPINNAKER CONFIG BUS DATA FLOW ZIPKIN (SLEUTH) ATLAS TASK PROMETHEUS CONTRACT REST DOCS SONAR / OWASP / … WIREMOCK TROUBLEMAKER ELK STREAM SABOTEUR

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

https://ordina-jworks.github.io/monitoring/2016/09/23/Monitoring-with-Prometheus.html

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

• Fairly simple to integrate with Pivotal Cloud Foundry • Use a Prometheus exporter • Scrape metrics for PCF deployments, but also BOSH metrics

Slide 17

Slide 17 text

Graphite InfluxDB OpenTSDB NewRelic AppDynamics https://prometheus.io/docs/introduction/comparison/

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Modelling Microservices at Spotify by Petter Måhlén https://www.youtube.com/watch?v=7XDA044tl8k

Slide 23

Slide 23 text

What’s the compliancy & maturity of the services? How can I accommodate recruitment & knowledge sharing? What is the technical debt of the services? Which teams do I need to chase? Are budget & priorities in line with the architectural goals? How do I manage change in a DevOps organisation? “

Slide 24

Slide 24 text

What functionality can I reuse? Which resources are exposed by what services? Which events & messages are sent back and forth? Which services are impacted by a change? How does a functional flow travel through the layers of the architecture? What is coming up, & can I define the future state of the ecosystem? “

Slide 25

Slide 25 text

Which versions are deployed where? Are my deployments successful? Which versions do my dependencies have? Where can I find everything related to my services? “

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

SABOTEUR WIREMOCK

Slide 34

Slide 34 text

HTTP 500 Random Data Malformed Data Empty Response Total Network Partition Remote Service Not Listening to Port Packet Loss TCP Connection Timeout (~ firewall)

Slide 35

Slide 35 text

Six principles for building fault tolerant microservices on the JVM by Christopher Batey https://www.youtube.com/watch?v=dKWNZnuZhd0

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Returns 10 properties Uses property 1-2

Slide 40

Slide 40 text

Uses property 1-2 Uses property 3-4 Uses property 3-5 Uses property 4-5 Returns 10 properties

Slide 41

Slide 41 text

Returns 10 properties Uses property 1-2 Consumer 1 uses property 1-2 PR

Slide 42

Slide 42 text

Returns 10 properties Uses property 1-2

Slide 43

Slide 43 text

Sonarqube / OWASP / FindSecBugs / …

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

generated snippets manually written template generated HTML integration tests

Slide 47

Slide 47 text

interface CompactView{}; class Car { @JsonView(CompactView.class) private String brand; private int doors; ... } @RestController class CarController { @JsonView(CompactView.class) @GetMapping("/car") public String getCar() { return new Car("BMW", 5); } }

Slide 48

Slide 48 text

interface V1{}; interface V2{}; class Car { @JsonView(V1.class) private String brand; @JsonView(V2.class) private int doors; ... }

Slide 49

Slide 49 text

@RestController class CarController { @GetMapping(path = "/car", produces = "application/vnd.pvt.car.v1+json") @JsonView(V1.class) public String getCarV1() { return new Car("BMW", 5); } @GetMapping(path = "/car", produces = "application/vnd.pvt.car.v2+json") @JsonView(V2.class) public String getCarV2() { return new Car("BMW", 5); } }

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

AWS re:Invent 2016: Multi-Region Delivery Netflix Style (DEV311) by Andy Glover https://www.youtube.com/watch?v=1HiilTXQo4w

Slide 55

Slide 55 text

ZUUL EUREKA CONFIG SERVER SPRING BOOT µS HYSTRIX DASHBOARD TURBINE SPRING BOOT ADMIN MICROSERVICES DASHBOARD SPINNAKER CONFIG BUS DATA FLOW ZIPKIN (SLEUTH) ATLAS TASK PROMETHEUS CONTRACT REST DOCS SONAR / OWASP / … WIREMOCK TROUBLEMAKER ELK STREAM SABOTEUR

Slide 56

Slide 56 text

ZUUL SPRING CLOUD SERVICES SPRING CLOUD SERVICES SPRING BOOT µS SPRING CLOUD SERVICES SPRING CLOUD SERVICES PCF APPS MANAGER MICROSERVICES DASHBOARD CONCOURSE, SPINNAKER CONFIG BUS DATA FLOW ZIPKIN (SLEUTH) ATLAS TASK PCF METRICS* CONTRACT REST DOCS SONAR / OWASP / … WIREMOCK TROUBLEMAKER PCF LOG SEARCH PCF METRICS* STREAM SABOTEUR

Slide 57

Slide 57 text

• Cloud Foundry Service Broker / BOSH release • NetflixOSS and more as native managed PCF services • Simple install and configure NetflixOSS • Reduce setup time and cost across many environments • Simple to operate, upgrade with zero downtime • PCF managed • dramatically lower ops requirement • Security • OAUTH2, HTTPS, PCF UAA integration, Role based access control SPRING CLOUD SERVICES FOR PCF

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

59 Twitter: twitter.com/andreasevers Tech blog: ordina-jworks.github.io Demo environment: TVH: www.tvh.com