O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Orchestrate your Azure Functions with Durable Functions - AzureThursday Meetup

628 visualizações

Publicada em

These are the slides of the presentation I gave at the Azure Thursday Meetup on the 1st of Februari 2018 at Ordina.

The source code for the demos I gave can be downloaded from this GitHub repository: https://github.com/marcduiker/demos-azure-durable-functions (see the Readme for instructions).

Publicada em: Tecnologia
  • Entre para ver os comentários

Orchestrate your Azure Functions with Durable Functions - AzureThursday Meetup

  1. 1. Marc Duiker Lead Consultant @ Xpirit
  2. 2. Marc Duiker Durable Functions • What are orchestrations? • Why do we need them? • What is Durable Functions? • Local development • Examples • Function chaining • Fan-out/Fan-in • Stateful Singleton • Closing remarks
  3. 3. Marc Duiker Durable Functions
  4. 4. Marc Duiker Durable Functions Orchestration? Orchestration is the automated arrangement, coordination, and management of computer systems, middleware, and services.
  5. 5. Marc Duiker Durable Functions
  6. 6. Marc Duiker Durable Functions Control flow
  7. 7. Marc Duiker Durable Functions
  8. 8. Marc Duiker Durable Functions
  9. 9. Marc Duiker Durable Functions
  10. 10. Marc Duiker Durable Functions
  11. 11. Marc Duiker Durable Functions
  12. 12. Marc Duiker Durable Functions
  13. 13. Marc Duiker Durable Functions Durable Functions is based on
  14. 14. Marc Duiker Durable Functions New Trigger Bindings [OrchestrationClient] DurableOrchestrationClient
  15. 15. Marc Duiker Durable Functions DurableOrchestrationClient
  16. 16. Marc Duiker Durable Functions New Trigger Bindings [OrchestrationTrigger] DurableOrchestrationContext
  17. 17. Marc Duiker Durable Functions DurableOrchestrationContext
  18. 18. Marc Duiker Durable Functions New Trigger Bindings [ActivityTrigger] DurableActivityContext
  19. 19. Marc Duiker Durable Functions DurableActivityContext
  20. 20. Marc Duiker Durable Functions Invocations, Checkpoints & Replay Function invocation Execution history
  21. 21. Marc Duiker Durable Functions Orchestration Functions should be Deterministic
  22. 22. Marc Duiker Durable Functions
  23. 23. Marc Duiker Durable Functions Visual Studio 2017 15.5+ - “Azure development tools” workload - Extension: Azure Functions & Web Jobs Tools - Azure Storage Emulator Local development
  24. 24. Marc Duiker Durable Functions Demo!
  25. 25. Marc Duiker Durable Functions
  26. 26. Marc Duiker Durable Functions Function chaining
  27. 27. Marc Duiker Durable Functions Demo: Use case As a speaker I want to arrive early at the next meetup so I still have some time to tweak my slides at the very last moment.
  28. 28. Marc Duiker Durable Functions Demo: Control flow In - meetup group - departure address - travel mode Out - event name - group name - destination address - departure time - duration Returns one event For the event returned by FA1
  29. 29. Marc Duiker Durable Functions
  30. 30. Marc Duiker Durable Functions Fan-out/fan-in FA1 returns a collection of items FA2 is called for each of the items from FA1
  31. 31. Marc Duiker Durable Functions Demo: Use case As a meetup visitor I want a list of relevant events, sorted by travel duration so I can choose which events I will attend.
  32. 32. Marc Duiker Durable Functions Demo: Control flow In - search text - max nr of events - departure address - travel mode Out Collection of - event name - group name - destination address - departure time - duration For each event returned by FA1 Returns collection of events
  33. 33. Marc Duiker Durable Functions
  34. 34. Marc Duiker Durable Functions
  35. 35. Marc Duiker Durable Functions
  36. 36. Marc Duiker Durable Functions
  37. 37. Marc Duiker Durable Functions
  38. 38. Marc Duiker Durable Functions
  39. 39. Marc Duiker Durable Functions
  40. 40. Marc Duiker Durable Functions
  41. 41. Marc Duiker Durable Functions
  42. 42. Marc Duiker Durable Functions
  43. 43. Marc Duiker Durable Functions
  44. 44. Marc Duiker Durable Functions
  45. 45. Marc Duiker Durable Functions
  46. 46. Marc Duiker Durable Functions
  47. 47. Marc Duiker Durable Functions
  48. 48. Marc Duiker Durable Functions
  49. 49. Marc Duiker Durable Functions Demo Managing a list of names in a stateful singleton.
  50. 50. Marc Duiker Durable Functions
  51. 51. Marc Duiker Durable Functions
  52. 52. Marc Duiker Durable Functions
  53. 53. Marc Duiker Durable Functions
  54. 54. Marc Duiker Durable Functions • Orchestration Functions can only call Activity Functions in the same Function App. • Duration timers can’t last longer than 7 days. • Keep your orchestration small. • What changes together should be deployed together. Closing remarks
  55. 55. Marc Duiker Durable Functions blog.marcduiker.nl @marcduiker

×