- عنوان کتاب: Building Event-Driven Microservices Leveraging Organizational Data at Scale
- نویسنده: Adam Bellemare
- حوزه: ساخت میکروسرویس
- سال انتشار: 2025
- تعداد صفحه: 485
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 7.93 مگابایت
میکروسرویسها و معماریهای سبک میکروسرویس سالهاست که در اشکال مختلف و تحت نامهای مختلف وجود دارند. معماریهای سرویسگرا (SOA) اغلب از چندین میکروسرویس تشکیل شدهاند که به صورت همزمان و مستقیم با یکدیگر ارتباط برقرار میکنند. معماریهای ارسال پیام از رویدادهای مصرفی برای ارتباط غیرهمزمان با یکدیگر استفاده میکنند. معماری رویدادمحور قطعاً چیز جدیدی نیست، اما نیاز به مدیریت مجموعه دادههای بزرگ، در مقیاس بزرگ و در زمان واقعی، جدید است و نیاز به تغییر در سبکهای معماری قدیمی دارد. اول، یک نکتهی واضح. ارتباط همزمان به این معنی است که سرویس درخواستکننده منتظر پاسخ به درخواست خود میماند. این نوع ارتباط معمولاً انتظار برای پاسخ را مسدود میکند و تا زمانی که پاسخی دریافت نکند، کار دیگری انجام نمیدهد. ارتباط غیرهمزمان به این معنی است که درخواستکننده بدون انتظار برای پاسخ، به انجام کارهای دیگر ادامه میدهد. در حالی که روشهای متنوعی برای پیادهسازی ارتباطات غیرهمزمان وجود دارد، برای اهداف این کتاب، ما در درجه اول بر استفاده از رویدادها از طریق جریانهای رویداد متمرکز خواهیم شد. به هر حال، این کتابی در مورد میکروسرویسهای رویدادمحور است. در معماری مدرن میکروسرویسهای رویدادمحور، سیستمها با صدور و مصرف رویدادها به صورت غیرهمزمان ارتباط برقرار میکنند. این رویدادها مانند معماری انتقال پیام (در فصل ۲ بیشتر در این مورد صحبت خواهیم کرد) پس از مصرف از بین نمیروند، بلکه در عوض به راحتی در دسترس سایر مصرفکنندگان قرار میگیرند تا در صورت نیاز آنها را بخوانند. این تمایز مهم است، زیرا الگوهای واقعاً قدرتمندی را که در این کتاب پوشش داده شده است، امکانپذیر میسازد. میکروسرویسها کوچک هستند و برای برآورده کردن نیازهای تجاری سازمان ساخته شدهاند. در حالی که تعریف کوچک بودن میتواند متفاوت باشد، سرویس باید (از نظر مفهومی) در ذهن هر فرد جای بگیرد و بر حل مشکلات خاص تجاری تمرکز کند. تیمی که مالک میکروسرویس است باید یک تیم نسبتاً کوچک باشد، یا تیمی که بیش از دو پیتزا برای سیر کردن مصرف نکند، همانطور که با پذیرش معماریهای میکروسرویس توسط آمازون رایج شده است.
Microservices and microservice-style architectures have been around for many years, in many different forms, under many different names. Service-oriented architectures (SOAs) are often composed of multiple microservices synchronously communicating directly with one another. Message-passing architectures use consumable events to asynchronously communicate with one another. Event-driven architecture is certainly not new, but the need for handling big data sets, at scale and in real time, is new and necessitates a change from the old architectural styles. First, a point of clarity. Synchronous communication means the requesting service waits for a response to its request. It will typically block waiting for a reply, doing no other work until it receives a response. Asynchronous communication means that the requester will continue doing other work without waiting for a response. While there are a variety of ways to implement asynchronous communications, for the purposes of this book we’re going to be focused primarily on using events via event streams. After all, this is a book on event-driven microservices. In a modern event-driven microservices architecture, systems communicate asynchronously by issuing and consuming events. These events aren’t destroyed upon consumption as in a message-passing architecture (more on this in Chapter 2) but instead remain readily available for other consumers to read as they require. This distinction is important, as it allows for the truly powerful patterns covered in this book. Microservices are small and purpose-built to fulfill the business requirements of the organization. While the definition of small can vary, the service should fit (conceptually) within one’s own head, and should focus on solving specific business problems. The team that owns the microservice should be a relatively small team, or one that takes no more than two pizzas to feed, as popularized by Amazon’s adoption of microservice architectures.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: Building Event-Driven Microservices Leveraging Organizational Data at Scale

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