---
title: Durable Functions 入門
tags: 
author: [Kazuki Ota](https://image.docswell.com/user/okazuki)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/YE9PQLZRJ3.jpg?width=480
description: 【Azure AIの必須機能!?】YonaYona Durable Functions Night Durable Functions 入門の資料です。 https://yonayona.connpass.com/event/393817/
published: June 12, 26
canonical: https://image.docswell.com/s/okazuki/KY8V84-2026-06-12-195721
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/YE9PQLZRJ3.jpg)

Durable Functions 入門
Kazuki Ota / 日本マイクロソフト
YonaYona Azure Club 2026.06.12


# Page. 2

![Page Image](https://bcdn.docswell.com/page/GE8DGX1GED.jpg)

自己紹介
日本マイクロソフト
Cloud Solution Architect &amp; Evangelist
大田 一希 (Kazuki Ota)
SNS/ブログ
 X / GitHub: @okazuki/@runceel
 Zenn: https://zenn.dev/okazuki
最近のマイブーム
 GitHub Copilot app


# Page. 3

![Page Image](https://bcdn.docswell.com/page/LELMG8QX7R.jpg)

このセッションのゴール
Durable Functions の雰囲気をつかんでもらう！


# Page. 4

![Page Image](https://bcdn.docswell.com/page/4JMYQ613JW.jpg)

アジェンダ
 Azure Functions とは
 Durable Functions とは
 Durable Task Scheduler
 デモ
 まとめ


# Page. 5

![Page Image](https://bcdn.docswell.com/page/PJR98PLR79.jpg)

Azure Functions とは


# Page. 6

![Page Image](https://bcdn.docswell.com/page/PEXQ83WYJX.jpg)

Azure Functions 概要
コード
イベント


# Page. 7

![Page Image](https://bcdn.docswell.com/page/3EK9KYV4ED.jpg)

Azure Functions 概要
Azure Functions


# Page. 8

![Page Image](https://bcdn.docswell.com/page/L73WZ9MD75.jpg)

Azure Functions の特徴
 イベント駆動でコードを実行可能
 イベント数に応じた自動スケール アウト（最大1000台）
 使った分だけ細かく課金
 コードの実行時間は5分以内（長くても10分）
Azure Functions が向いている処理
小さいコード
ステートレス (毎回作って壊して何回も実行してよいもの)
短時間で終わる処理


# Page. 9

![Page Image](https://bcdn.docswell.com/page/87DKRG62JG.jpg)

Durable Functions とは


# Page. 10

![Page Image](https://bcdn.docswell.com/page/VJPKW3YLE8.jpg)

Durable Functions とは
Azure Functions の拡張機能
• 長時間実行可能（数日以上）
• 耐久性がある（サーバーが再起動しても平気）
• 状態をもったオブジェクトを実装可能
コードで書ける
（C#、Python、TypeScript など)


# Page. 11

![Page Image](https://bcdn.docswell.com/page/2EVV84G6EQ.jpg)

普通の Functions と Durable Functions の違い
普通の Functions
Durable Functions
 状態なし
 ステート永続化
 タイムアウトあり
 長時間 OK
 サーバーが再起動したら
 サーバーが再起動しても動く
処理は終了


# Page. 12

![Page Image](https://bcdn.docswell.com/page/57GL5182EL.jpg)

何故、長時間実行可能で耐久性がある？
1. 履歴を全部記録
2. 何回も繰り返し再実行
何かの処理
Start
A1 ✓
A2
基盤の再起動など
クラッシュしても履歴は残る
Durable Task
Scheduler
• Execution Started
• A1 Scheduled
• A1 Completed
• A2 Scheduled


# Page. 13

![Page Image](https://bcdn.docswell.com/page/4EQYZD99JP.jpg)

何故、長時間実行可能で耐久性がある？
1. 履歴を全部記録
2. 何回も繰り返し再実行
何かの処理
Start
A1 ✓
A2
基盤の再起動など
クラッシュしても履歴は残る
Durable Task
Scheduler
• Execution Started
• A1 Scheduled
• A1 Completed
• A2 Scheduled
• A2 Completed
• Execution Completed
再開 → Replay → 続きから
Restart
A1
Replay
A2 ✓
Done


# Page. 14

![Page Image](https://bcdn.docswell.com/page/KJ4W3GRR71.jpg)

Durable Functions の登場人物
 クライアント
 オーケストレーター
 アクティビティ
 バックエンド
処理を起動する人
流れを書く所
処理をする所
履歴を保存
ここが長時間動く
ここはリプレイされても問題ない作りにし
ないといけない
起動
Client
履歴
Orchestrator
Backend (DTS)
呼び出し
Activity 1
Activity 2
ここは短時間実行しか出来ない
Activity 3


# Page. 15

![Page Image](https://bcdn.docswell.com/page/LE1Y1DQV7G.jpg)

Durable Functions の登場人物
 クライアント
 オーケストレーター
 アクティビティ
 バックエンド
処理を起動する人
流れを書く所
処理をする所
履歴を保存
ここが長時間動く
ここはリプレイされても問題ない作りにし
ないといけない
起動
Client
履歴
Orchestrator
細かい処理に分割可能な処理を
長時間かけて実行可能
Backend (DTS)
呼び出し
Activity 1
Activity 2
ここは短時間実行しか出来ない
Activity 3


# Page. 16

![Page Image](https://bcdn.docswell.com/page/GEWG8YM3J2.jpg)

Durable Functions のユースケース
 大量データ処理
 AI のためのインデックス構築パイプライン
 大量の画像のサムネイルや画像の仕分け処理
 バッチ処理全般
 夜間バッチ処理
 夜間以外でもデータの集計処理
 人間の承認を挟む処理
 承認者が一週間休暇をとっていても Durable Functions なら待ち続けられる
 マルチエージェントのワークフロー
 この後のセッションに期待…！


# Page. 17

![Page Image](https://bcdn.docswell.com/page/47ZL8XQGJ3.jpg)

Durable Task Scheduler


# Page. 18

![Page Image](https://bcdn.docswell.com/page/YJ6WP46QJV.jpg)

Durable Task Scheduler (DTS)
 マネージドバックエンド
 高性能・高スケール
Functions
App
履歴
Durable Task
Scheduler
監視
 Functions と独立したリソース
 監視ダッシュボード付き (かっこいい)
マネージドサービス
Monitoring
Dashboard


# Page. 19

![Page Image](https://bcdn.docswell.com/page/GJ5MKQ62J4.jpg)

他のバックエンドとの比較
Azure Storage (昔からある)
Durable Task Scheduler
 標準で使える
 自分で作る必要がある
 低コスト
 ちょっと高い
 中規模まで OK
 大規模への対応が可能
 Table や Queue で管理
 専用のストレージ
 データ管理は自分でやる
 マネージド運用
 管理用 API が利用可能
 専用ダッシュボード
 かっこいい！！


# Page. 20

![Page Image](https://bcdn.docswell.com/page/9E29WPM17R.jpg)

デモ


# Page. 21

![Page Image](https://bcdn.docswell.com/page/D7Y4L5X4EM.jpg)

まとめ
 Azure Functions
 サーバーレス サービス
 凄いスケールする
 短時間の処理が得意
 Durable Functions
 Azure Functions の拡張機能
 長時間実行可能！
 耐久性もある！
 プログラミング言語で完全に制御可能！
 Durable Task Scheduler
 Durable Functions 用の専用バックエンド
 Storage Account よりは高いけど高性能
 ダッシュボードがかっこいい！


# Page. 22

![Page Image](https://bcdn.docswell.com/page/VENY4N16J8.jpg)

Thank you
~Durable Functions はいいぞ~
#YonaAz
github.com/runceel/yonayona-durable


