Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DevOps for Serverless Applications

You're reading from   DevOps for Serverless Applications Design, deploy, and monitor your serverless applications using DevOps practices

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788623445
Length 264 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Shashikant Bangera Shashikant Bangera
Author Profile Icon Shashikant Bangera
Shashikant Bangera
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Introducing Serverless 2. Understanding Serverless Frameworks FREE CHAPTER 3. Applying DevOps to AWS Lambda Applications 4. DevOps with Azure Functions 5. Integrating DevOps with IBM OpenWhisk 6. DevOps with Google Functions 7. Adding DevOps Flavor to Kubeless 8. Best Practices and the Future of DevOps with Serverless 9. Use Cases and Add-Ons 10. DevOps Trends with Serverless Functions 11. Other Books You May Enjoy

Best practices for Serverless


As we know, the serverless architecture consists of a small piece of code called a function, which runs in a stateless container. One major purpose of this architecture is to scale and descale as and when required. So, bearing this in mind, our best practices are more or less focused on this aspect of serverless. So let's look at a few of the best practices involved with the serverless concept.

One function, one task

When we start building functions, we might end up with monolithic functions behind the proxy route and use a switch statement. So, if we have one or a few functions to run our whole app, then we are actually scaling the whole application instead of scaling a specific element of the application. This should be avoided, as scaling would be a problem in this instance, and we also might end up with large and complex functions. 

Functions call other functions

We should avoid calling a function within another function because we will end up paying more for...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image