
- 242 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Building Serverless Architectures
About this book
Build scalable, reliable, and cost-effective applications with a serverless architectureAbout This Book• Design a real-world serverless application from scratch• Learn about AWS Lambda function and how to use Lambda functions to glue other AWS Services• Use the Java programming language and well-known design patterns. Although Java is used for the examples in this book, the concept is applicable across all languages• Learn to migrate your JAX-RS application to AWS Lambda and API GatewayWho This Book Is ForThis book is for developers and software architects who are interested in designing on the back end. Since the book uses Java to teach concepts, knowledge of Java is required.What You Will Learn• Learn to form microservices from bigger Softwares• Orchestrate and scale microservices• Design and set up the data flow between cloud services and custom business logic• Get to grips with cloud provider's APIs, limitations, and known issues• Migrate existing Java applications to a serverless architecture• Acquire deployment strategies• Build a highly available and scalable data persistence layer• Unravel cost optimization techniquesIn DetailOver the past years, all kind of companies from start-ups to giant enterprises started their move to public cloud providers in order to save their costs and reduce the operation effort needed to keep their shops open. Now it is even possible to craft a complex software system consisting of many independent micro-functions that will run only when they are needed without needing to maintain individual servers.The focus of this book is to design serverless architectures, and weigh the advantages and disadvantages of this approach, along with decision factors to consider. You will learn how to design a serverless application, get to know that key points of services that serverless applications are based on, and known issues and solutions.The book addresses key challenges such as how to slice out the core functionality of the software to be distributed in different cloud services and cloud functions. It covers basic and advanced usage of these services, testing and securing the serverless software, automating deployment, and more.By the end of the book, you will be equipped with knowledge of new tools and techniques to keep up with this evolution in the IT industry.Style and approachThe book takes a pragmatic approach, showing you all the examples you need to build efficient serverless applications.
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Hello Internet
- Setting up API Gateway
- Creating a REST endpoint using our current Lambda function
- Manipulating an HTTP request data and the incoming Lambda response
- Setting up CloudFront CDN for enhanced HTTP properties
- Decoupling a Lambda function to authenticate API calls with a Bearer token
Setting up API Gateway
"ApiGatewayCloudwatchRole": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": [ "apigateway.amazonaws.com" ] }, "Action": "sts:AssumeRole" } ] }, "Path": "/", "ManagedPolicyArns": [ "arn:aws:iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs" ] } }, "ApiGatewayAccount": { "Type": "AWS::ApiGateway::Account", "Properties": { "CloudWatchRoleArn": { "Fn::GetAtt": [ "ApiGatewayCloudwatchRole", "Arn" ] } } } Creating the API
"RestApi": { "Type": "AWS::ApiGateway::RestApi", "Properties": { "Name": { "Ref": "AWS::StackName" } } } Creating the resource
"TestResource": { "Type": "AWS::ApiGateway::Resource", "Properties": { "PathPart": "test", "RestApiId": { "Ref": "RestApi" }, "ParentId": { "Fn::GetAtt": [ "RestApi", "RootResourceId" ] } } } Creating the method
"TestGetMethod": { "Type": "AWS::ApiGateway::Method", "Properties": { "HttpMethod": "GET", "RestApiId": { "Ref": "RestApi" }, "ResourceId": { "Ref": "TestResource" }, "AuthorizationType": "NONE", "RequestParameters": { "method.request.querystring.value": "True" }, "MethodResponses": [ { "StatusCode": "200" } ], "Integration": { "Type": "AWS", "Uri": { "Fn::Sub": "arn:aws:a...Table of contents
- Title Page
- Copyright
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- Getting Started with Serverless
- Infrastructure as a Code
- Hello Internet
- Applying Enterprise Patterns
- Persisting Data
- Building Supporting Services
- Searching Data
- Monitoring, Logging, and Security
- Lambda Framework
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app