- عنوان کتاب: Architecture as Code
- نویسنده: Neal Ford, Mark Richards
- حوزه: معماری نرمافزار
- تعداد صفحه: 228
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 6.12 مگابایت
یک معمار چگونه میتواند پیش از آنکه فرصتی برای ساختن نرمافزار داشته باشد، درباره معماری آن تصمیمگیری کند؟ انتخاب یک سبک معماری مناسب در مراحل نسبتاً اولیه فرآیند توسعه حائز اهمیت است، زیرا این سبک، چارچوب ساختاری سیستم را تعیین کرده و جهتگیری بسیاری از تصمیمات بعدی را مشخص میکند. برای مثال، در یک معماری بهشدت توزیعشده، تیم باید رویکرد «اتصال سست» (Low Coupling) را برگزیند. فرض کنید معماری وظیفه طراحی یک سیستم جدید را بر عهده دارد. او میداند که به دلیل مقیاس پروژه، به یک معماری توزیعشده نیاز خواهد داشت. او گزینههای موجود برای سبک معماری را به هشت مورد محدود کرده است. کدامیک را باید انتخاب کند؟ یک راه این است که بگوید: «رئیس، یک خبر خوب دارم و یک خبر بد. خبر خوب این است که من بهترین گردشکار ممکن را برای سیستم جدید پیادهسازی خواهم کرد؛ چرا که قرار است هر هشت راهکارِ احتمالی را بسازیم، نتایج را بسنجیم و آن هفت راهکاری را که کارآمد نیستند، کنار بگذاریم. و اما خبر بد؟ این کار هشت برابر بیشتر طول میکشد و هشت برابر هم هزینه بیشتری خواهد داشت.» در این سناریو، معمار در واقع مشغول سنجش مستقیم نرمافزارِ عملیاتی یا انجام تحلیلهای کمی است. اما اکثر معماران در چنین شرایطی قرار ندارند و ناچارند به گزینهای تکیه کنند که اگرچه دقت کمتری دارد، اما در عمل کارآمدتر است: تحلیل کیفی.
How can an architect make decisions about their software architecture before they’ve had a chance to build it? It’s important to choose an appropriate architecture style fairly early in the development process, because the style defines the structural scaffolding of the system and dictates the direction of many decisions. For example, in a highly distributed architecture, the team should choose low coupling. Suppose an architect is tasked with designing a new system. They know that they will need a distributed architecture because of scale. They’ve narrowed the candidate architecture styles down to eight possibilities. Which should they choose? One option is to say: “Boss, I have good news and bad news. The good news is that I will implement the objectively best possible workflow for the new system–because we’re going to build all eight possible solutions, measure the results, and throw the seven deficient solutions away. The bad news? It will take eight times longer and cost eight times more.” This architect would be measuring working software directly, or performing quantitative analysis. But most architects don’t live in that world and must rely on the less accurate but more pragmatic option of qualitative analysis.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: Architecture as Code

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