Step function overview
what is it used to orchestrate
features of conditions
max duration
Build server less workflow to orchestrate lambda functions
FLOW as JSON STATE MACHINE
Features: Sequence parallel conditions timeouts, error handling
Also integrate ec2, ecs, on premise, api gateway
MAX duration 1 year
possible to have human approval
use case example: order fulfillment data processing web apps any workflow
Step function
Error handling
error types
default error trigger
resolution
best practice
Errors:
DEFAULT: error causes step function execution to fail entirely
resolution:
1. retry failure RETRY: INTERVALSECONDS: time between MAXATTEMPTS: max times to retry BACKOFFRATE: how to space retries
*best practice, put data in error to see what happened to debug
Step function
Standard vs express
Standard: : LONGER, EXPENSIVE
Max duration 1 year
start rate: 2000 starts per second
Express : Cheaper, SHORTER
Max duration 5 minutes
start rate: 100,000 start per second
APPSYNC overview
two main functions
how to start
Starts with uploading GraphQL schema
APPSYNC process
schema
query
response in?
APPSYNC process
items to use it
requests from
appsync contains
data sources
integration for monitoring
1.Appsync can receive request from web apps mobile apps real time dashboard offline sync
3. data sources dynamodb aurora elasticsearch lambda can process extra HTTP-- PUBLIC HTTP API
4.APPSYNC can integrate with
Cloudwatch Logs for logging
Cloudwatch metrics also
Appsync security
four methods to authorize apps to interact with AWS APPSYN GRAPHQL API
four methods to authorize apps to interact with AWS APPSYN GRAPHQL API
For custom domain and HTTPS:
Use cloud front in front of APPSYNC