AWS Serverless: start with your best friends
Tags: aws, serverless, cloud
Published: 2022-05-09 04:56:45

Are you new to serverless? Did you spend all your time working with containers or some legacy application on-prem? Did you read or hear about serverless but have no idea how to start? Do you have no connections in the serverless world? This blog post will help you to begin your journey.

I started using serverless services many years ago when it was a new toy. There was not so much documentation or examples. I remember spending a lot of time with colleagues experimenting with CloudFormation to find the correct configuration.

Luckily for all of us, this is not the case anymore, AWS documentation improved, and there are many examples and frameworks to use. Still, there are many of us that, for work-related reasons, are still working on container-based applications or even on some legacy applications on-premises. There is nothing wrong with that. In the end, this put food on our table, but sometimes I got asked, "I would like to try out serverless, but how can I start with?"

## People

Let's start with the best resource people:

The global [AWS Heroes program](https://aws.amazon.com/blogs/aws/category/aws-community-heroes/) recognises individuals who are prominent leaders in local tech communities. Heroes help others learn about AWS by sharing knowledge via blog posts, presentations, social media, and open-source projects; or by organising events, Meetups, and workshops. You can find the list with their super-power [here](https://aws.amazon.com/developer/community/heroes/?community-heroes-all.sort-by=item.additionalFields.sortPosition&community-heroes-all.sort-order=asc&awsf.filter-hero-category=heroes%23serverless&awsf.filter-location=*all&awsf.filter-year=*all&awsf.filter-activity=*all).

The [AWS Community Builders](https://aws.amazon.com/developer/community/community-builders/) program offers AWS technical enthusiasts technical resources, mentorship, networking opportunities, and emerging technologies thought leaders who are passionate about sharing knowledge and connecting with the technical community. You can find the list of people [here](https://aws.amazon.com/developer/community/community-builders/community-builders-directory/?cb-cards.sort-by=item.additionalFields.cbName&cb-cards.sort-order=asc&awsf.builder-category=cb-type%23serverless&awsf.location=*all&awsf.year=*all).

One way to keep up to date with news, events or announcements is to follow them on Twitter. 

There are many of them, but a good starting point is to follow the Serverless DA team:

- [James Beswick](https://twitter.com/jbesw)
- [Eric Johnson](https://twitter.com/edjgeek)
- [Ben](https://twitter.com/benjamin_l_s)
- [Talia Nassi](https://twitter.com/talia_nassi)
- [Marcia Villalba](https://twitter.com/mavi888uy)
- [Julian Wood](https://twitter.com/julian_wood)
- [David Boyne](https://twitter.com/boyney123)
- [Sam Dengler](https://twitter.com/samdengler)

You will easily find connections to serverless Heroes and Community builders from there.

## Blogs

There are so many of them for all levels, and I think the main references are:

- [AWS Community Builders](https://dev.to/aws-builders)
- [AWS Blog](https://aws.amazon.com/blogs/?awsf.blog-master-category=category%23serverless&awsf.blog-master-learning-levels=*all&awsf.blog-master-industry=*all&awsf.blog-master-analytics-products=*all&awsf.blog-master-artificial-intelligence=*all&awsf.blog-master-aws-cloud-financial-management=*all&awsf.blog-master-blockchain=*all&awsf.blog-master-business-applications=*all&awsf.blog-master-compute=*all&awsf.blog-master-customer-enablement=*all&awsf.blog-master-customer-engagement=*all&awsf.blog-master-database=*all&awsf.blog-master-developer-tools=*all&awsf.blog-master-devops=*all&awsf.blog-master-end-user-computing=*all&awsf.blog-master-mobile=*all&awsf.blog-master-iot=*all&awsf.blog-master-management-governance=*all&awsf.blog-master-media-services=*all&awsf.blog-master-migration-transfer=*all&awsf.blog-master-migration-solutions=*all&awsf.blog-master-networking-content-delivery=*all&awsf.blog-master-programming-language=*all&awsf.blog-master-sector=*all&awsf.blog-master-security=*all&awsf.blog-master-storage=*all)
- [ServerlessFirst](https://serverlessfirst.com/articles/)
- [Serverless Guru](https://www.serverlessguru.com/blog)
- [The Serverless Edge](https://theserverlessedge.com/)

## Podcast

From two AWS Hero Yan Cui and Jeremy Daly, a podcast where you can hear other people's experiences in the serverless topics and more. 

- [Serverless Chats](https://www.serverlesschats.com/)
- [Real World Serverless](https://realworldserverless.com/)

## Tools

Usually, some specialised people help the team deploy the infrastructure in container-based applications. However, the move to serverless could be challenging for many, especially the concept of "you build it, you run it". 

Many frameworks will help you deploy your infrastructure quickly. The most famous for AWS are:

- [AWS Serverless Application Model (AWS SAM)](https://aws.amazon.com/serverless/sam/) 
- [AWS Cloud Development Kit (AWS CDK)](https://aws.amazon.com/cdk/)
- [Serverless Framework](https://www.serverless.com/framework/docs/providers/aws/guide/intro/)
- many others

They all provide shorthand syntax to generate your infrastructure generating [Cloud Formation templates](https://aws.amazon.com/cloudformation/). If, for some reason, the framework does not support a service or a specific feature, it is always possible to use plain Cloud Formation. 

You can integrate them with your preferred CI/CD workflow like GitHub, GitLab etc.

Regarding monitoring and observability, AWS services are integrated with the following:

- [Amazon CloudWatch](https://aws.amazon.com/cloudwatch/) - collect logs, metrics and events, and you can visualise them with a custom dashboard.
- [AWS X-Ray](https://aws.amazon.com/xray/) - helps developers analyse distributed applications.

AWS X-Ray is not the best tool out there. You still need to write code to instrument your service, and because all code is a liability, you want to avoid it. There are many options out there, and my advice is to avoid all the services that are fancy CloudWatch systems that require writing code for instrument services. Many of them do not show the input or the output of the services out of the box. Sometimes, they cannot collect data when you integrate multi-services, making it impossible to debug and/or find the cause of a production issue (fancy CloudWatch).

In my personal opinion, the best are:

- [Epsagon](https://dev.to/ymwjbxxq/monitoring-serverless-applications-with-epsagon-m30)
- [Lumigo](https://lumigo.io/product/)


## Examples

When we talk about Serverless, there are many services to mention and talk about it. Serverless is about using various services and techniques to solve a problem. Still, because this blog post is about starting, I guess the most famous service is the [AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html), the event-driven, pay-as-you-go compute service that lets you run code without provisioning or managing servers.

Lambda supports multiple languages through the use of [runtimes](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-concepts.html#gettingstarted-concepts-runtime) like to mention a few:

- Rust
- GoLang
- .NET
- Java
- Node.js
- Python

Whatever is the language, the infrastructure is always the same, and for this, there is the best website ever with many [examples](https://serverlessland.com/patterns) that present integration with two or more AWS services. 

You can filter by:

- Frameworks (AWS SAM, AWS CDK, Serverless Framework, etc.)
- Language (Rust, Node.js, Python, TypeScript, etc.)
- Services (Lambda, S3, SNS, SQS, APIGW, etc.)

ServerlessLand is an excellent resource because aggregates, not just examples that are helpful to experience first-hand what is possible with serverless,  but also videos and articles and much more, making your serverless journey smoother.


## Conclusion

In the past years, I have realised that Serverless is not difficult for experienced people because it is our job to continuously grasp new concepts like Event-driven architectures, microservices, DI, DDD, etc. What I saw as a recurrent problem is the how-to start, hands-on examples and people to follow.

I hope I have helped you join the AWS Serverless community with this post.
You are not alone. There are many people to follow, and also a weekly [newsletter](https://offbynone.io/) maintained by AWS Hero [Jeremy Daly](https://twitter.com/jeremy_daly) to stay up to date on using serverless, get insights and much more from experts and builders in the serverless community.
Another one is [The Serverless Mindset](https://marcotroisi.substack.com/), a weekly newsletter where [Marco Troisi](https://twitter.com/MarcoTroisi) shares easy tips and strategies for getting the most out of serverless.