Seven Secrets Every Architect Should Know



Similar documents
What an Architect Needs to Know

How To Teach A Software Engineer

SOA REFERENCE ARCHITECTURE: WEB TIER

Apache Sling A REST-based Web Application Framework Carsten Ziegeler cziegeler@apache.org ApacheCon NA 2014

The Advantages of Enterprise Historians vs. Relational Databases

Authoring for System Center 2012 Operations Manager

Cisco Active Network Abstraction 4.0

Co-Presented by Mr. Bill Rinko-Gay and Dr. Constantin Stanca 9/28/2011

Provide access control with innovative solutions from IBM.

SOACertifiedProfessional.Braindumps.S90-03A.v by.JANET.100q. Exam Code: S90-03A. Exam Name: SOA Design & Architecture

Key Benefits of Microsoft Visual Studio Team System

SIMATIC IT Historian. Increase your efficiency. SIMATIC IT Historian. Answers for industry.

entigral whitepaper 10 Success Factors for RFID Asset Tracking Deployments

Five best practices for deploying a successful service-oriented architecture

Component Based Rapid OPC Application Development Platform

Getting Started with Multitenancy SAP BI 4.1

Establishing your Automation Development Lifecycle

A Sensible Approach to Asset Management

Research on the Model of Enterprise Application Integration with Web Services

Complete Web Application Security. Phase1-Building Web Application Security into Your Development Process

Guideline for stresstest Page 1 of 6. Stress test

10 Things IT Should be Doing (But Isn t)

Automated Acceptance Testing of High Capacity Network Gateway

Software Engineering. Software Engineering. Component-Based. Based on Software Engineering, 7 th Edition by Ian Sommerville

Building flexible, easy to change and rock-solid applications with BRFplus decision services. Carsten Ziegler, James Taylor

Business-Driven Software Engineering Lecture 3 Foundations of Processes

AP Computer Science Java Subset

Java Application Developer Certificate Program Competencies

WebSphere Business Modeler

Business Process Management In An Application Development Environment

Driving Your Business Forward with Application Life-cycle Management (ALM)

The Advantages of Plant-wide Historians vs. Relational Databases

A Static Analyzer for Large Safety-Critical Software. Considered Programs and Semantics. Automatic Program Verification by Abstract Interpretation

September 18, Modular development in Magento 2. Igor Miniailo Magento

Software solutions for manufacturing operations management. Helping manufacturers optimize the Digital Enterprise and realize innovation

Development Methodologies Compared

Software Engineering. So(ware Evolu1on

How To Use Safety System Software (S3)

The Evolution of Load Testing. Why Gomez 360 o Web Load Testing Is a

Emerging Technologies Shaping the Future of Data Warehouses & Business Intelligence

Asset Management System -iasset

IBM Unstructured Data Identification and Management

Contents. Introduction and System Engineering 1. Introduction 2. Software Process and Methodology 16. System Engineering 53

How To Build A Financial Messaging And Enterprise Service Bus (Esb)

The Role of the Software Architect

Engineering Process Software Qualities Software Architectural Design

The Software Development Process

Document Change Control

How To Apply Software Archeology To Your Development Process

SQL Server Master Data Services A Point of View

Knowledgent White Paper Series. Developing an MDM Strategy WHITE PAPER. Key Components for Success

RCS UI Field Security (UI Masking) Tobias Keller, Product Owner Custom Development, SAP SE December 2014

zen Platform technical white paper

Design with Reuse. Building software from reusable components. Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 14 Slide 1

User Stories Applied

2014 Software Global Client Conference

Verona: On-Time, On-Scope, On-Quality

Alice. Software as a Service(SaaS) Delivery Platform. innovation is simplicity

Autodesk PLM 360 Security Whitepaper

Network device management solution.

Systems Integration: Co C mp m onent- t bas a e s d s o s ftw ft a w r a e r e ngin i eeri r n i g

Software Engineering Introduction & Background. Complaints. General Problems. Department of Computer Science Kent State University

Introduction to Web Services

Extend the value of your core business systems.

Multi-view Architecting

SOA: The missing link between Enterprise Architecture and Solution Architecture

The Business Value of a Web Services Platform to Your Prolog User Community

Tomáš Müller IT Architekt 21/04/2010 ČVUT FEL: SOA & Enterprise Service Bus IBM Corporation

Service Oriented Architecture (SOA) An Introduction

Defining Quality Workbook. <Program/Project/Work Name> Quality Definition

ISC EDUCATION WEBINAR. Physical Security Information Management

Integrating VoltDB with Hadoop

Secure Web Application Coding Team Introductory Meeting December 1, :00 2:00PM Bits & Pieces Room, Sansom West Room 306 Agenda

Automated Data Ingestion. Bernhard Disselhoff Enterprise Sales Engineer

API Management Introduction and Principles

Architecting For Failure Why Cloud Architecture is Different! Michael Stiefel

Identity Management System: Architecture

LOW RISK APPROACH TO ACHIEVE PART 11 COMPLIANCE WITH SOLABS QM AND MS SHAREPOINT

GECKO Software. Introducing FACTORY SCHEMES. Adaptable software factory Patterns

Assessing and implementing a Data Governance program in an organization

EC 350 Simplifies Billing Data Integration in PowerSpring Software

The Way to SOA Concept, Architectural Components and Organization

Monitoring Windows Event Logs

Configuring Java IDoc Adapter (IDoc_AAE) in Process Integration. : SAP Labs India Pvt.Ltd

Using Cellular RTU Technology for Remote Monitoring and Control in Pipeline and Well Applications

.NET and J2EE Intro to Software Engineering

Cisco Process Orchestrator Adapter for Cisco UCS Manager: Automate Enterprise IT Workflows

Realizing business flexibility through integrated SOA policy management.

Requirements Engineering in Healthcare: Challenges, Solution Approaches and Best Practices

Holistic PLM for the development of mechatronic systems Proof of concept: Synchronized Mechatronics Engineering enabled by SOA

How To Manage Security On A Networked Computer System

Records Management and SharePoint 2013

IndustrialIT System 800xA Engineering

Declaration of Conformity 21 CFR Part 11 SIMATIC WinCC flexible 2007

Transcription:

Seven Secrets Every Architect Should Know Frank Buschmann Siemens AG, Corporate Technology Page 1 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

A challenging question! Observation Many architects have a sound knowledge in software engineering methods and concrete design and programming technologies, both broad and deep Yet time and again architectures and their realizations suffer from insufficient quality, regarding modularization, interactions, or non-functional quality even if scope and requirements are sufficiently known! What makes architects a master of their craft? How do master architects design? Page 2 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

The Seven Secrets Agenda Drive Design Through User Tasks Be Minimalist Ensure Visibility of Domain Concepts Use Uncertainty as a Driver Design Between Things Pay Attention To Implicit Assumptions Eat Your Own Dog Food Page 3 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret One Drive Design Through User Tasks Page 4 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

HLV - 060608 - UB. vsd : NM & CS T H E C R A F T O F S O F T W A R E A R C H I T E C T U R E Unusable architectures are useless An architecture is more than a set of interacting parts, technical infrastructure, and smart design concepts! EAI OPC (SAP) Northbound Gateway (s) Information Repository Configuration & Activation Managed Object Common Nam e SNMP Plant UI Application Services Archiving Services Trend Logging Audit Trail Communication Framework Alarm Logging Alarm Client Monitor & Control Network View Operational and Maintenance Services Alarm Diagnostic Client Common Services License Availability Tracing Color Security System Mgmt Language Time The two key questions are: How well does it support operators in their daily work? Those who live with the system? Miscellaneous Services Southbound Gateway BACnet OPC (s) SNMP Report Workflow Scripting Key Service Service Category Application Clients Entities (Field Devices, Network Elements ) Communication Framework Communication How well does it support developers in its use, realization, test, maintenance and evolution? Those who live within the system? Many projects fail due to missing or balancing the two aspects! Page 5 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Task-oriented design Design software systems with explicit consideration of how they will be used and how they can best support the work their users will be doing [Larry Constantine] Select essential user scenarios Operational scenarios: user tasks and workflows; including their quality attributes Developmental scenarios: realization, adaptation, configuration, evolution, Define the architecture along the selected scenarios Components, workflows, interfaces, interactions, infrastructure, guiding principles Focus is on the tasks, not on single functions Pay attention to sensitivity and trade-off points Address non-functional quality Page 6 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Walking skeletons Goal of a task-driven architecture specification is to create a walking skeleton A set of end-to-end slices through the system that correspond to architecturally significant user tasks with users being end users and developers Implemented in product quality: functionality with associated quality Application Assistant Application Prototype only (based on portlet technology) User interface Sys Mgmt UI Fault Mgmt UI Logon Web UI Find User Web UI Web Portal Framework Contact List Web UI Basic Comm. Web UI Business logic Presence Aggregator Common service Authorization Policy Engine Authenticatio n and Privilege Service Domain Service Presence Service Buddy List Management Call Control and Media Service Infrastructure System Management Fault Management Persistence Framework Client Event Push Service Runtime environment Database Symphonia Runtime Env. SyMOM Event Model Messaging Registr. Service / Discovery OEM Comp. Container (Servlet, Portlet, EJB, OSGi) Logging that provides a direct feedback loop on the architecture s sustainability! Page 7 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret Two Be Minimalist Page 8 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

On minimalism A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away [Antoine de Saint-Exupéry] Page 9 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Maximalism interface Iterator { boolean set_to_first_element(); boolean set_to_next_element(); boolean set_to_next_nth_element(in unsigned long n) raises( ); boolean retrieve_element(out any element) raises( ); boolean retrieve_element_set_to_next(out any element, out boolean more) raises( ); boolean retrieve_next_n_elements (in unsigned long n, out AnySequence result, out boolean more) raises( ); boolean not_equal_retrieve_element_set_to_next(in Iterator test, out any element) raises( ); void remove_element() raises( ); boolean remove_element_set_to_next() raises( ); boolean remove_next_n_elements(in unsigned long n, out unsigned long actual_number) raises( ); boolean not_equal_remove_element_set_to_next(in Iterator test) raises( ); void replace_element(in any element) raises( ); boolean replace_element_set_to_next(in any element) raises( ); boolean replace_next_n_elements (in AnySequence elements, out unsigned long actual_number) raises( ); boolean not_equal_replace_element_set_to_next(in Iterator test, in any element) raises( ); boolean add_element_set_iterator(in any element) raises( ); boolean add_n_elements_set_iterator (in AnySequence elements, out unsigned long actual_number) raises( ); void invalidate(); boolean is_valid(); boolean is_in_between(); boolean is_for(in Collection collector); boolean is_const(); boolean is_equal(in Iterator test) raises( ); Iterator clone(); void assign(in Iterator from_where) raises( ); void destroy(); }; Page 10 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Minimalism interface BindingIterator { boolean next_one(out Binding result); boolean next_n(in unsigned long how_many, out BindingList result); void destroy(); }; Clarity is often achieved by reducing clutter Simpler to understand, communicate, and test But don't encode the design or code Compression can come from careful abstraction Compression relates to directness of expression Abstraction concerns the removal of specific detail Abstraction is a matter of choice: the quality of abstraction relates to compression and clarity Encapsulation is a vehicle for abstraction What is the simplest design that possibly could work? [Ward Cunningham] Page 11 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret Three Ensure Visibility of Domain Concepts Page 12 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Information hiding The two predominant concepts in our software string int What are the implied application concepts behind string and int? What is their intended usage contract? How can we ensure intention and contract are visible and enforced? Page 13 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Why visibility matters the Ariane V crash Velocity was represented as a 64 bit float A conversion into a 16 bit signed integer caused an overflow The current velocity of Ariane 5 was too high to be represented as a 16 bit integer Error handling was suppressed for performance reasons Damage 370 Mio. USD Original code fragment* (commented and reformatted) -- Vertical velocity bias as measured by sensor L_M_BV_32 := TBD.T_ENTIER_32S ((1.0/C_M_LSB_BV) * G_M_INFO_DERIVE(T_ALG.E_BV)); -- Check, if measured vertical velocity bias can be -- converted to a 16 bit int. If so, then convert if L_M_BV_32 > 32767 then P_M_DERIVE(T_ALG.E_BV) := 16#7FFF#; elsif L_M_BV_32 < -32768 then P_M_DERIVE(T_ALG.E_BV) := 16#8000#; else P_M_DERIVE(T_ALG.E_BV) := UC_16S_EN_16NS(TDB.T_ENTIER_16S(L_M_BV_32)); end if; -- Horizontal velocity bias as measured by sensor -- is converted to a 16 bit int without checking P_M_DERIVE(T_ALG.E_BH) := UC_16S_EN_16NS (TDB.T_ENTIER_16S ((1.0/C_M_LSB_BH) * G_M_INFO_DERIVE(T_ALG.E_BH))); *Source: http://moscova.inria.fr/~levy/talks/10enslongo/enslongo.pdf Page 14 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Concretion of implied concepts Discovery of types for values, management and control, collectives, domains, and so on Implied concepts or collocated capabilities can be made more visible by recognizing these as distinct and explicit types usage becomes type Explicit types support testability and design by contract For example Strings for keys and codes become types in their own right, for example ISBNs, SQL statements, URLs Recurring value groupings become whole objects, for example date, address, access rights Date Integer day, month, year String getdate() Integer getdayinmonth() Integer getmonth() Integer getyear() String isbn ISBN String asstring() Page 15 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Expressive architecture Visibility in a software architecture amounts to expressiveness Components and their relationships should be related by names that reflect their nature Components should have cohesive responsibilities, contractual interfaces and explicit relationships By looking through the artifacts, both the essence and detail should be apparent passes telegrams to creates; retrieves results Telegram Forwarder Telegram Converter Command Processor executes Command Telegram Receiver passes telegrams to passes commands to applies Logging Logger Strategy Log Alarms The network Expressive designs are easier to understand, communicate, realize, test, and review Pick Workpiece SetPoint Calculation A (simplified) design for a telegram handler in a factory automation system Page 16 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret Four Use Uncertainty as a Driver Page 17 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

The indecisive architect Uncertainty is no excuse for indecisiveness and escape! Mix-ins for property definition and acquisition Property Class A Property Class B Network Element Property Class C Strategy to allow instance-specific overriding of all inherited behavior When architects cannot agree on an explicit domain model and escape in genericity Someone else will decide and make it concrete!! Abstract X Strategy Concrete X Strategy Abstract Y Strategy Concrete Y Strategy Strategy for algorithmic variation Abstract Z Visitor Concrete Z Visitor Visitor for generic data handling // Hard-coded enumeration of domain types enum Node_Type {A, B, C, D, E}; // Anonymized... // Hard-coded instance configuration switch (node->type()) { case A: node->add_property (new Persistance(new Data_Visitor_A)); node->add_property (new Network_Connectivity());... Page 18 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Use uncertainty as a driver The most interesting thing is not actually the choice between A and B, but the fact that there is a choice between A and B [Kevlin Henney] Limit uncertainty scope Make uncertainty explicit Drive uncertainty resolution Decide Localize, isolate, and encapsulate the fact there is a choice To avoid rippling effects on other system parts Works well for structural, algorithmic, implementation, and many technology choices; difficult for cross-cutting concerns Decide explicitly (!) to not decide now (!!) Take concrete action to (iteratively) drive decision Spikes to sharpen requirements and technology understanding Spikes to get feedback on each option s sustainability Scenarios in a walking skeleton to stress operational consequences of the most promising option Active Design Reviews to explore the developmental consequences of the most promising option Page 19 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret Five Design Between Things Page 20 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

An all to common interface tale The interface signature when released /// Manage business object metadata (tags) in a key value map class TagManager {... /// Assign a string "value" to the identifier "tagname" public void set(string tagname, string value);... } Tag management did not include tag removal The solution 1 2 Developers discovered need for tag removal but changing a released interface is difficult Change set() implementation to handle both set() and remove() Convention to use a prefix "r:" in tagname to indicate removal /// Call to set a tag tag.set(tagname, value); Tag removal added without interface modification /// Call to remove a tag tag.set("r:" + tagname, new string()); but at the cost of contract violation Page 21 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Be where things meet The architect s main territory is between things, where they meet and hurt: Interfaces, Interactions, Integration. Interfaces Interaction Integration Complete, meaningful Role-specific, expressive, usable Defined contract, stability Simple, meaningful, direct, efficient Quality of Service (reliable, fast, scalable, secure, configurable, ) Task-oriented, end-to-end quality Systems integration, plant integration, HW / SW integration Application integration, service integration, process-level integration, data integration, UI integration, device integration Deficiencies in interfaces, interactions, and integration tend to show up later in the SW lifecycle than modularization and implementation issues: during system integration, system test, roll out, operation thus their resolution is costly! Page 22 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret Six Pay Attention To Implicit Assumptions Page 23 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

The cost of the unspecified (1) Imagine you are asked to maintain this code Where do you likely feel comfortable? Where is the code smelling badly? Where do you think challenges occur and maintenance is expensive? Page 24 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

The cost of the unspecified (2) The business success or acceptance of software often depends on qualities that are rarely explicitly stated 85% of SW Lifecycle costs are devoted to maintenance and evolution Developers spend 50% of their time in the process of understanding code Koskinen, University of Jyväskylä, Finland http://users.jyu.fi/~koskinen/smcosts.htm Page 25 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Watch out for dissatisfiers Pay attention to implicit assumptions: features or qualities that are expected and create trouble if not present, but rarely expressed explicitly! Functionality of competitor or previous generation systems Performance Robustness Maintainability [check your spec] Address expected features prominently, constantly, and from the very beginning To make them visible and explicit in your architecture To avoid costly late changes and nonconformance costs To avoid customer dissatisfaction A KANO helps identifying expected requirements which tend to correspond to dissatisfiers Page 26 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Secret Seven Eat Your Own Dog Food Page 27 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Theory and practice can differ! Even the smartest design concepts can create trouble! Introduced with care and intention; well understood by architect Misunderstood by all others; or hard to implement Architect intention Problem General data handling logic, e.g., copy, move, needs applicationspecific extensions Solution Interceptor framework in data handling logic; Self-contained interceptors provide local extension logic Business Logic Data Logic Actual use Interceptors Were not closed but called back normal application logic Application logic issued nested calls to data logic Effect Oscillating control flow between business logic and data logic Circular, uncontrollable, unstable call chains Page 28 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Architect also implements! Eat your own dog food! Actively participate in implementation! To experience the consequences of your own designs! To communicate your intention, and minimize misunderstanding To discover the devil in the detail But, don t loose yourself in code! Prefer pair programming over lone coding To cover all system parts To reach all developers To avoid being overloaded or on a critical path Focus on essential aspects or scenarios To ensure developer habitability To ensure concept sustainability Write tests and conduct active design reviews To guide development To test interfaces, interaction, integration Page 29 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

Seven Secrets Every Architect Should Know In Retrospect Page 30 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

In retrospect The seven practices complement an architect s knowledge, technical experience, and design skills regarding Communication to stakeholders Key measures: explicit attention to their interests, making interests visible and tangible, e.g., through walking skeletons or attention to uncertainty Economic architecture Key measure: strict adherence to KISS principle Understanding that code matters Key measure: explicit consideration of developer needs, early coding, presence and participation in coding Seek for feedback Key measure: visibility and explicit attention to challenges, both known and unknown Page 31 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved

A departing thought Structural engineering is the science and art of designing and making, with economy and elegance, buildings, bridges, frameworks, and other similar structures so that they can safely resist the forces to which they may be subjected. [The Institution of Structural Engineers] Page 32 The Craft of Software Architecture Seven Secrets Every Architect Should Know Frank Buschmann, all rights reserved