Serverless and Step-Functions at DAZN

Joseph Schofield
Dec 11, 2018 · 5 min read
“man jump about to hold ball near net” by ÁLVARO MENDOZA on Unsplash

The Problem

How do we handle each payment provider separately, whilst maintaining the same UX flow? And how do we do all this while setting up the user’s subscription to DAZN?

The Solution

Choices

Errors

Timeouts et al.

MyDemoStep:            
  Type: Task            
  Comment: My demo step           
  Resource: <demo Lambda ARN>                    
  Next: MyNextDemoStep            
  Retry:
    - ErrorEquals:      
      - MySpecificErrorType     
    IntervalSeconds: 120      
    MaxAttempts: 3      
    BackoffRate: 2.0

Permanent failures

Weird unknown failures

{
  success: false,
  code: 42,
  message: "This isn’t gonna work"
}

The Final Step


YLD Blog

YLD's latest thoughts on Software Engineering, Design and Digital Products

Joseph Schofield

Written by

YLD Blog

YLD Blog

YLD's latest thoughts on Software Engineering, Design and Digital Products