Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Application Insights と Cosmos DB ―たかがTips、そう思って...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mitsuzono Hiroto
June 06, 2019
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Application Insights と Cosmos DB ―たかがTips、そう思ってないですか?―
de:code2019 報告会 × オルターブース
Mitsuzono Hiroto
June 06, 2019
More Decks by Mitsuzono Hiroto
See All by Mitsuzono Hiroto
Kernel MemoryでAzure OpenAI Serviceとお手軽データソース連携
mitsuzono
1
850
ここらでGPSマルチユニットが如何に使いやすいか本気で説明するから聞きなさい
mitsuzono
0
1.6k
Application insightsを用いてAzure AD B2Cをより使いこなす
mitsuzono
0
680
Application Insights と KQL
mitsuzono
0
660
LINE Messaging API メッセージ送受信とアカウント連携まわり
mitsuzono
0
150
近頃若者のサーバー離れが深刻化しています
mitsuzono
0
1.2k
新卒、ヘルキャンプとデスマーチへの挑戦
mitsuzono
0
530
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
230
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
320
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
710
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
150
Are APIs Still Relevant in the AI Era?
soyuka
0
280
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
300
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
560
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
2.8k
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
120
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
160
Heart of Swift Concurrency
koher
0
920
Featured
See All Featured
New Earth Scene 8
popppiees
4
2.6k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Docker and Python
trallard
47
4.2k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
360
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
420
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
RailsConf 2023
tenderlove
30
1.6k
KATA
mclloyd
PRO
35
15k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
870
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
320
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を知る 参加した感想