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
SalesforceArchitectGroupOsaka#17_Well-Architect...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
atomica7sei
May 31, 2024
Technology
440
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
95
SalesforceArchitectGroupOsaka_23_Agentforce_Implementation_Five_Agent_Patterns
atomica7sei
0
130
SalesforceArchitectGroupOsaka#22_Agentforce Vibes
atomica7sei
0
170
SalesforceArchitectGroupOsaka#20_CNX'25_Report
atomica7sei
0
420
SalesforceArchitectGroupOsaka#16_Well-Architected_ALM
atomica7sei
0
400
Salesforce World Tour Tokyo 2023秋 振り返り会 for Arch
atomica7sei
0
190
SalesforceArchitectGroup#15_Integration
atomica7sei
0
600
SalesforceArchitectGroupOsaka#14_platform-multitenant-architecture
atomica7sei
0
130
SalesforceArchitectGroupOsaka#13_Sharing_and_Visibility
atomica7sei
0
750
Other Decks in Technology
See All in Technology
RAG を使わないという選択肢
tatsutaka
1
270
Agile and AI Redmine Japan 2026
hiranabe
3
160
マルチアカウント環境での コーディングエージェントを使った障害調査が大変なので AIエージェントにReadOnly権限を付与してみた / ReadOnly AI Agents for Multi-Account AWS Incident Response
yamaguchitk333
2
110
気づかぬうちにセキュリティ負債を生むAPIキー運用
sgwrmctk
0
180
AIチャット検索改善の3週間
kworkdev
PRO
2
140
2026TECHFRESH畢業分享會 - AI 時代的人生存檔點
line_developers_tw
PRO
0
1.3k
Android の公式 Skill / Android skills
yanzm
0
160
【NRUG vol.18】なぜ多くのオブザーバビリティ導入は失敗するのか
nrug_member
0
190
IaC コードを資産へ:AWS CDK 社内ライブラリと横断展開 / aws-summit-japan-2026
gotok365
2
790
SONiC Scale-Up Working Group から探る Scale-UpやUltraEthernet機能の実装方法
ebiken
PRO
2
400
2026TECHFRESH畢業分享會 - Lightning Talk - 打造精準高效的 MCP 設計模式與測試實務
line_developers_tw
PRO
0
1.3k
失敗を資産に変えるClaude Code
shinyasaita
0
710
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
220
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
840
Building the Perfect Custom Keyboard
takai
2
800
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
420
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Ethics towards AI in product and experience design
skipperchong
2
310
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
610
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
540
Google's AI Overviews - The New Search
badams
0
1k
4 Signs Your Business is Dying
shpigford
187
22k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
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