Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Slobodan Stojanovic, Aleksandar Simovic

Rating No ratings yet

Serverless Applications with Node.js walks you through building serverless apps on AWS using JavaScript. Inside, you'll discover what Claudia.js brings to the table as you build and deploy a scalable event-based serverless application, based around a pizzeria that's fully integrated with AWS services, including Lambda and API Gateway. Each chapter is filled with exercises, examples, tips, and more to make sure you're ready to bring what you've learned into your own work. Foreword by Gojko Adzic. About the Technology The benefits of cloud-hosted serverless web apps are undeniable: lower complexity, quicker time to market, and easier scalability than traditional, server-dependent designs. And thanks to JavaScript support in AWS Lambda and powerful new serverless API tools like the Claudia.js library, you can build and deploy serverless apps end to end without learning a new language. About the Book Serverless Applications with Node.js teaches you to design and build serverless web apps on AWS using JavaScript, Node, and Claudia.js. You'll master the basics of writing AWS Lambda functions, along with core serverless patterns like API Gateway. Along the way, you'll practice your new skills by building a working chatbot and a voice assistant with Amazon Alexa. You'll also discover techniques for migrating existing apps to a serverless platform. What's inside • Authentication and database storage • Asynchronous functions • Interesting real-world examples • Developing serverless microservices About the Reader For web developers comfortable with JavaScript and Node.js. About the Author Slobodan Stojanović and Aleksandar Simović are AWS Serverless Heroes and core contributors to the Claudia.js project. They are also coauthors of Desole, an open source serverless errortracking tool, and the lead developers of Claudia Bot Builder.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on guide to building and deploying serverless web apps on AWS with Node.js and Claudia.js, using a running pizzeria example that grows from a simple API into chatbots, voice assistants, and payment flows. Best for JavaScript/Node developers who want to ship serverless without learning a new language. 【Book Arc】 - **Opening (~0%–10%)**: Defines serverless, contrasts it with hosted web apps, and explains where Claudia.js fits as a deployment and API tool. - **Early (~10%–35%)**: Builds the core Pizza API—routes, handlers, API Gateway integration, and Claudia API Builder's Express-like routing—while introducing cold vs. hot starts. - **Middle (~35%–55%)**: Adds persistence with DynamoDB, covers IAM policies and permissions, and works through asynchronous patterns and promises. - **Late (~55%–80%)**: Extends the app into conversational interfaces—Facebook Messenger chatbots, async/delayed responses, and Amazon Alexa voice skills. - **Ending (~80%–100%)**: Moves toward production concerns: authentication with Cognito, file storage and thumbnails via S3, payments and PCI compliance, and running Express.js apps serverlessly. 【Key Takeaways】 - **Serverless shifts operational burden to the provider** (Early): capacity planning, scaling, and monitoring become the platform's job, letting you focus on business logic. - **Claudia.js removes AWS boilerplate** (Early): `claudia create` and `claudia update` handle deployment, while Claudia API Builder gives Express-like routing inside Lambda. - **Start with one Lambda, split later** (Early): tightly coupled features belong together initially; separate functions only when concerns genuinely diverge. - **IAM policies are the gatekeeper to AWS services** (Middle): a DynamoDB call fails until the Lambda's role is granted explicit permission—policies act like visas. - **DynamoDB pairs naturally with serverless** (Middle): table creation, key schema, and provisioned throughput are configured via AWS CLI before wiring handlers. - **Chatbots and voice are first-class serverless targets** (Late): Claudia Bot Builder connects Messenger and Alexa to the same backend, with async and delayed responses for interactivity. - **Production readiness means auth, files, and payments** (Ending): Cognito handles identity, S3 stores static assets and generates thumbnails, and payment processing introduces PCI compliance concerns. - **Migration is a supported path** (Ending): existing Express.js applications can be adapted to run serverlessly rather than rewritten from scratch. 【Reading Tips】 - Deep-read the early chapters on Lambda, API Gateway, and Claudia API Builder—everything later builds on these fundamentals. - Skim the pizzeria domain details if you already understand REST; focus on the AWS wiring and deployment commands. - Treat the "Taste it!" exercises as mandatory practice—they reinforce routing, handlers, and error responses better than passive reading. - Pay close attention to IAM and permissions sections; these are the most common source of real-world deployment failures. - If you only need chatbots or voice, jump to the later chapters after finishing the core API material. 【Coverage Limits】 This guide is based on stratified excerpts covering the book's structure, early API chapters, DynamoDB integration, and later chatbot/production topics; specific code listings, chapter-level depth, and some advanced sections are only partially represented.
Excerpt 1
less Heroes and core contributors to the Claudia.js project. They are also coauthors of Desole, an open source serverless errortracking tool, and the lead de...
View in text
Excerpt 2
are Chatbot is using an API as a Payment system is using an application is still on communicating with your webhook where it delivers API as a webhook too af...
View in text
Excerpt 3
AWS Lambda function that handles pizza and order processing Assembling pizza ingredients: building the API 27 that you can require it from your entry file. T...
View in text
Excerpt 4
oy the code. In less than a minute, you’ll be able to test your API and see if it works. To test your API, reuse the curl command from chapter 2: curl -i \ -...
View in text
Excerpt 5
uests. You can pick the module you like the most. We recom- mend minimal-request-promise because of its minimal required implementa- tion. For more details,...
View in text
Excerpt 6
e the authorizer. For example, to update your create-order.js handler you need to do the following: ¡ Update the handler to receive the full request object i...
View in text
Excerpt 7
t.js file. First, import the list of pizzas from the pizzas.json file, which is in the data folder. Then update the botBuilder message handler function to re...
View in text
Excerpt 8
sage.postback) { const [action, pizzaId] = message.text.split('|') If the message is a postback and the action verb is the if (action === 'DETAILS') { DETAIL...
View in text
Tags
AI categories
ServerlessAWSNode.js
ISBN: 1617294721
Publish Year: 2019
Language: English
Pages: 352
File Format: PDF
File Size: 24.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…