Sei sulla pagina 1di 16
5 Moving From Quali to Architecture Architectural Styles win Mary Saw ‘Wem coe he toga ene ince ha cr gsge Sern orn of ng et nse oa itt chee ome former oat ‘The previous chapter expe ia genca tm, bow architects fet uty arb Qualites pode general uieline and pal for ye a el sc many ines nthe reser of his bok, lies mscver ae 00 “geo enabl he design of yom. "This ptr dna the we of rca hits in ahi Ing chica sepects of software quality. Paters ceca in all pass of esi nhs book, we wl ely and dacs wo Kn of pater ym eas (ich we mans as archlecturl sper, dtd in Chater? and duced ee) an design ptems(Gscussed i Chapter 13)-A thi kid of ters code pat, wil ot erated in depth Bea it i ot by aod Ie ‘eciectal nase, except isles his pate can Be sed aro th ‘ctu componeas by means of coding tempts. Tels wil te dscused {Chup 3 an ils in Chapter ‘What all pate ae in common that they ze eee“ that an be tailored wo fi gion station and abt which cela carci ae Lows. Each pater represents package of doxgn dion that ha ad ‘en made an ean be ose, a et What mot leet oat hm he Seale an hace ke dns of development when each i appli. Stn pats ‘sod oe ape by an arcie eign pers sally our wifi ones ‘a Nery Shave Sef Camp Sse, Cage Mal ey. 4 CHAPTERS: Ming rom Qu Acne fan aciecrlcompoost nd coe ats Hive inte implementers ice bapa by dicuting achtstur ses ee 5.1 Introducing Architectural Styles “an aciecrl se is oftware in some ways analogoas © un aches ange nc ar Goh or Oe Revival or Queen Ae stasis of renee anaes conning tose ese tat aren et Fee. An areca sofware spe dzone byte lowing + Aset of compuect pes (2 dat repost, 9 recs a proces) tht ‘pao sme function at eine «Jape eyout of hese components ining ir runtime te ‘Seats «tof vera costs or xp, data repository 9 lowed (change te lensed in sexo connztrs (ester all emote posed al, aa cy a ane communication, coordination or operon Tei fs an cba fone of shies at mec Soe we sae gurus Gmc 0) aout the amb of components ole a nn run ay have to er connec by 2 EO or ramp. sy 19 pipes Siler maybe ambigows aout tbe mech 2B er ech component loos some se ai-o a tr campe) iad hs exci. Sips a always ambignos See uncon of he se One of he cranes may bea dnb, Or ‘ample tute Hind of dts ay 2. ee nd Devi Carn have cataloged 2st of architectural ses na a hate send Wy examining collection of existing systems, Tele eet obcvton ta rset shractns for comple 9% Rats et we doen sor aa them, x common in ote aoe “Sent oy occur regulary assem designs, but hey ect lly eee Sec omlogs cm help a ecopize when wo es ae si, eT inet ns gr sae capri io reed FM. ie vem syscall of independent components. Event Svems temsties fave 90 plc and epic invocation. Sie a otal the ccomstancesn wich itis ppp apy 8 oe pe rena fa ection, wel ta abi ur ofthe soe tn mopping a bch se pe howe Figure 31 In he est sen loving acl Sn 95 nae eee omar eo oe = —— a oithy = PERS Pevoney aoa — cette wm maces | | eres oe, FOURE St Aral callg of ace aye panied by areas weltate a coer look at how hese ss reed cach brad wil ‘ice aenemen of te amily wee of Fgue 51 ee DATA-CENTERED ARCHITECTURES Dace achieve tol of ativig {dan Tem deesoned shes es 9 Saco a wach Sis sd pda ofa wily meses eet append ‘Fan syle’ san Figo 924 ht rn on angen eed ‘aol Th shed tl oh le ees nd pa) ay Yap Se epoch le) a ace pst (ch + Wactbou. ‘itp th atconered sp shown Bre a aie pstory (ec tli becass contol ner, ican tly carn gy Son {ee tteear hing moe ha ced at oe a om ‘Sh wih erro che, Ts mea commen (ont ald the cainaion mes) dng he two mbes eon (he oot ‘Seen tbr ai wr oh non changes tad ee sve A Bator ies fon Ghat ro bedio coal ars san tom be eda Ireoting Aeescl Syek 97 fRaunes2 ‘The catecaneed se Doascenured sys a becoming increigy import bcos ey ed ecu soln inepa. May yams pecially tose Bat fees petting componente meving dain oh i of Sickie mtn Tey tve de arn a be coma ely Tejeit ox ter and at ore npn of te ches. Tes, ‘Seip ssa he on con iy ll ri so mote ib peo change ictinaby oy patel cent case oer et ‘Siete ates Cooling sone cc wil eens tos ty ‘Tear chance ferme ‘Nc tt she dh ch ae indent ung ees, wht vehi acter se bln neni compere oe Wee Ste Ton ee ator at ty sare en ech oe, DATAFLOW ARCHITECTURES: ‘Dat-ow achiectres have the gal of cheng the quale of sea nod {hay Te dt ow stl carci y viewing the yim a seis of {tamformaons on svcente poses of ipa da. Daa ener he system and {hem owe dough ne conpoent ones ne wl hey are ened © me Frat conan (otto dia store) The sje has two subtype, Bach ‘Sct ad pipe afer In the ach sequent sl, pocsing se. | ermponces ar depedent rogras an the nsurpton that ech ep ns to completion Sloe te nex sep ars ach batch of aa stand tte fewer te sep The peal apn for is see clasical at [povssng, This sein Fie 33. “Te pip-ant ier yo embasae to icrenenal ansfrmatio f data ‘bysouzeive components. Thien piel sein te UNIX fay of pean ‘ems Pies an ee nedeer They nearly sor dt ea Cee oot Cision) [ | [ROURES3 The batch sequent ee ‘oszeam eit conteral information, in 9st namin between estan pe ae staces ad sinply exit more dats betwee tes ‘Both pipes nd ers ae ran nonerminialy el 0 ore song ‘int or taamlasone ae psubl, Contato he ape aie Sle dk. fate the way in which pips ad ers cun be oan. A pie as a sous ee ‘tat cn en be cone aft’ oupu poeta sak end aca ony be one ers iat or. Pipes systems, he al oer syes, uve a umber of advange and dissvntages. Their advantages rnp fw from thee npiy—e Timed ways which ey can intr wih ir enone Ti mplity seas thts pge-and-te stems fon 20 mesa 0 les ha he ‘omposito of te functions fs pies. Tete ae ao amex component Into to manage Te pipeandfiter syle aio snplies sian mast "ce aod echaoes ese forthe sre reasoners stan lone nd we can teat them as Back ones. Also, bot pies and files can be erica com posed: Any combitatoe of ke, comace By pipes. an be packaged and ‘ppear to tho extemal wold as fle Fal. tease «Ser an proce ‘np in slnon from he et ofthe 5m, pipand ie syste ses ‘le pall sri, proving opportuni for eabancng a spt’ ‘focransvithont meyg Pipe tr sens ao salle om sme datntge. Beas ofthe sway that probe bake dowa a dss, ch metal empty ‘conned So, nerve aplication ar culo crete i iste Aso, ‘er ordering ane ule Ter no way fr ers to cooperate eat {ose a prolem, Performance in sch syem ie fealy po forever ‘eons, of which stm from th natn of Fnctonalty ea makes pies {es s0 modal: hse esos ae iste blow “+ Bes pial Fors he lower common devomintor of dia present ‘hon Gach a ASCH sean) If ti pat sea eed tbe tafe mo wkes cv er pys this parsngunpaming orerioad + tate camo produces cpt und its eed alo snp ‘equ an int tir of nimi se Aso ili example of at thats fom his polem. bound baer are sed the system could + ach filter operat a spare proces proce cll ha neuring some ovethend each tines aval 98 CHAPTERS Mong From ste Ace VIRTUAL MACHINE ARCHITECTURES PELSEi ins amber of wey It can allow one sims nd est) pao eR nc yettece tit suc nw Marwan itcan simula “nate” pe or comme night mls nd flr ystems) tat woul mS Spin con, or dangerous et wid be else ee amc of vil nachines ieee alse sem, sya sels aad cratnd angus pssst or eal, he 88 It ROR des rn on wp of he ave Vian Mating which los Be ee atom dependent Viral chines have he st shown Fee tpme shows tee Kids of dat the program being nerd, rae rrpens sch te ae of variables ssid ia he xeon of Toma he eral ite of eee ch the vans of eer ae er uatanem being eet). The nrreuton eae sels ye soe wnt pou beng nrc, wes ntermal sae,e ‘Seton th itacon,ptetally ups the prom’ a. Sucnung xpos vin a ier ads exit though be aif et progr ond intodace modieaon rine, bat ete a ne cet becase ofthe aston compusion involved in ecction. CCALL-AND-RETURN ARCHITECTURES. Ccaltandcctun acteurs ae the goal of aeievig the quan of mot Ghig Ss seuatiy, Calband etre architec Rave Been the dominant a oe Sle ng software sens fore pat 30 yews. Howes, ‘hu a ee namber of sels, ach of whieh Mas inresing fests, vec reatong Ams Se 99 a proyramand-toine andes 2 sown ia 55, cimiodpagamtg peng Tic pao dmpet open Salt Dicer wep aie eat A popu sess eta Tee ihe oft neh ope ey {trom one pe ans Ponte pce cl tants na grogrmcet nes iets tC a er omen ae io ean poms by assuage compote advantage of maltiple processors. in nae eed cal ems, he cea ‘Some fp esc re i i, ae ee SSS Sy SS ca pee = ‘als may te Kmper io coelch I ttg ¢ Son cur chin, tne psec ia - ‘standard main program and subroatine systems, aaa nerve of brat dan he pes sow ia Pag 36 we the mn sen fear ccs The cerned pa (ignite te sect ata ye praign fom wich Hoh cease he ‘ing sei oon i ne et od coe uly of mei Te tude an wap te fn snl ot nk evoumen. Aces eet ‘Slowed ny trogh pried operons, pial tows es mcd, wich {conraiel osoposse cals: Threaten poms et ‘dz pondply ee promis open fcc Tero Inman etn! S108 ‘reunese The objected se, service need ot kno, shold at kno any abou hott se The mua fens that Ssingsh the obje-orened|paniem fee anact da pes ae ibesance (be errchieal arin of defini ‘Selcaey and ptjmephie (he bit ote te seats fn opea= ‘So stants. “Won jet ast fam composers ha pore ak box sess nc ober omgocnts a equ ose sevice, his i cal based hn serier Sc oppned wa process band let serve sj, which we wil 9 Che patenis Lae stems a sown in Figur 87, one in which components ae assigned layers coma nercomponentitracon, We fet sw Lye {Ghapcr 3 ta be pus venom of ths suboye each fev! communicas only ‘Sev edie neighbors Te lr to scieve the gaits of iiailty ‘Ti saa, pub. Te lowe ner provi some core funtonaiy ack ‘tare, oe an operating system keel Each scesie layer bl mit foie iin he lower layer and providing some series hate PRET {igen mals ue of Te upper es en provid vil machi hess ‘Beice scm of cobercot fancuonlity open which an aplication, ef 3 more ‘Sins vial machine can be bie Many of hc snes preset in his feo make we of layered errs for por, nia, ad ewe of ‘yen peut Ie pte layered systems ar fees ot pe": ‘Remo oe yer ay tk to fans ese than ts edit ‘girs This called er Bridging nd ths pact i wed whee runtime ‘enya and he vei of acc ost rough uy yes “uotare camer be sorted) But yer ing comomises the made ‘oposely pole syste bil ona cual machne—an sstacton of the imryingtrdwar sofware-—tayer ring (beds we of ome ee Teel amp ypasing the poly lye) wil make te fot of poring te ‘Sears peter Oe te fer and fhe iajerng spe poring te Sem "unc wines a somties dw coi ce, otc lowe ‘las mont een onan res OUREST The yeaa se, ‘moles reimpementng ol the orb lye, and ths can be ove ene fr ‘i sytens that e bt on teva machin, For example «progam wegen {Joa requis oo poring efoto ran ton re ae harvard of ‘tre platforms, bene Joe presen a noon vital machin bacon oo ‘many laters The Ive langage developers doe poring ence so at Wes INDEPENDENT COMPONENT ARCHITECTURES Independeatcompoosn aches consist of «mane of independent pro ‘sito bjs tht commute Cough messiger Alf ese weirs have he gol of actevngeudifiality by decoupling vais porns ofthe mputstons. Tey sen daw each oer bat ply do ot Geely conta ct the: The mesages may be paseo named arias phe ens of ‘nt sjtems sing te polissabcie poraigm, may be pated anions ‘naumed pariants. “Brn seme te bein Which conti pat of te model Inia comport announce das tt ey wish wo be (pubs) wi ele evo ‘tent tt of somamed componmts These oer openets my Fe a8 ‘erent in thas of bse) ty dos, when the data appr ty te invoked and recive the ata Type, event yes make eof mesa ‘manager hat manages communicton tong the component veing 3 com> one (hs onlin) whens message aves for I his pulabbub- Ferbe prism, meage manager may 6 uy 20 conta te compoosas 0 ‘hich frvare mesnapes Componeo ete pe of Infra a ey 102 HMETERS Neve Frm cn Ace ae wing provi and hat hy wish rece. They hen pubis inform Soe by seg to he mestape maage, wich fowarhe MSE. on sera tn lier! a “hus parigm i inorant case cops component implement sons wr Knowing cach eterna al eto Ar enone, sy lnvolesemoping one a el, wich ea ut comoners anon in a Ack ny irasagongh a xchange of Ct en ty 2 we Ts swaping cc component megan, has en see come ‘Taw eapaeing nl mason even os wb born in Che Dandie Bose vet ystems the her see ndepenient compas is communicating pce! sf Tes ae he sie mules ses Sch {S'beeaw in Che sad wil ce again a Chap 1, Of tect aerer iat ino sibype The passive te qty of sabi. A sen {ns seve daw oo oe me cet which are peal lcd sews + ‘Sree. Tetien orgs ssl te acer whch was, scoot ot ‘Shuccoouly. were te cents est Ite aver wots ryoehone), {Croums cone! toe chen a sane ine ha ru da He seve ‘tents pcos tts oly i th cent (whic as its wn ead soa. HETEROGENEOUS STYLES, Stra ae seldom ul fo a ingle ye and we say hat such ystems ae teropecmas Ther ar ts Kind of betroneney hy ae a follows 1. Locational erogenous, easing at» eaving of ts rine se ‘ares wl eve pen files uy in eres. For example Some branches of al rogran-and-sutouies tem mighthave stared dat epost 2. Hierarchical hxrgencous, meaning aa compoent of one xy wes compos ists according be eles of afeee se, as ge ‘we situates, 2 Silane htroencos, meaning tha nyo sever iyes may well bent dsepom of ess. “This at fom of heterogeneity scogizes tat styles do nt prion sofware scectres ito nonovertaping lean caer You may ave ied this ‘lead The datecode a he epionng of his swssion was compo tted:ndpenent lent mosh ean incepeniat somponet architect. “The ne inalapred sytem may compe objector ngepeent ompoaen's (reven sates oa man progra-and subroutines sem, The omponenss {St yeant ie system se euly implemented st proces tat operat ‘depot, waking on inputs tte or pain ths sia to indepen en componet syste hood of exseton x predetermined ‘Tosee a itlsraion of snatneosheterogecy consid he lowing ATE, smc from Caper ta pear contd mechani calender estate for layers wit te Extended Computes pay lye Hence, ia meer ofthe ayer syle of he call-anera amly + proces ctr reveal lie mulprocesartitctare fhe com tenn prune se in independent compen fly. +s moda secure forms abstract dra types and etcop forthe lack of lnherane objets, suggesting an object-oriented ‘sur fim + tus Data Banker akour conforming tthe Hacktourd syle of be ‘ec ceired faly, + Some ipa ta make ses ep hough he sytem, troagh ovis Interface Modul, tough Dats Baner, combined with ee ‘alu inthe Function Dive, and tuk out rough th Die Itt ‘Module guia. risa suech, but tis pose ws dece he ATE we ‘ecue a dts Bow sje as wel 101 CHAPTERS Mov From aes Ace In Chplr 1, wel se anther sat thst consists sinulneosy of objec, Taye nd cooing procene. in fa comercial censerver sss ‘sth dos tha communica over « CORBAe infsrucire (ce Caper can chen be decid as jee objectesel roe stems uggs ‘hs yi ofthe spe ty nat be ntl cough a descipve ve ‘eat eserves ro cage he tye 20, "These seas noth fle oreven the only et They a neat effort ata the ciety proving mere ops vcabulary Tor ‘fscussing ei sera. terse il emerge a te Sed mts. “Shoat hs ask of deine exepeeaton discourage ws? Probably 9 ‘Senet ne a copnitve ade sad communication cus thn anythin ele ‘Wecan them shorn to comey meaning move compo: fasion an Would eerie be poe Aad just a me kom te acitess coms of Thm siycures tht oan ceatly resemble cach oer abou not sures ‘ht morn ome tem betes eat for egies in) en em in he next ecto, we take a closer bok sts and the discriminating factors ang tem, Then we Sw hi infra 6 Dep us chose specie leo even problems. 5.2. Organizing Architectural Styles ‘Bocas an achieve conse nil from oe {tciet pee to undestod te Inereatonsipe amos sex In peor, unerstabing the rmiiatone ofan secre that the esl of combing yee guess proms of sce analysis. We wl ‘Gach in Caper. Fornow hugh we can analyze the st ses just Intodaced owe how they are sete, what hey bef comson aed ow they might be ede wo ae other design possi. In ti suction me teal oss ad ay some ofthe yet that pear inswar e5>- "nm nny of whch were nodicd in he previous ect. We Goths fo te falowing eases + By binging ot slg erences th sft he subi of style for ‘rou aba th ariet x empoweredonake more infored selon. + By sowing which ls te varios of oer, tbe cet an be more Cofident in hing sppropite combination of es. + Te eaes edn clas ye wil phe designe oc on import desig ses by providing checklist of pcs to conde, they Sting ‘tpn forcement onli Sess, ‘We tat nude the fears that we wil we wo dese and dsciminte sje ‘ronan noua Se 105 FEATURE CATEGORIES [Aste desigoe’ pinay inrestion of an schitctareofen focuses on he characte of thinteiton among components, Ths, te major anes of esi ‘ation te contol and dats eres rong components. We ean, however, ae fie sceminaons win tee dimensions, sch he owing + How coulis shred, ested al ransfemed among te component + How dati commonised hop he syiem + Ho dt and cont interact +The ype of asning these permis + Taine of components an connector hat ar ed inthe le ‘Constituent Parts: Components and Connectors. The lomale Kinds of soeponent and connec eimpoatdscrmintrs anong sles. Cone ‘et nd conecors rth pry buling blocks faeces. Inthe ‘Revit, a compost 2 i of ante that performs same fincon ‘ine. Etanpes nclae programs, objets, proce nd ler A comme |s'a mechs that meds communica, coriaton. or coopeion mong components. Inplemeaions of comer ay te dstibued ove ‘may componeas; ofa hey Go not cored to sce elemento be ay Sing sem. Examples incde shred pesto, ene procedure cals, ‘nevage pasing prea, sd a rea ‘Selecting he pes of cote pr des 24, however, niuely enfy these, which ie why re ae oe few cate. Fite some set ‘lyon fier dsincoas witha «peo componeat oconectoe Sone of ese SGnincions appear in Table 51:2 fel veo «remote precede call sat example CControt tues. Conta ses deserite ow contol pases among cpe- sents and how the componets week tps temporally they Ice ef + Topology What geome Frm does tbe coat ow forte syste ak? ‘pipeline often ar ica (notre ort lent ace col toptogy a niepopaetaebroates tl fates hcrersce (eshaped topology some sever systems hae sar haandapae) tepals: ase consisting of communicig Seq processes ay tavean ira teplogy- Win cach ping ima be set spe the det i hic conto ows. The tepaogy maybe sta dais, "is detemioed byte biting ine of te clement as Seserbed bom * Synchro. How depen re component’ acne wp each te contol sae? ln ace stm be sto any component ples the ste ofl ees for nance, bach ego stems components inlockstep with exch ter ese oe doesn bp exeeon wl fs 106 CHUPTERS Movin Fem cualees to Acco preecst ishes. See inst, mull ata (SIMD) algorithms for ‘ue ylel mache lo wor i eksep.Insynchrnous ses ommpencs scree eur aod ten, but ter sate relatos recreate Asychrmou compacts ar lanl wpa ‘irate symone one ina while, nd oppor emp ‘ro socharouenmovs agents wrk comply independ frm each ‘Srp. Cacsep sen can be sequential opal, pending etow mny treads of col un hoop te. Ote fom of 8c ‘iy imply pm. + Binding ie. When the ety ogre in transect ‘yratoncablshed? Sore coool wns ar pedtermind a OE tere sou ade) ime comple, or iocton eG wed “Groporang spanish proces Otters rebound dynamically tile te system is raring. ata auen, Dass ei wt ve ens nie cong: * Tplog. Date mology dest gomets ap oe yes [ito puke ales eae fo to pee” + Conny.” Ho coins he ow of a ono essen? COS otto sen daa esa prad- ‘stipes win ene Sse ince Dat stormy Scr Sip ntone on detects or ow me Gi eampete- ‘env ace) +N" os sow aie at aon nen ese ti pad rem component compen inane oe anor king valle Sepa cee ate shy Ie component td eal tSdiRmooitio pce iss acopreweopn mode. nso ‘Ses dn webu or mca pate Binding ine When een patina nse con ‘penn cable tun nyo be sane cota ie CControVData Interaction esues._Itration stes desrbe the relationship Seoweon cri cool nd dts ss, + Shape, Arte conto ow snl da-ow topologies substantially ‘mori? + Directory Ibe shapes ae sb the sane does conta ow inthe nme dren dts ort opposite decion In adat-flow yest ‘Sach ipa itr, onto nd data pas togeter from componest © Component Howere in achentserer sl, cova tends 1 fo ino te Sevvr an it om inh ews, Fateamens tyes 107 {ype of Reasoning. Dire clases of aches lend ems to di efeac yps of sly A sem of component operating seacoast pull els to vast dierent extoning approaches (eg. soataiii Ste machine don) ths assem Wat ences ata Bod agecce of se ‘eps (¢g. fncton composition). Many anaylstecbiges compose te ‘tls om ana of subsruces, tat thi depends onthe bility to coring ‘analyses. Tas, erent acter exe goad mes fo eet “aly ecg. Your ce of achtectar ay be iaened bythe ins of arly you equi “ible 3.1 sows a sample set of aciesur ye, grind scoing these feature exegres, We wl explore sme ofthese sles ince dtl in the nest section. 5.3. Refinements of Styles ‘Te classiatin shame of Tale $.1 maps out a smal par ofthe space of srcitectralsles, tu dos wot cps te chs found in prac, ee ‘Soon hi sel ss fies: Each row ca be elabratd on capa moe ‘aed itncons Inti vston we ste rte of Table 1B pr {ily clatoring on wo wellknown fies of wes re fen ein ye evelopment. We do tis bean the general sles nce in he previous ‘estos eave my sngrat esigadesosenoundThey provide a apch ‘arcu dig bt ae ab suse in and of temacies ose ‘sin, Refinements of those ses ae tot oly pose but nce Bloe they can end oan architecture The eneren we pesat ahs econ ae ‘ae Special purpose os ht can Be hep nan arc’ concepal wali. REFINING THE DATA-FLOW STYLE Date fow nevors dese sts whose components operate on ae, con- ‘oobislyavalable das steams. The component ae gna in airy topologies ta steam the data with nonrnsforming connate. Us of a ty topology makes medication of he ste move out becsse nese Stes among component are scontned. Ths, rl 9 wiht ple reste ao he topes and ana eres Als ln, ed Cartan salad what hy call the piped flr syle by way of oonaling he seas of acter se (a oped x Joging thei coasevetca, as we have dove). They en ee (veaping) ‘arian ofthe plea er ayes ows: 1. Symone without fottck lop eye (aye) 2 Ppsies inex) 3 Systems with only fa-ont components TUBLEES A Fst Sane Caseenton of Atel Sy os componente _Conmaion__Tepogy* tycveny® tie" _Topoing/* Contuty* Moss* tna” super Sretane ‘a yon gh et pu i Sr We Theat hema suioroer aaa thoes ae mw etmek a ene Seam Hemimee commen ta tmnt ee aban sy opti taf et tring ay mee) ‘eee tate teat AR Beh a ea a we te sat rein a war Sather te ane tere, Pore Ste ow trem cr oar ark der mec Cet eae ey 7 her cn saree sour tama eerie neo we te coe 110 CHAPTERS. Mong Fam Quin Antiae ‘Ther oval ie-nd-er syle comesponds othe dataflow network se of “ibe $1-The components we clement at asyuctvonoastarsfor npn spe with inal rennet wane). The tuners ae con ‘ected in sous topologies y high-volume dateow sans, “The pple bt cas be sec in Table 3.20 ea specialization of ate how neti a ond conalopolgy we resid frm arbirry in the {sneer o lear in hespcazd form bat he lsieabon re her ‘rae etic The fot and aye subsp sly ier fron the geal xm oly by posing een tpg restictons "UNE pipes ad her, 4 specazation nt weed by Abowd and ok Teague bt widely ie elswbers, can be sen be a subseialation ofthe [Prcine syle The book ep oly be pei atte nes progr Tas case~is wee o ea the Command igen oe open Sse, Fortes is component ar thos tht cept ASC seams not nea at “The casicton sows that al often se (aye, pipelines, fn ou [UNIX piper ler) compris fay thar we hve ca date fw network, In whe meter are Gangs ally by tpogeal erica, TM $2 ehows he elton among the major ses an he fay menber. [REFINING THE COMMUNICATING PROCESSES STYLE ‘Acs anlynd and cataloged family of yer bed on process commun- ‘ring witheach ober via mesage ping. This aly crespod tthe com treme poner syle in Table 51. Commnicaing poceses ae used ‘hive the inl of och and scabs, bt performance and conus thon cosine ow ese goals ae chewed. Andrews Seas gh "ave tocar race and sti fren gl The next paras ‘how bow each varias baie by reting (pecan) the bs comme fatng proses Sle ‘One-Way Data Flow Trough Networks of Firs. Tis sa version ofthe (de ow sevotksubule implemented wit cammuacuing process. In his ‘son th inplmenaton with meas nodes on te ea fo aban, ‘Apoc oteters the sytem snd males sway hough a veri € tansfo- {non each tansfrm acomplabed bya sepa roms The srs ned ot ‘elias Andtors ger an example of te of pct foming 20g et trove To anaiyarh ubaye, went Dow ities rom both ma Ses a iow Tocastitasa sein of at fow oto, we 1) esti ‘tua and coal opologe to one-way Bows and (2) rela is dang ‘tremens fom cominoos to spade To cast it sa specialization ofc ‘ating roceses, me rests topologies rom abi 0 one way ad is Symi wo epnivenou. That, ths syle is within the ssc of ‘rome ser: the dt ow oetwork sn commaricatng posses. ‘AMLEA2 Speciation othe Data-Fom Network Se m 112 CHAPTERS Moen Fem Cutest Ate Requests and Replies Between Clots and Servers. Clients and server, ‘ppl opeaealy shown fm Tae Team te ten be a specialization Sli communiaing process syle in whch he topologies. syne, Slo re reed rm th get form, This ithe ae fr, which pores ‘Betoun reqemet ro main ste Foran ongaig eqpence of teractions tween he ent andthe see ackandForh (Heartbost) Interaction Batreen Neighboring Processes. ‘heart oct cates ech node he pees raph sen infomation ‘Gotan hen aber n sew information. An example o plying is agi is their: tpoogy ofa network: On cack ea exch ross preset {pms communes with ver) eter ros can, radeasing i is fhe weplogy. Between bea, every proces sini deffo just Seat cabling wih curenten of he yea. The compustion trai ‘mc wise a completo condition has bree met Ande popes vai ‘ons of ths se depending 00 wheter hued memory swe, We mode this form of proces ntereson by esting the yaoi ofthe commun Catngprocece spe locator ough asynchronous versions ae fron) ta etcing the sured nt dtsbuted-aa cos by deserting te na and coat topless appropriately. Probes and Echoos in Graphs. Probfecho conguatons work on Gacom [se gps A poe sa mesg sen by 1 procs fa et of sor ‘Eo i te reply Pobelecho alrite ca be use fo comput «det ist ‘each on «gap, dcover network topologies, or broadest wing eho ‘Te poefsbe sani can be escbed as specializing te communicating feces se by resting te topeogies a colt grap yon ‘yvomyochonos, ia mode pase and fo dcetion 1 sb. Brondcasts Btween Proceses In Complete Graphs. rons slaps theudininuihedpoces to sends tesage tall ober proces, An examle ‘to bromlcat te tae of cena ck na soft eal-me system. Moving ‘Se brant spe oncasaleaton samp) rues resting the dts oo ‘oar or a poton of the competion invoived inh asst) and te ‘Taide to trond he cond oplogy emis abi “Token Passing Along Ege na Graph. Token psing ages se ens {eps tind of menage) comey tempor igh to the proses recs the ates Token using ed, for stance, in lg to compte he {asco tit seyachenous tm ort impleeat dtd aa ‘iclson of sed soars Token using referent of he omnia ftp pcsses yen esti the syshrnist) vo asochoooo, de © [msc and fo Section ose, The polis emai rir, and te co uy vena pric ow volume, ing Sys syton Deyn 113 Coordination Betwoon Decentralized Server Processes. In this model, ‘Wendel serves eplsted wo cee te ally of eves (exam ‘ince of tefl or ackog ofa ingle sever) The esece ofthe ag "itm to pov the appearnce to ens of ingle, ceria server Ths ‘orth the sone soodne wheat ole omnia acon ae ‘Oye seer csotchnge te “mtu” se wabou agremcat of suit Injory of he ober. This wished Young seme singlet by passing Inlipe tokens among de sre rciecurly thi elgoin eal 0 the tokenpasing ssp dseussed revs, Repllcated Workers Sharing a Bag ofTasks. Uae decentralized serves ‘Saimin mele cope fds styl pov ail copes of com- Prttonleement The replated worker ye Ist pimary too for SIMD Tnchin programe, Paral dvieandconger x oe off muifetaons. (ne roces canbe he ani, prominent ble and gg ‘sbptbloms Other proses ewerkrs song he subproblens and ge fing and sminsering fer sprblens ss css) Subsoluons tule teek up ahi pth nil he origi ads ca semble te wl onto the iba prt Tose SID agate aw nb of commit Ing pocescy, me seit the toolopes fo hice, te secon) To ‘yectconous, mode fo poo or shared (Spending on whabe hed das ‘Sed and fw deco sae "ible 53 on tenet page summa ths desciptons 5.4. Using Styles in System Design ‘Wich sje shoud you tne to designate, for tao wi ‘The ane (course) that it depen onthe qaiies hat mos comer ou yo ask ap arcs el ya su! eee for sem, de re ‘hate anor wl costed i tema of he htt solu th mos {iia devon problem Ifthe system had to be learclble and achieving i ‘wold be pratima you woud probably st ear ou he alert edn “in warner apc othe schitectre erage ys ha hae gh ‘francs ae wel rif ht mee aot problems, you would not hear te olson forth aie Ite ate kne atthe ye nas gogo ve for ‘lng time, prowing snd fing mie constant, you Would er abot te layered object and src data yes used olla the yt om change "he sytem aso bad to be secre bu ed an ofthese Solan, sch ‘hereto, yo woud ther soot esl fo at wl ne. “Sa ke ht As an eve a the primary spon of 2 Hse Jinan sea where discourse and toopht a moe imprtant o mes weer. ‘ihe yes may well apt ad be rial But a good rule of mbit dhedsaieas Wisse aaa i =z = Zow Bow om FE eit Sao oe Zoom om Bone Bow ee ae ae 116 CHAPTERS. ves Fem utmost Ace ‘ADLESA Pues o Thunb for CrosinganAchtecta Se Cond eieeg uy Cou win Aesaca Se 11T TABLESA_ Ades of Thunb Choesngan Architectural Sie Caines ae Tents Soe Wee as Ha aap pan Thasised— —T copa na be sso ander “Socrccee” Sees ve ‘een wang pela conpaon om ‘etaptins evan soon ne ansner tment tome Se sient + Tetanus can boa bee Me gb ‘teat satan mal asing poe al Wispcainec no gris tmny actos eee oy oor sua Gonansbgnacan bean, Duancortered Acetate et ros eat managment. an Maa paat anette ‘ronson! “Theo cenopret sn tame oman ot Gausce —"hasnnpreqmnotossspamhe som ae aoa 08 foooy Sr +S it a yee tin + iécad + Yar palatine em ig conte wi anama au Swamy ntl ery ep oper *Yeuhon dora cnputon nav romaine nnn. Plipemipt oc: —Aicone stra dna cab met pererman 8 Doves Thamar be etic fe ard tg > — cana 0 teeny ste —The man er dln awe ef rg fousenone paces oy Chere ~Thy acon be de tenn tn ean Sey mumrcrnoe rem crbemen rain oor trina ~The st fa syst ub need on ‘Toor tarasnet yun oat compose mo font wveoa ote fsa hing sot ‘heptane mba se on a (nent en testcat ——_~Aonacongoans eat be spvrzs tom ene hayes perature lan eg “Hr tare ra corm Wn hoe inated pooh Troon coy mat be sce or Te tea seman ptm bate conn Soest sccaaed pray ed ore ang carts nt = ‘See pcanybcanese eae Beo Serstocaore 5.5. Achieving Quality Goals with Architectural Styles “Tis section eats bow diferet sits ssa diferen gel “tus by showing how a ingle oye, sige four lect ways ier Init oatcame. This empl orga provide by Paras and moe by ‘Shs and Galan i cae sty Bat Sbows diferent ache aleve fora ey Word a Cates WIC) sytem One ofthat of is aay [Sete tow tow on system cold be despa as ayo ways. The oe aly waa the vas in ach ewe: wha changed was te Stns ness with aoe oa porto of ganas. "AKWIC ryt tesa set oft ins a ip, prods ll clr shits of thes lines td ten spats te rea A KWIC sys primal ‘edt crt a doa at is qui seachble ease every hy word canbe looked up alghatetlyevenif tee ot pparat de being othe og ‘nde pre “Te fllowing ian example fhe input nd oupt ofa KWIC system: Inpue Sequence of ins “A Inesdutono Sofware Arte ey Word in Coster, 18 CHAPTERS: Mong Fam Otis Acie nip: Cesta hited sphabetined ie ering a) ‘Ka aodacton wo Sofware Arcee ‘Ache an orosuion Sofware Context Key Word in {in Comext Key Word Inrodactn to Softrare Acie an Key Wordin Content Sofware Architect an Intoduction ‘Sofware Acer an Inedion ‘Wordia Context Key ‘Tiscate tay wat xg use by Pumas to make an apuent forthe we of Information bing a 8 design Gcipine In Shaw ad Cara's mali thy (Goes fou possible achiecares for it sysiems the ela! “szaw-nan ‘cucu, dened y Paras, the improved norman cg sc ‘bf archers, an imp ivocaon schist, and 2 UNIX pipe {in erates Pam's opal sluins a shown in Figs 39, Pama to slusons—ile eal with eset anctnaly— ier inte suppor forthe quay atte of performans,maiiabiy easb ‘jan extend Th origi! stredmemery Slaton (wh sae infor ron is sored in global vrais, scesuible by all components) has god erformance bt por mda carcass. Modify is oor ease {hy ange ted forma. for example could poten aes every comp ‘ovine system, The abst Sta ype snlaon one Gr had. as bee ‘Sopot fr modify erase st hide inplemenison deals oh as dat forma inside ara ts pes. Aa iaflomatoiding approach ely ‘monies performance onewhat cae moe terface ae ave nd Stigpally st me space ecu ffomaton rnc sre Itsy be cle {o extend te fnctonlty of is suon because Ure ele complet ltsrcton mio the bert ats ype ‘Sand Gan prvi wo eet slns wo tis case sty: saa sin arin an implictavcaton acest abd oe sing append ie sl ton. Tot arches ee von nips 5.10 Ine plc imecaton hits cal othe Cua Shit fet are tae implicit, by inverting dt it the ines ble as ae cals te Alp ‘wine neon. the pipe ander acer, wo fers prvie the ene Fanconi ot st he inpt seam nd one sorte sie steam The inc ivocadon echt sopons exenbity. fone mated a 2 functon © tis erciowre, at encson would ony need w be rege) ‘got neve uch ate isrion of new tin it eof the bus), and the fenton wold stmaicallyeecated whoever he event cured, (On the er han is acta ofr poor contol (asthe der of the new fron wih respect a functions pelos repre wth te ie ‘Berio’ and pour space lato (ects tas repleed inthe wo Lines br Te grander architecture nine ad lan ad fers e Ds pert for ee of he for semaines. The Cala Shi and Alphabetize fercoull picked up and we, unchanged in another syste widow aecing Sting i thr erioamens However this Slaton sess fice! than the ‘ters besa each ler ply rea separate proces and may nar some ‘reed pring kt ingutantTomating i owt Als, te pipe nd er ‘Shon may ot be space etn [APPLYING PATTERNS TO ACHIEVE DESIRED ATTRIBUTES So far we tae by described each slation w the KWIC problem and ro- "ied Indy Iist of cont and Beets. Shaw and Galan in tir al, Pip-and Fier Arete ea) =) ‘rune 530 Shew ond vars KM elton. sca amanber of fing with pectin bw ech ote tos commas [fae nt ottyng lori change ine way a at ae ere, SiS Ehange n func. They ao evant each son wit eget 1 ‘tcmane nd suport for oe, Thel eure presented in Table 35, "Te bln wih table at not repeble. ra te eas iis oot epeuble without dos Knowing ofthe ants arcitecual yes, dir ‘hn ene, and an ensuing of bow each se sesamiae the Feerurr Rasy 121 woblm at hand, Thi apes ob in conic wih on fhe oul of designing ‘ith pasers and ule hat movie shoal be abet easly app expe Cowles eal and represen by tse digas. In pact, bow er is aoc at imple ‘So, how canon g ou ptmaticaly comparing thes (and ath) st wae rhc wih respi over aston a caleton of ul iy srt? We Gros an atau echnigefor analyang his syste Chapter 9. We wil abo ices he we of pers in more da ia Chap 13, whee vee wll connote uo of pers 2 design sci, Thee we wll Toot a how te rg application of amall ember of sughorwad tems can dnmataly sila sottware secure 56 Summary “This chapter is inode of webct sys. Sil ee in ted ‘owe, ad sles spate group ay actly be coe relate, Spies ge 2 SShontand way ofeurbng sytem in way a ke ese, eves ough the same sym ay be deste with ees! Melty by any of several se. Shes pment stoner approach tschiving a sem’ uals regi nen vn achitcti means and which sple we we to desete system ‘Epson which gules we we wing bares ache. “Splescan be Sseried by a sot offen, ach ashe ature ofthe om ‘ponets und comstor, i ste toposes and dari conta da [ising patos andthe id of reasoning they ai. or mw, Wet ot att to th primi dexgn pipes tat use leach ses (and a we al sev, esi and coe pte). Wha ‘tr impars pray fo te gn so eens) wo anor ad ierbity {oa thin? We want tw examine es primitive "We wil ost tur oar tenon w ese fondamenal beng locks, which se cal ant peat 5.7 For Further Reading ‘Siw and Gans xtalog of sts my be fond in [Shaw 6a Te cases Show of yen Soon 52 jim work by Mary Shaw and Pe Clemens {Shen 07 Topper conte try more sass as well asa compe {it teas to aubee who hive ween aout each of the aus mem ‘ood in Tes 5.1 rough 3.3, 122 UPTERS Moveg Fam Qtr Atte Aare, Alen and Calan [Abowd 95] provide 2 Geile disuse ad forma ‘Sati of da fow ses Andes (Andrew 9) proves n dele discs ‘og of eyes of commuting processes. Pars (Pras 72] povided the oii! KWIC pote which Staw and Gran sbsoquatiamlyed [Shaw 961 58. Discussion Questions 1. Secon $4 ies ales of thm fr sty selon, Pick few of theses ‘Sctmcaone in ha secon and see you can wrt ras of ub or ooigtostes. 2. Auge numberof sys re dexgnd to suppor he quay of moda ‘Giecamyies snd yes of he lee types of maiean sapped by te 2. Soest te commonly described ae the esl of mie obsera- ‘ono taxonomic onaizatn fom st pics. sae vei {ships Objects con be operating processes hat une yee, 0 0 ‘Why tha? Hine Tha aboot hat ctecal scare rm Caper 2 I avalon the description of each tle, 6 Unit Operations Arcitecrl sles ae wf ia designer can map one ofthese spe 0 the ‘eds of poem at hand However, bow ee a ew je fom ft prin ‘ss nt Ar thre foi operations facet di, wa (bees o uaiy aise? "To at eat pry anwer ie qlton we present st of design opea- sins that re sommely tod in software reece ad dsb Row ese ‘pean lp to achieve quits We cl ese design operations un oper to owing he ong dn pravce ache englsering. Thee stare ‘penne se compresion, auction, nd resource sharing, uniform decom postin and ‘We wl eer exch on, ge craps of where ach is useing sl sofware yen and ce hem nts of Wei elects on the achiever of (poli oie Once we bve Seer uit opratosin pera we exp {Tetsu of human mpm nection mode's n tems of te unit operations. ‘Te oa isto pov beter uneraning of he nlomse design decisions ‘ery aries mast make when crating design and Out every ace ply embracing when adopting sods ele's clara dsp pate, 6.1 Introducing Unit Operations Unit operons ae deat fom aces! yes and desig tens in they ae mre pie Design pater nd styles av, owe dred fom, Be

Potrebbero piacerti anche