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
SalesforceArchitectGroupOsaka#17_Well-Architect...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
atomica7sei
May 31, 2024
Technology
460
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SalesforceArchitectGroupOsaka#17_Well-Architected_Reliable
atomica7sei
May 31, 2024
More Decks by atomica7sei
See All by atomica7sei
TDX '26 Global Gathering for Dev_Arch_Agentforce_Labs
atomica7sei
0
110
SalesforceArchitectGroupOsaka_23_Agentforce_Implementation_Five_Agent_Patterns
atomica7sei
0
130
SalesforceArchitectGroupOsaka#22_Agentforce Vibes
atomica7sei
0
180
SalesforceArchitectGroupOsaka#20_CNX'25_Report
atomica7sei
0
440
SalesforceArchitectGroupOsaka#16_Well-Architected_ALM
atomica7sei
0
410
Salesforce World Tour Tokyo 2023秋 振り返り会 for Arch
atomica7sei
0
200
SalesforceArchitectGroup#15_Integration
atomica7sei
0
610
SalesforceArchitectGroupOsaka#14_platform-multitenant-architecture
atomica7sei
0
140
SalesforceArchitectGroupOsaka#13_Sharing_and_Visibility
atomica7sei
0
760
Other Decks in Technology
See All in Technology
Sigmaで作る業務アプリ
kazushiro_honma
0
120
Omarchy Quattro の日本語設定周り
simosako
2
160
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
170
AI 駆動 Terraform 開発/SRE_BizReach_MIXI_2
visional_engineering_and_design
5
2.1k
omasushiというライブラリを作った
polidog
PRO
0
210
『止めない』を設計する — 制約の中で、事業の根幹を支える判断
hiroyaterui
0
270
2026-09-10 【Snowflake World Tour Tokyo 2026】dbt Core と Snowflake で実現する多層的なデータガバナンス / Multi-Layered Data Governance Powered by dbt Core and Snowflake
civitaspo
0
360
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
1
310
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
12k
株式会社シーエーシー エンジニア向け会社紹介資料
cac
0
57k
AIオーケストレーションを活用した 開発ワークフローの設計と実践
bqnq
0
150
家のリアーキテクト・リファクタリング
suguruooki
0
130
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Product Roadmaps are Hard
iamctodd
55
13k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
4 Signs Your Business is Dying
shpigford
187
23k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
190
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
430
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
460
The Limits of Empathy - UXLibs8
cassininazir
1
650
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
Building the Perfect Custom Keyboard
takai
2
870
A Soul's Torment
seathinner
7
3.6k
Transcript
Salesforce Architect Group, Japan Well-Architected Reliable(信頼性)-パフォーマンス-スループット- 非同期処理 Salesforce Architects Meetup
Osaka#17 #archjapan 1
Reliable(信頼性)-パフォーマンス-スループット-非同期処 理 Well-Architected
Well-Architectedのページ紹介 3 パフォーマンス (Well-Architectedの日本語訳より) • パフォーマンスとは、システムアーキテク チャの文脈では、システムの全体的な処 理能力(スループット)と、リクエストに対す る応答速度(レイテンシー)を示す指標で す。一般的に、システムのパフォーマンス
については、テストや実稼働時の監視を 通じて把握することができます。パワフル なシステムは、予想される需要のレベルに 応じて、タイムリーに処理を完了させま す。 • パフォーマンスの低下は、遅延の増大や スループットの低下を招き、生産性の低下 やユーザーの不満の増大につながりま す。さらに、パフォーマンスの問題は緊急 性の高い問題であることが多く、顧客の信 頼を失い金銭的な損失にもつながりかね ません。 • スループット • レイテンシー • パターンとアンチパターン
スループット(Well-Architectedの日本語訳より) 4 システムのスループットを最適化するために、考慮すべきことがあります。 • 非同期処理を重視する • 常に一括処理を使用する • 検索にはSOSLを使用し、SOQLはデータ操作のように扱う •
プラットフォームキャッシュを使用する
Automated(自動化)(Well-Architectedの日本語訳より) 5 「データ整合性のパターンとアンチパターン」より パターン データ処理 Apexにおいて: • すべての同期DML文またはDatabaseクラスメソッドは、トリガー実行前のコンテキストで実行さ れる •
非同期Apex実行では、Queueableを使用してトランザクションにまたがる複雑なDMLを「連鎖」 させる • Batch Apexは大容量データ専用に使用される • @future Apexは、コールアウトやシステムオブジェクトのDMLなど、特定の用途に限定して使 用される フローにおいて: • ユーザーコンテキストで起動したすべてのフローは、すべてのシステムコンテキストトランザク ションをサブフローに抽象化し、一貫してPause要素の後に配置され、新しいトランザクションを 作成する • 関連するデータ操作の複雑な順序をOrchestratorで作成する(単一フロー内で複数のサブフ ローを呼び出す代わりに) • レコードトリガー型のフローには、すべてトリガーの実行順序が入力されている • 外部システムのコールアウトや長時間稼働するプロセスを含むフローは、非同期パスを使用す る
フロー非同期パスのデモシナリオ 6 レコードトリガーフロー ① ② 非同期HTTPコールアウト(Patch) ④ 処理結果(Chatter) ③ 新規登録
or 更新(Upsert) 取引先 非同期パスを使用した外部システムへのレコードトリガフローの接続 ⇒非同期パスは、レコードの保存後に実行されるレコードトリガフローで使用できる <構成要素> • 外部ログイン情報 • 指定ログイン情報 • 権限セット ◦ 外部ログイン情報プリンシパルアクセス ◦ オブジェクト設定-ユーザの外部ログイン情報 • レコードトリガーフロー <構成要素> • 接続アプリケーション ◦ クライアントログイン情報フローを有効化 • Salesforce Integrationライセンスユーザ • Salesforce Integrationライセンス用権限セット ◦ 取引先の権限を付与 取引先 外部システム
デモ(フローの非同期パス) Salesforce Well-Architected
参考リソース 8 • Reliable architect.salesforce.com • reliable.pdf 日本語訳 ◦ 非同期処理を重視する ▪ Architecture
Basics トランザクション ▪ Automated 自動化 • Record-Triggered Automation ◦ 常に一括処理を使用する ▪ Platform Multitenant Architecture • Salesforce の非同期実行アプローチ - ローコード、プロコード、ハイブリッド • Flow HTTP Callout コミュニティグループ • HTTP コールアウトを介してコードなしで Salesforce データを外部サーバーに送信 (正式リリース) Winter'24 • Make a Callout using OAuth 2.0 Client Credentials Flow | Named & External Credentials YouTube • HOW TO USE THE HTTP CALLOUT PATCH METHOD IN FLOW | Winter'24 Update YouTube • 外部 ID を使用してレコードを挿入 /更新 (Upsert) する • OAuth 2.0 クライアントログイン情報フローの接続アプリケーションの設定 • Order of Execution Overview png
None