Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Application Insights と Cosmos DB ―たかがTips、そう思ってないですか?―
Search
Mitsuzono Hiroto
June 06, 2019
Programming
0
49
Application Insights と Cosmos DB ―たかがTips、そう思ってないですか?―
de:code2019 報告会 × オルターブース
Mitsuzono Hiroto
June 06, 2019
Tweet
Share
More Decks by Mitsuzono Hiroto
See All by Mitsuzono Hiroto
Kernel MemoryでAzure OpenAI Serviceとお手軽データソース連携
mitsuzono
1
310
ここらでGPSマルチユニットが如何に使いやすいか本気で説明するから聞きなさい
mitsuzono
0
1.1k
Application insightsを用いてAzure AD B2Cをより使いこなす
mitsuzono
0
510
Application Insights と KQL
mitsuzono
0
490
LINE Messaging API メッセージ送受信とアカウント連携まわり
mitsuzono
0
81
近頃若者のサーバー離れが深刻化しています
mitsuzono
0
860
新卒、ヘルキャンプとデスマーチへの挑戦
mitsuzono
0
360
Other Decks in Programming
See All in Programming
酒飲んでたらテックリードになった話
spbaya0141
0
210
Balkan Ruby 2024 — How and why to run SQLite on Rails in production
fractaledmind
0
110
初心者のためのRubyKaigi入門/RubyKaigi Introduction
a_matsuda
10
1.9k
Webアプリをできるだけコードを手書きしないで作ってみる
tomokusaba
2
230
mb_trim関数を作りました
youkidearitai
PRO
1
150
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
200
ペパボOpenTelemetry革命
pyama86
2
780
最近コードレビューで指摘したこと
forrep
3
110
TypeScriptから始める VR生活
tamagokakeg
2
110
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
2
140
TypeScriptコードの漸進的改善 / Progressive Improvement of TypeScript Code
medley
1
420
Direct Style Effect Systems The Print[A] ExampleA Comprehension Aid
philipschwarz
PRO
0
410
Featured
See All Featured
Building Applications with DynamoDB
mza
88
5.7k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
What's in a price? How to price your products and services
michaelherold
238
11k
Making Projects Easy
brettharned
109
5.5k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
Documentation Writing (for coders)
carmenintech
60
4k
Docker and Python
trallard
35
2.7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
82
45k
The Brand Is Dead. Long Live the Brand.
mthomps
49
30k
What's new in Ruby 2.0
geeforr
338
31k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
Transcript
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. Application Insights
と Cosmos DB ― たかがTips、そう思ってないですか?― 株式会社オルターブース 満園 裕人
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • 株式会社オルターブース
エンジニア • 業務では主に C#(.NET Core)で Webアプリケーション開発 • 今年のde:codeで食べた ドーナツの数: 7個 自己紹介
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • Application
Insights • ざっくり概要 • Tips • Cosmos DB • アップデート • QAで特に参考になったポイント 今日話す内容
Application Insights
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • Azure
Monitorに統合されている • オートスケールやアラートの条件として利用可能 • Azureポータルからリソース作るとよく勝手についてくる • が、論理アプリケーション単位でまとめるのがオススメ • アプリ側の設定についてはVisualStudioで行うと楽 • 手動でやるとNugetの設定やら何やらで面倒 Application Insights
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • ITelemetryProcessorを継承したクラスを実装することで
フィルタリング可能 ノイズ除去 public class CustomTelemetryProcessor : ITelemetryProcessor { public CustomTelemetryProcessor(ITelemetryProcessor next) { _next = next; } private readonly ITelemetryProcessor _next; public void Process(ITelemetry item) { var dependency = item as DependencyTelemetry; if (dependency != null && dependency.ResultCode == "404") { return; } _next.Process(item); } }
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • https://docs.microsoft.com/ja-jp/azure/azure-
monitor/app/usage-workbooks Workbooks、KQLでログ解析
Cosmos DB
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • Spark
API • SDKのアップデート(近日GA予定) • OFFSET, LIMIT, DISTINCT が利用可能に • ARMテンプレートサポート • データベース、コンテナーも作成可能に アップデート内容
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • パーティションを等分に分配していない場合、ホットパー
ティションが発生してしまう • リクエストが平均的に分散するよう設計すると良い • ポータルのCosmos DBモニタリングタブから確認可能 RU設定値超えてないのに応答が遅い
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • (質問)Indexの設定を見直すか、Azure
Searchを使用す るかどちらが良いか? • どちらも効果はあるとは思われる • この二つの違いは、クローリングをデータに対するクエ リが行われる前にかけるか後にかけるかの違い • この場合部分一致クエリを使用することが推奨されている • 但し、検索のメインシナリオとは見なされていない CONTAINSを使用した検索が重い
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • https://gotcosmos.com/architecture
アーキテクチャーのサンプル
Copyright © 2015-2019 ALTERBOOTH inc. All Rights Reserved. • 着眼点の変化があったと改めて実感
• 数年前に参加したとき: • Azureの各サービス概要を知る • 今回: • 業務で使ってる技術のアップデートやTipsを知る 参加した感想