SlideShare a Scribd company logo
Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018
Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018
Events
イベント
React to timers, HTTP, or
events from your favorite
Azure services, with
more on the way
Events
イベント
React to timers, HTTP, or
events from your favorite
Azure services, with
more on the way
Author functions in C#,
F#, Node.JS, Java, and
more
Code
コード
Events
イベント
React to timers, HTTP, or
events from your favorite
Azure services, with
more on the way
Outputs
出力
Send results to an ever-
growing collection of
services
Author functions in C#,
F#, Node.JS, Java, and
more
Code
コード
Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018
Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018
•
•
•
•
•
•
•
•
•
•
Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018
Function chaining
Function chaining
Function chaining
Function chaining
Function chaining
Function chaining Fan-out / fan-in
Function chaining Fan-out / fan-in
Function chaining Fan-out / fan-in
Function chaining Fan-out / fan-in
Event aggregation
Function chaining Fan-out / fan-in
Event aggregation
Function chaining Fan-out / fan-in
Event aggregation
Function chaining Fan-out / fan-in
Event aggregation
Function chaining Fan-out / fan-in
Event aggregation
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
Async HTTP APIs
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
http
Async HTTP APIs
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
http
Async HTTP APIs
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
http
Async HTTP APIs
Human interaction / timeout
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
http
Async HTTP APIs
Human interaction / timeout
Function chaining Fan-out / fan-in
Event aggregation
Extended Status Monitoring
http
Async HTTP APIs
Human interaction / timeout
F1
F2 x 1000
F3
Activity
Function
Orchestrator
Function
Execution
History
Activity
Function
Orchestrator
Function
Execution
History
Activity
Function
Orchestrator
Function
Orchestrator
Function
Execution
History
Orchestrator Started
Execution Started
Activity
Function
Orchestrator
Function
Orchestrator
Function
Execution
History
?
Orchestrator Started
Execution Started
Activity
Function
Orchestrator
Function
Orchestrator
Function
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Activity
Function
Orchestrator
Function
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Activity
Function
Orchestrator
Function
Activity
Function
Execution
History
“Hello 東京!”
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Activity
Function
Orchestrator
Function
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Activity
Function
Orchestrator
Function
Orchestrator
Function
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Orchestrator Started
Activity
Function
Orchestrator
Function
Orchestrator
Function
“Hello 東京!”
Execution
History
?
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Orchestrator Started
Activity
Function
Orchestrator
Function
Orchestrator
Function
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Orchestrator Started
Activity
Function
Orchestrator
Function
Orchestrator
Function
[“Hello 東京!”]
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Orchestrator Started
Execution Completed, ["Hello 東京!"]
Activity
Function
Orchestrator
Function
[“Hello 東京!”]
Execution
History
Orchestrator Started
Execution Started
Task Scheduled, SayHello, “東京”
Orchestrator Completed
Task Completed, “Hello 東京!”
Orchestrator Started
Execution Completed, ["Hello 東京!"]
Orchestrator Completed
ダメ!
1.
ダメ!
1.
2.
ダメ!
1.
2.
3.
ダメ!
Worker
Stateful/Partitioned
Stateless
Control Queue(s)
Triggers orchestrator
function execution
Work Item Queue
Triggers activity function execution
History Table
Worker
Worker
Worker
Stateful/Partitioned
Stateless
Control Queue(s)
Triggers orchestrator
function execution
Work Item Queue
Triggers activity function execution
History Table
Worker
Worker
Worker
Worker
Worker
Stateful/Partitioned
Stateless
Control Queue(s)
Triggers orchestrator
function execution
Work Item Queue
Triggers activity function execution
History Table
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
SayHelloOrchestrator
Starter
Control Queue
Work-Item Queue
•
• HTTPS://DOCS.MICROSOFT.COM/EN-US/AZURE/AZURE-FUNCTIONS/DURABLE-FUNCTIONS-OVERVIEW
• HTTPS://DOCS.MICROSOFT.COM/JA-JP/AZURE/AZURE-FUNCTIONS/DURABLE-FUNCTIONS-OVERVIEW
•
• HTTPS://GITHUB.COM/AZURE/AZURE-FUNCTIONS-DURABLE-EXTENSION
• HTTPS://GITHUB.COM/AZURE/DURABLETASK/TREE/AZURE-FUNCTIONS
•
•
•

More Related Content

Advanced Durable Functions - Serverless Meetup Tokyo - Feb 2018

Editor's Notes

  1. Purpose: Review the basics of Azure Function Takeaways: Azure Functions is an event-driven compute platform You only pay for the code executions
  2. Purpose: Review the basics of Azure Function Takeaways: Azure Functions is an event-driven compute platform You only pay for the code executions
  3. Purpose: Review the basics of Azure Function Takeaways: Azure Functions is an event-driven compute platform You only pay for the code executions
  4. Purpose: Review the basics of Azure Function Takeaways: Azure Functions is an event-driven compute platform You only pay for the code executions
  5. Purpose: Show the various services that bindings can connect to. Takeaway: There are a lot of services that can be connected to and we are committed to adding more.
  6. Purpose: Show the task-based programming model. Things to emphasize: Orchestrator functions coordinate the calling of activity functions. Activity functions can be called either synchronously or asynchronously. Whenever an await instruction is encountered, the orchestrator function will automatically checkpoint its progress. This way, if the process or VM your function is running on recycles or reboots, local state isn’t lost.
  7. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  8. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  9. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  10. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  11. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  12. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  13. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  14. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  15. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  16. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  17. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  18. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state
  19. Purpose: Walk through a simple hello world scenario to illustrate how the runtime executes orchestrator functions. Emphasize: the use of event sourcing pattern to rebuild local state