Serverless tips & deployment best practices

Arpit Mohan - Jan 14 '20 - - Dev Community

TL;DR notes from articles I read today.

Tips & tricks for developing a serverless cloud app

  • When going serverless, focus on limiting the scope of your functions.
  • Communication between your functions is important to exchange data within your app. You can either directly call another Lambda function from within a Lambda function or upload data to a service and let this service trigger another Lambda function.
  • Protect your code from malfunctioning by setting up a queue, or buffer requests if necessary for uniform scalability when working with numerous services.
  • Your functions have 15 minutes to run before they time out. So, the execution time for your app should be under that timeframe.
  • The more memory you allocate, the more CPU power you have. The same is true for network and I/O throughput.

Full post here, 5 mins read


Serverless deployment best practices

  • Keep your secret out of your source control and limit access to them. Use separate secrets for different application stages when appropriate.
  • When you create IAM policies for your services, limit the roles to the minimum permissions required to operate.
  • Restrict deploy times by locking down your deployments during periods you don’t want to be disturbed.
  • Use a single region or a subset of regions that suit your needs to offset inconsistencies with a geographically distributed team.
  • Create consistent service names for your Lambda functions. It will help you to find relevant functions easily and to tie multiple functions with a particular service faster.

Full post here, 6 mins read


Serverless for startups - it’s the fastest way to build your technology idea

  • With serverless, you pay for what you use - the hidden infrastructural support for scaling is also built into the final bills.
  • Scaling is handled for you. You don’t have to worry whether a function is run once a day or a million times a day.
  • Startups often need to change system concept and functionality mid-way and the agility serverless structure offers is perfect for this use case.
  • It allows startups to dedicate all the engineers to solve business problems and not spend time on server management & infrastructure.
  • Serverless gives startups a chance to deliver quickly, and use speed and agility to their advantage.

Full post here, 7 mins read


Get these notes directly in your inbox every weekday by signing up for my newsletter, in.snippets().

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player