Monitoring platform for keeping systems up and running at all times.
Full stack visibility across the entire stack.
Detect and resolve any incident in record time.
Conform to industry best practices.
Dashbird continuously monitors and analyses your serverless applications to ensure reliability, cost and performance optimisation and alignment with the Well Architected Framework.
What defines a serverless system, main characteristics and how it operates
What are the types of serverless systems for computing, storage, queue processing, etc.
What are the challenges of serverless infrastructures and how to overcome them?
How systems can be reliable and the importance to cloud applications
What is a scalable system and how to handle increasing loads
Making systems easy to operate, manage and evolve
Learn the three basic concepts to build scalable and maintainable applications on serverless backends
The pros and cons of each architecture and insights to choose the best option for your projects
Battle-tested serverless patterns to make sure your cloud architecture is ready to production use
Strategies to compose functions into flexible, scalable and maintainable systems
Achieving loosely-coupled architectures with the asynchronous messaging pattern
Using message queues to manage task processing asynchronously
Asynchronous message and task processing with Pub/Sub
A software pattern to control workflows and state transitions on complex processes
The strategy and practical considerations about AWS physical infrastructure
How cloud resources are identified across the AWS stack
What makes up a Lambda function?
What is AWS Lambda and how it works
Suitable use cases and advantages of using AWS Lambda
How much AWS Lambda costs, pricing model structure and how to save money on Lambda workloads
Learn the main pros/cons of AWS Lambda, and how to solve the FaaS development challenges
Main aspects of the Lambda architecture that impact application development
Quick guide for Lambda applications in Nodejs, Python, Ruby, Java, Go, C# / .NET
Different ways of invoking a Lambda function and integrating to other services
Building fault-tolerant serverless functions with AWS Lambda
Understand how Lambda scales and deals with concurrency
How to use Provisioned Concurrency to reduce function latency and improve overall performance
What are Lambda Layers and how to use them
What are cold starts, why they happen and what to do about them
Understand the Lambda retry mechanism and how functions should be designed
Managing AWS Lambda versions and aliases
How to best allocate resources and improve Lambda performance
What is DynamoDB, how it works and the main concepts of its data model
How much DynamoDB costs and its different pricing models
Query and Scan operations and how to access data on DynamoDB
Alternative indexing methods for flexible data access patterns
How to organize information and leverage DynamoDB features for advanced ways of accessing data
Different models for throughput capacity allocation and optimization in DynamoDB
Comparing NoSQL databases: DynamoDB and Mongo
Comparing managed database services: DynamoDB vs. Mongo Atlas
How does an API gateway work and what are some of the most common usecases
Learn what are the benefits or drawbacks of using APIGateway
Picking the correct one API Gateway service provider can be difficult
Types of possible errors in an AWS Lambda function and how to handle them
Best practices for what to log in an AWS Lambda function
How to log objects and classes from the Lambda application code
Program a proactive alerting system to stay on top of the serverless stack
A version of a Lambda function is exactly what the name suggests. Every time new code is deployed or the function configuration needs to be changed, it’s possible to create a new version and test before distributing the changes to function consumers.
That is useful because the function consumers can continue using a previous version without any disruption. The function publisher can let consumers know about the newest version. Each consumer can test and plan accordingly before upgrading. Or the publisher can conduct tests and upgrade to the $LATEST version.
$LATEST
Each function version has a unique ARN1. The version’s ARN will coincide with the function’s, except for the last term, the resource-id. The ARN will have a format such as: arn:aws:lambda:us-east-1:1234567890:function:my-function:1. The number 1 at the end of the ARN indicates the version.
resource-id
arn:aws:lambda:us-east-1:1234567890:function:my-function:1
1
It is also possible to refer to a function’s latest version: arn:aws:lambda:us-east-1:1234567890:function:my-function:$LATEST. Consumers relying on the latest version will automatically use a new version once promoted to $LATEST.
arn:aws:lambda:us-east-1:1234567890:function:my-function:$LATEST
Using the AWS command line interface, a version is published with the following command:
aws lambda publish-version --function-name hello-world-function
Functions can be referred to with or without the ARN version term. When the version is included, it’s called a qualified ARN:
Or:
When the version is omitted, the ARN is said to be unqualified:
arn:aws:lambda:us-east-1:1234567890:function:my-function
For teams that decide not to use the AWS Lambda versioning system, the qualified or unqualified versions won’t make any difference.
When granting access to a Lambda function, it is important to observe the versioning options.
If a qualified ARN is used (function:my-function:1 or function:my-function:$LATEST, for example), the consumer can only access that particular version (1 or $LATEST).
function:my-function:1
function:my-function:$LATEST
Permissions that use an **unqualified version allows consumers to refer only to the unqualified ARN. If the consumer refer to a qualified ARN (even the $LATEST), it will result in a access error.
If the permission refer to the latest version (function:my-function:$LATEST), only the qualified ARN will be valid. Requests referring to the unqualified ARN will result in access error.
A function alias is similar to a pointer. Each alias points to a certain function version. The version to which the alias points can be updated as needed. The version pointer is transparent to consumers, so that publishers can upgrade functions without the need to update consumer requests2.
An alias cannot point to another alias, only to a function version.
Similarly to versions, each alias also has its unique ARN.
Aliases can be useful in routing traffic to new versions after proper testing. A function can have a TEST and PROD aliases, for example. The development team deploys a new version, test it appropriately and then point the PROD alias to the new stable version.
TEST
PROD
To create an Alias with the AWS command line interface3:
aws lambda create-alias --function-name hello-world-function --function-version version 1 --name hello-alias --description "This is a 'Hello World' Alias"
Updating the version to which an alias points (to version 2, for example)4:
2
aws lambda update-alias --function-name hello-world-function --name hello-alias --function-version 2
Aliases can be used to implement a Rolling or Canary deployment strategy. Instead of upgrading all requests to use a new Lambda version at once, the current and new versions can coexist, each receiving part of the traffic.
As new traffic is routed to the new version, the development team can monitor and identify any possible issues with the new code. When confident about it, the team can swith 100% of the traffic to the new version and deprecate the old one.
Each Alias can point to two versions. Both must have the same IAM execution role, the same Dead-Letter-Queue (or no DLQ set up) and both must be published versions (not $LATEST).
The following command (AWS CLI) updates an Alias to route 95% of traffic to the current version, and 5% of the traffic to version 2:
aws lambda update-alias --name hello-alias --function-name hello-world-function --routing-config AdditionalVersionWeights={"2"=0.05}
It’s possible to increase the volume of traffic to the new version (2) gradually:
aws lambda update-alias --name hello-alias --function-name hello-world-function --routing-config AdditionalVersionWeights={"2"=0.25}
In this second example, 25% of traffic will be routed to the new version. To route all traffic to the new version, simply update the alias pointer and empty the traffic weighting parameter:
aws lambda update-alias --name hello-alias --function-name hello-world-function --function-version 2 --routing-config AdditionalVersionWeights={}
No results found