مجله علمی تفریحی بیبیس
0

دانلود کتاب جاوا اسکریپت در AWS Lambda – نحوه استفاده از Node.js در معماری بدون سرور

بازدید 797
  • عنوان کتاب: Javascript on AWS Lambda – How to use Node.js in a serverless architecture
  • نویسنده: Tamas-Sallai
  • حوزه: جاوا اسکریپت
  • سال انتشار: 2022
  • تعداد صفحه: 80
  • زبان اصلی: انگلیسی
  • نوع فایل: pdf
  • حجم فایل: 5.45 مگابایت

سرویس AWS Lambda از زمان اجرا Node.js پشتیبانی می کند که اجرای کد جاوا اسکریپت را در ابر AWS امکان پذیر می کند. این کتاب به شما آموزش می دهد که چگونه این کار را به درستی انجام دهید، از اصول اولیه نحوه عملکرد سرویس Lambda از طریق گزینه های پیکربندی و نحوه برنامه نویسی برای بدون سرور متفاوت است، همه تا ابزارهای خاص برای کمک به شما. در پایان این کتاب، جنبه‌های خاص استفاده از جاوا اسکریپت در AWS Lambda، بهترین شیوه‌ها و مشکلات رایج را می‌شناسید. ساختار کتاب از رویکرد پایین به بالا پیروی می کند. ابتدا محیط Lambda و سپس نحوه پیکربندی توابع جاوا اسکریپت را یاد خواهید گرفت. پس از آن، ما به برنامه نویسی و سپس اشکال زدایی می رویم. در فصل مدل اجرای لامبدا، با محیط اجرای لامبدا آشنا خواهید شد. این پایه و اساس انتقال توابع به یک پشته بدون سرور است زیرا Lambda در چندین جنبه مهم متفاوت از برنامه های روی سرور عمل می کند. در این فصل با این تفاوت‌ها آشنا می‌شوید، مانند نحوه شروع نمونه‌های تابع، معنی آن برای زمان پاسخ و ذخیره‌سازی و نحوه تخصیص منابع. سپس فصل Setup نحوه پیکربندی یک تابع جاوا اسکریپت Lambda است، مانند نحوه تعریف کد آن، و نحوه ارسال پارامترها به آن. نحوه عملکرد مدل مجوز Lambda و خط مشی پشتیبانی AWS برای هر نسخه Node.js را خواهید آموخت. سپس به بدنه تابع بدون سرور در فصل مدل برنامه نویسی می رویم. شما یاد خواهید گرفت که چگونه برای Lambda کد بنویسید، چگونه ورودی/خروجی را مدیریت کنید، با دیگر منابع AWS و موضوعات دیگر ارتباط برقرار کنید. سپس نحوه رفع خطاها را در فصل Debugging توضیح خواهیم داد. شما در مورد مدل ورود عجیب و غریب لامبدا، و نحوه به دست آوردن بینش در مورد آنچه در داخل تابع اتفاق می افتد، خواهید آموخت. شما همچنین در مورد X-Ray، راه حل AWS برای اشکال زدایی متقابل سرویس خواهید آموخت. در نهایت، با برخی از مشکلات رایج و نحوه حل آنها در فصل موضوعات دیگر آشنا خواهید شد. اینها ابزارهای خاصی هستند که اغلب به اندازه کافی ظاهر می شوند تا بخش خود را تضمین کنند. نمونه‌های کد در Terraform نوشته شده‌اند و پیوندهایی به مخازن کد برای آزمایش آسان وجود دارد.

The AWS Lambda service supports the Node.js runtime that makes it possible to run Javascript code in the AWS cloud. This book is to teach you how to do it right, starting from the basics of how the Lambda service works through the configuration options and how programming for serverless is different, all to specific tools to help you. By the end of this book, you’ll know the specific aspects of using Javascript on AWS Lambda, the best practices, and the common pitfalls. The structure of the book follows a bottom-up approach. You’ll learn the Lambda environment first, then how to configure Javascript functions. After that, we’ll move on to programming, then debugging. In The Lambda execution model chapter, you’ll learn about the Lambda execution environment. This is the foundation for moving functions to a serverless stack as Lambda works differently than on-server apps in several important aspects. You’ll learn about these differences in this chapter, such as how function instances start, what it means for response time and caching, and how resources are allocated. Then the Setup chapter is how to configure a Javascript Lambda function, such as how to define its code, and how to pass parameters to it. You’ll learn how the Lambda permission model works and the AWS support policy for each Node.js version. Then we’ll move to the body of the serverless function in the Programming model chapter. You’ll learn how to write code for Lambda, how to handle input/output, interface with other AWS resources, and other topics. Then we’ll cover how to fix errors in the Debugging chapter. You’ll learn about Lambda’s peculiar logging model, and how to gain insight into what happens inside the function. You’ll also learn about X-Ray, AWS’s solution for cross-service debugging. Finally, you’ll learn about some common problems and how to solve them in the Other topics chapter. These are specific tools that come up often enough to warrant their own section. The code examples are written in Terraform, and there are links to code repositories for easy experimentation.

این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:

Download: Javascript on AWS Lambda – How to use Node.js in a serverless architecture

نظرات کاربران

  •  چنانچه دیدگاه شما توهین آمیز باشد تایید نخواهد شد.
  •  چنانچه دیدگاه شما جنبه تبلیغاتی داشته باشد تایید نخواهد شد.

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد.

بیشتر بخوانید