Event-driven architectures decouple code from state... Lambda functions are triggered by events via integrated event sources such as Amazon Simple Queue Service (SQS), Amazon Simple Notification Service (SNS), and Amazon Kinesis... API Gateway for API management, Amazon DynamoDB for data stores, and AWS #Step Functions for orchestration
compled to a CloudFormation stack (and template) as a result
- aws configure
CopePipeline has Build providers: AWS CodeBuild and Jenkins
intermediate repositories that connect your repository to official package authorities, such as Maven Central Repository and Npm... NuGet... Domain is a grouping of repositories created in CodeArtifact. Every repository belongs to a single domain.
AWS Elastic Beanstalk is a compute service that makes it easy to deploy and manage applications in AWS... Environment - Collection of AWS resources provisioned by Elastic Beanstalk that are used to run your application. EC2 Instance - Virtual server in the cloud.
- Elastic Beanstalk uses nginx as the reverse proxy to map your application to your Elastic Load Balancing load balancer on port 80.
- Переместите ваше приложение с Heroku на AWS, когда первый вам станет не по карману.
Lambdas: cold, warm, hot
Lambda is the FaaS service (Function as a Service) in the AWS landscape. It is super-duper cheap... first time you call a function takes a bit more time to execute and respond.. “cold start”... Any further request will be handled by an already wrapped function inside a running container, so the function will have a “warm start”... in real world there’s something called “concurrency” which leads to a quite new occurrence called “scaling”... A function with hot start has the ability to predict the need of scaling, scales out beforehand
Step Functions allow lambdas to share state without involving DynamoDB or any other data storage service... size of the event payload cannot exceed 32 kilobytes... If the data you are passing between states might surpass the limit, the recommended approach is to use S3 to store the data, and pass ARNs instead of the raw data... Step Functions also has a hard limit of 25,000 entries in the execution history.
AWS Step Functions tracks the state of each step, so you can automatically retry failed or timed-out tasks, catch specific errors, and recover gracefully... AWS Step Functions has built-in fault tolerance. Step Functions maintains service capacity across multiple Availability Zones in each region to help protect application workflows against individual machine or data center facility failures. There are no maintenance windows or scheduled downtimes.
Step Functions is a serverless orchestration service that lets you combine AWS Lambda functions and other AWS services to build business-critical applications. Through Step Functions' graphical console, you see your application’s workflow as a series of event-driven steps.
ElastiCache Fully managed in-memory data store, compatible with Redis or Memcached. Power real-time applications with sub-millisecond latency.
SNS is a distributed publish-subscribe system. Messages are pushed to subscribers as and when they are sent by publishers to SNS. SQS is distributed queuing system. Messages are not pushed to receivers. Receivers have to poll or pull messages from SQS
SQS is like RabbitMQ
Dead-Letter Queue (DLQ). This queue can store messages for several days.. Send undeliverable messages to a dead-letter queue
Amazon Cloud Watch
S3 Storage Lens... first cloud storage analytics solution with support for AWS Organizations with 29+ usage and activity metrics and interactive dashboards to aggregate data for your entire organization, specific accounts, regions, buckets, or prefixes.