Mais conteúdo relacionado Semelhante a [DO07] マイクロサービスに必要な技術要素はすべて Spring Cloud にある (20) Mais de de:code 2017 (20) [DO07] マイクロサービスに必要な技術要素はすべて Spring Cloud にある2. • Toshiaki Maki (@making)
https://blog.ik.am
• Sr. Solutions Architect @Pivotal
• Spring Framework
• Cloud Foundry
5. Application coordination boilerplate patterns
Application configuration boilerplate patterns
Enterprise Java application boilerplate patterns
Runtime Platform, Infrastructure Automation boilerplate
patterns (provision, deploy, secure, log, data services, etc.)
CLOU
D
DESKTOP
Spring Boot
Spring Framework
Pivotal Cloud Foundry
Spring Cloud
Microservice operation boilerplate patterns
(Config Server, Service Discovery, Circuit Breaker)
SERVICES
Spring Cloud Services
今日の範囲
8. Application coordination boilerplate patterns
Application configuration boilerplate patterns
Enterprise Java application boilerplate patterns
Runtime Platform, Infrastructure Automation boilerplate
patterns (provision, deploy, secure, log, data services, etc.)
CLOU
D
DESKTOP
Spring Boot
Spring Framework
Pivotal Cloud Foundry
Spring Cloud
Microservice operation boilerplate patterns
(Config Server, Service Discovery, Circuit Breaker)
SERVICES
Spring Cloud Services
33. public class OrderService {
DiscoveryClient discoveryClient;
public void order() {
List<ServiceInstance> list =
discoveryClient.getInstances("payment-service");
URL paymentUrl = list.get(0).getUri()
// ...
}
}
47. @HystrixCommand(fallbackMethod = "getTop10")
public Recommendations getRecommendation(String username) {
return restTemplate.getForObject("http://recommendation?u={u}",
username, Recommendations.class);
}
public Recommendations getTop10(String username) {
return recommendationsCache.getTop10();
}
68. 2017-02-26 11:15:47.561 INFO [service1,2485ec27856c56f4,2485ec27856c56f4,true] 68058 --- [nio-
8081-exec-1] i.s.c.sleuth.docs.service1.Application : Hello from service1. Calling service2
2017-02-26 11:15:47.710 INFO [service2,2485ec27856c56f4,9aa10ee6fbde75fa,true] 68059 --- [nio-
8082-exec-1] i.s.c.sleuth.docs.service2.Application : Hello from service2. Calling service3
and then service4
2017-02-26 11:15:47.895 INFO [service3,2485ec27856c56f4,1210be13194bfe5,true] 68060 --- [nio-
8083-exec-1] i.s.c.sleuth.docs.service3.Application : Hello from service3
2017-02-26 11:15:47.924 INFO [service2,2485ec27856c56f4,9aa10ee6fbde75fa,true] 68059 --- [nio-
8082-exec-1] i.s.c.sleuth.docs.service2.Application : Got response from service3 [Hello from
service3]
2017-02-26 11:15:48.134 INFO [service4,2485ec27856c56f4,1b1845262ffba49d,true] 68061 --- [nio-
8084-exec-1] i.s.c.sleuth.docs.service4.Application : Hello from service4
2017-02-26 11:15:48.156 INFO [service2,2485ec27856c56f4,9aa10ee6fbde75fa,true] 68059 --- [nio-
8082-exec-1] i.s.c.sleuth.docs.service2.Application : Got response from service4 [Hello from
service4]
2017-02-26 11:15:48.182 INFO [service1,2485ec27856c56f4,2485ec27856c56f4,true] 68058 --- [nio-
8081-exec-1] i.s.c.sleuth.docs.service1.Application : Got response from service2 [Hello from
service2, response from service3 [Hello from service3] and from service4 [Hello from
service4]]
82. Application coordination boilerplate patterns
Application configuration boilerplate patterns
Enterprise Java application boilerplate patterns
Runtime Platform, Infrastructure Automation boilerplate
patterns (provision, deploy, secure, log, data services, etc.)
CLOU
D
DESKTOP
Spring Boot
Spring Framework
Pivotal Cloud Foundry
Spring Cloud
Microservice operation boilerplate patterns
(Config Server, Service Discovery, Circuit Breaker)
SERVICES
Spring Cloud Services
87. Application coordination boilerplate patterns
Application configuration boilerplate patterns
Enterprise Java application boilerplate patterns
Runtime Platform, Infrastructure Automation boilerplate
patterns (provision, deploy, secure, log, data services, etc.)
CLOU
D
DESKTOP
Spring Boot
Spring Framework
Pivotal Cloud Foundry
Spring Cloud
Microservice operation boilerplate patterns
(Config Server, Service Discovery, Circuit Breaker)
SERVICES
Spring Cloud Services
97. Application coordination boilerplate patterns
Application configuration boilerplate patterns
Enterprise Java application boilerplate patterns
Runtime Platform, Infrastructure Automation boilerplate
patterns (provision, deploy, secure, log, data services, etc.)
CLOU
D
DESKTOP
Spring Boot
Spring Framework
Pivotal Cloud Foundry
Spring Cloud
Microservice operation boilerplate patterns
(Config Server, Service Discovery, Circuit Breaker)
SERVICES
Spring Cloud Services
武器は揃っています。
いつ始めるのですか?
100. Ask the Speaker のご案内
本セッションの詳細は『Ask the Speaker Room』各コーナーカウンタにて
ご説明させていただきます。是非、お立ち寄りください。
101. © 2017 Microsoft Corporation. All rights reserved.
本情報の内容(添付文書、リンク先などを含む)は、作成日時点でのものであり、予告なく変更される場合があります。
Ask the speaker
でお待ちしています!
108. A) PPT 作成時の基本的ルール
• de:code 用スライドテンプレートの利用
• 16:9 でスライド作成
• フォントは以下を基本とし、スライド作成の都合で各自調整
• 英数字: Segoe UI Light (見出し), Segoe UI (本文)
• 日本語: メイリオ (見出し), メイリオ (本文)
• フォントサイズは 32 ポイント以上を推奨(厳しい場合はスライドのズーム機能などを活用)
• 半角英数字の前後は半角スペースを空ける
• 製品名などは、出来る限りフルスペルで記載
• 正規メディア、ロゴ、ドメイン名の使用
• 著作権の確認と必要に応じて利用許諾の取得
B) プレゼンテーション練習時に最低限押さえておくべきポイント
1. 不測の時代に備え、デモ環境などはビデオ等でも用意
2. プレゼンテーションモード、画面複製出力などは、リハ時に指定
3. 時間内終了厳守に向け、通し練習などを事前に実施
• プレゼンテーションとデモの切り替えタイミングなど
4. 必要に応じて拡大ツールの利用を推奨
• 縦長&小スクリーン部屋ではほぼ必須
5. ビデオ撮影されている事を意識し、不要な発言は慎む (不用意なパスワード露出なども)