Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Microservices in Python

You're reading from  Building Serverless Microservices in Python

Product type Book
Published in Mar 2019
Publisher Packt
ISBN-13 9781789535297
Pages 168 pages
Edition 1st Edition
Languages
Author (1):
Richard Takashi Freeman Richard Takashi Freeman
Profile icon Richard Takashi Freeman
Toc

Table of Contents (13) Chapters close

Title Page
Copyright and Credits About Packt Dedication
Contributors Preface 1. Serverless Microservices Architectures and Patterns 2. Creating Your First Serverless Data API 3. Deploying Your Serverless Stack 4. Testing Your Serverless Microservice 5. Securing Your Microservice 1. Summary and Future Work 2. Other Books You May Enjoy

Book summary

In Chapter 1Serverless Microservices Architectures and Patterns, we started by looking at the different architectures that are used in many organizations. Rather than having you read many architecture books, watch many courses, and read numerous blog posts, we summarized the important principles and concepts. We focused on monolithic/multitier architecture, SOA, and microservices in particular. Then, we compared virtual machines, containers, and serverless computing by covering the benefits of using a serverless stack, such as pay per execution time, autoscaling inbound integration, and IAM role-based security. We explained some of the important microservice integration patterns and software design patterns and principles, and also covered the relevant serverless communication microservice patterns. We concluded this chapter by setting up our serverless environment in AWS, which included Bash, Python, and the AWS CLI.

In Chapter 2Creating Your First Serverless Data API, we walked through how to create our first serverless data API with the AWS Management Console. We deliberately chose the console as it has a user interface, thereby allowing you to build your stack visually. We believe that it is very important to understand the details of it as this helps you gain a natural intuition and understanding of serverless in AWS, which will be important further down the line. We started with an overview of security linked to IAM, DynamoDB, Lambda, and API Gateway. Then, we stepped through the serverless microservice data API requirements and architecture and walked through all the steps that are needed to build every service or resource in the serverless stack. This included the highly available and managed NoSQL database known as DynamoDB, setting up an API Gateway to receive HTTP requests at scale, and using Lambda to act as a data access layer and the business logic glue between them.

In Chapter 3, Deploying Your Serverless Stack, we focused on building and deploying our serverless stack using tools instead of doing it manually in the console. This is particularly important as you always want to deploy services and infrastructure in a production environment. In this book, we made use of the AWS serverless application model (SAM) templates and CloudFormation to build and deploy the serverless stack. Making use of these SAM templates saves time and allows you to support multiple environments and make changes in a controlled and repeatable way compared to configuring them manually.

In Chapter 4, Testing Your Serverless Microservice, we focused on testing our serverless microservice and covered a wide variety of tests that are relevant for serverless architectures. This included unit testing, mocking, debugging locally, integration testing, end-to-end testing, and load testing. We had to make full use of Bash or Python scripts, which allow you to quickly replicate such tests in your organization.

In Chapter 5, Securing Your Microservice, we talked about securing our microservice and the options that are available in AWS to secure all the resources and services in our serverless microservices stack. This included discussing AWS Identity and Access Management (AWS IAM). We also discussed how Lambda security works with respect to IAM and inbound integration with event sources, along with other AWS resources. Then, we talked about how we can make DynamoDB secure.

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 $15.99/month. Cancel anytime