Skip to content

resonatehq/resonate-faas-aws-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@resonatehq/aws

@resonatehq/aws is the official binding to deploy Distributed Async Await, Resonate's durable execution framework, to AWS Lambda. Run long-running, stateful applications on short-lived, stateless infrastructure.

Examples:

Architecture

When the Durable Function awaits a pending Durable Promise (for example on yield* context.rpc() or context.sleep), the AWS Lambda function terminates. When the Durable Promise completes, the Resonate Server resumes the Durable Function by invoking the AWS Lambda function again.

function* factorial(context: Context, n: number): Generator {
  if (n <= 0)  { 
    return 1;
  }
  else {
    return n * (yield* context.rpc(factorial, n - 1));
  }
}

Illustration of executing factorial(2) on AWS Lambda:

Resonate on Serverless

Quick Start

npm install @resonatehq/aws

See AWS Lambda documentation to learn how to develop and deploy AWS Lambda functions and see Resonate's AWS Lambda examples for a step by step tutorial

Packages

No packages published

Contributors 3

  •  
  •  
  •