$30 off During Our Annual Pro Sale. View Details »

Understanding state and application workflows w...

Rob Sutter
January 14, 2021

Understanding state and application workflows with AWS Step Functions

In this session, explore some of the latest features of AWS Step Functions and dive deep into how you can build complex workflows with them. From the new capabilities of the Amazon States Language to advanced integration patterns, this session covers the bits you might have missed that can enable you to do more with less code. Join this session to examine the types of solutions that can be built using Step Functions, such as approve/deny, error handling, and data science workflows.

Rob Sutter

January 14, 2021
Tweet

More Decks by Rob Sutter

Other Decks in Programming

Transcript

  1. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Understanding state and application workflows with AWS Step Functions Rob Sutter Sr. Developer Advocate AWS S V S 4 0 6
  2. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. • Amazon States Language improvements • The lifecycle of a single step • Handling errors • Parallelism and concurrency • Additional resources Agenda
  3. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon States Language improvements
  4. • Updates to Choice state • Global access to the

    context object • Dynamic timeouts • Result selector • String construction • JSON <-> string conversion • Array construction Amazon States Language improvements s12d.com/asl-improvements
  5. • IsNull – null • IsString – string • IsNumeric

    – numeric • IsBoolean – Boolean • IsTimestamp – timestamp Choice state – Comparison operators s12d.com/asl-improvements
  6. • InputPath • Task state • ResultSelector • ResultPath •

    OutputPath Order of operations Context ($$) State ($) Task InputPath ResultSelector OutputPath ResultPath $
  7. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. “Complex systems run in degraded mode.” Richard I. Cook, MD MIT
  8. • Task, Parallel, and Map states • Switch / case

    statement on ErrorEquals value • IntervalSeconds is the number of seconds before first retry • MaxAttempts is the number of retries (may be 0) • BackoffRate is a multiplier Retriers
  9. • Task, Parallel, and Map states • Also known as

    fallback states • Scanned in array order when there is an error and no Retrier or all retries have failed • Switch / case statement on ErrorEquals value • ResultPath for storing error • Next defines the next state Catchers
  10. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Parallelism and concurrency
  11. • Parallel invocations • Dynamic parallelism (Map state) • Function-native

    concurrency Parallelism and concurrency s12d.com/sfn-pc
  12. • Total items in ItemsPath limited by state limit of

    256 KB • MaxConcurrency theoretically limitless if set to 0 (default) • Practically, host affinity limits concurrent invocations to 40 • MaxConcurrency synchronous and sequential when set to 1 Dynamic parallelism (Map state) s12d.com/sfn-pc
  13. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. • Amazon States Language improvements • The lifecycle of a single step • Handling errors • Parallelism and concurrency • Additional resources at s12d.com/svs406 Review
  14. Thank you! © 2020, Amazon Web Services, Inc. or its

    affiliates. All rights reserved. Rob Sutter Sr. Developer Advocate AWS Twitch: /robsutter Twitter: @rts_rob