TheabovecontentisreviewedandannouncedbytheNationalScienceandTechnologyTermReviewCommittee
Rakenteen esittely
Palvelin-asiakas, nimittäin Client-Server(C/S)-rakenne.C/Sstructure ottaa yleensä käyttöön kaksikerroksisen rakenteen. Palvelin on vastuussa hallinnasta ja asiakas on vastuussa interaktiivisten tehtävien suorittamisesta käyttäjän kanssa.
Theclientisconnectedtotheserverthroughthelocalareanetwork,acceptstheuser'srequest,andmakesarequesttotheserverthroughthenetworktooperatethedatabase.Theserveracceptstheclient'srequest,submitsthedatatotheclient,andtheclientcalculatesthedataandpresentstheresulttotheuser.Theservermustalsoprovidecompletesecurityprotectionanddataintegrityprocessingoperations,andallowmultipleclientstoaccesstheserveratthesametime,whichplaceshighrequirementsontheserver'shardwareprocessingdatacapabilities.
IntheC/Sstructure,theapplicationisdividedintotwoparts:theserverpartandtheclientpart.Theserverpartistheinformationandfunctionssharedbymultipleusers,andperformsback-endservices,suchascontrollingtheoperationoftheshareddatabase;theclientpartisexclusivetotheuser,responsibleforperformingfront-endfunctions,andhaspowerfulfunctionsinerrorprompts,onlinehelp,etc.Function,andcanfreelyswitchbetweensubroutines.
TheC/Sstructureistechnicallymature,anditsmaincharacteristicsarestronginteraction,safeaccessmode,fastresponsespeed,andgoodforprocessinglargeamountsofdata.However,theC/Sstructurelacksversatility.Systemmaintenanceandupgradesneedtoberedesignedanddeveloped,whichincreasesthedifficultyofmaintenanceandmanagement.Furtherdataexpansionismoredifficult.Therefore,theC/Sstructureislimitedtosmalllocalareanetworks.
Kehityskokemus
C/Smodelin kehitys on edennyt kaksitasoisesta rakenteesta kolmikerroksiseen rakenteeseen.
Thetwo-tierstructureconsistsoftwoparts:thefrontendistheclient,whichmainlycompletestheuserinterfacedisplay,acceptsdatainput,verifiesthevalidityofthedata,sendsarequesttothebackgrounddatabase,acceptsthereturnedresult,andprocessestheapplicationlogic;Thebackendistheserver,whichrunstheDBMS,andprovidesdatabasequeryandmanagement.
Thetwo-tierstructurehassomeshortcomings:themainmanifestationsare:poorscalabilityofthesystem;difficultyininteroperatingwithothersystems;difficultyinsupportingmultipleheterogeneousdatabases;frequentinteractionbetweenclientprogramsandserver-sideDBMS,Thenetworktrafficislarge;allclientsneedtoinstallandconfiguredatabaseclientsoftware,whichisaverycomplicatedtask,etc.
Basedontheaboveshortcomingsofthetwo-tierstructure,thethree-tierstructurehasemergedwiththematurityofmiddlewaretechnology.Thecoreconceptistousemiddlewaretodividetheapplicationintothreedifferentprocessinglevels:thepresentationlayer,thebusinesslogiclayer,andthedatastoragelayer.
Thethree-tierstructurehascertainadvantagesoverthetwo-tierstructure:ithasgoodopenness;itreducesthecostoftheentiresystemandisveryconvenienttomaintainandupgrade;thesystemhasgoodscalability;thesystemmanagementissimpleandcansupportHeterogeneousdatabaseshavehighavailability;strictsecuritymanagementcanbecarriedout.
AdvantagesandDisadvantages
Advantages
TheadvantageoftheC/SstructureisthatitcangivefullplaytotheprocessingcapabilitiesoftheclientPC,andmanytaskscanbeprocessedbytheclient.Submittotheserver.Thecorrespondingadvantageisthattheclientrespondsquickly.Thespecificmanifestationsareinthefollowingtwopoints:
(1)Theapplicationserverhasalighterdataload.ThesimplestdatabaseapplicationofC/Sarchitectureconsistsoftwoparts,namelyclientapplicationanddatabaseserverprogram.Thetwocanbecalledtheforegroundprogramandthebackgroundprogram,respectively.Themachinerunningthedatabaseserverprogramisalsocalledtheapplicationserver.Oncetheserverprogramisstarted,itisalwayswaitingtorespondtotherequestsentbytheclientprogram;theclientapplicationprogramrunsontheuser'sowncomputer,correspondingtothedatabaseserver,whichcanbecalledtheclientcomputer,whenanyoperationonthedatainthedatabaseisrequired,Theclientprogramautomaticallyfindstheserverprogramandsendsarequesttoit.Theserverprogramrespondsaccordingtopredeterminedrulesandsendsbacktheresult.Theapplicationserverrunsalighterdataload.
(2)Thedatastoragemanagementfunctionisrelativelytransparent.Indatabaseapplications,thedatastoragemanagementfunctionisperformedindependentlybytheserverprogramandtheclientapplicationprogram,andusuallythosedifferent(whetherknownorunknown)front-endapplicationscannotviolatetherulesintheserverprogramCentralizedimplementation,suchasthevisitor'sauthority,thenumbercanberepeated,theremustbeacustomertoestablishsuchrulesasorders.Alloftheseare"transparent"totheenduserswhoworkontheforegroundprogram,andtheycancompletealltheirworkwithouthavingtointervene(andusuallycannotinterfere)withtheprocessbehindit.Intheapplicationoftheclient-serverarchitecture,theforegroundprogramisnotvery"skinny",andallthetroublesomethingsarehandedovertotheserverandthenetwork.UndertheC/Ssystem,thedatabasecannottrulybecomeapublicandspecializedwarehouse,anditissubjecttoindependentandspecializedmanagement.
Disadvantages
WiththerapiddevelopmentoftheInternet,mobileofficeanddistributedofficearebecomingmoreandmorepopular,whichrequiresoursystemtobeexpandable.Thiswayofremoteaccessrequiresspecializedtechnology,andthesystemmustbespeciallydesignedtohandledistributeddata.
Theclientneedstoinstallspecialclientsoftware.Firstly,itinvolvestheworkloadofinstallation,andsecondly,anycomputerproblems,suchasvirusesorhardwaredamage,needtobeinstalledormaintained.Especiallyinthecaseofmanybranchesorspecialtystores,itisnotaproblemofworkload,butaproblemofdistance.Inaddition,whenthesystemsoftwareisupgraded,eachclientneedstobereinstalled,anditsmaintenanceandupgradecostsareveryhigh.
Yleensä asiakkaan käyttöjärjestelmässä on rajoituksia. Se saattaa olla sovitettu Win98:aan, mutta sitä ei voida käyttää Windows 2000:ssa tai WindowsXP:ssä. Tai ei sovellu Microsoftin uuteen käyttöjärjestelmään jne., letaloneLinuxiin, Unixiin jne..[1](Tällä hetkellä, mutta Microsoftin ei käytetä uusiinP-asiakaskoneisiin. järjestelmä tai muut kehitysjärjestelmät.)
AlthoughthetraditionalC/SarchitectureisOpenmode,butthisisonlythefirst-levelopennessofsystemdevelopment.Inaspecificapplication,boththeClientsideandtheServersideneedspecificsoftwaresupport.Sinceitfailstoprovidetheopenenvironmentthatusersreallyexpect,thesoftwareoftheC/Sstructureneedstodevelopdifferentversionsofsoftwarefordifferentoperatingsystems,andtheproductupgradesareveryfast,itisdifficulttoadapttothesimultaneoususeofLANuserswithmorethan100computers.Moreover,thecostishighandtheefficiencyislow.
ThedisadvantagesoftheC/Sarchitectureincludehighmaintenancecostsandlargeinvestments.Firstofall,usingtheC/Sarchitecture,itisnecessarytoselectanappropriatedatabaseplatformtorealizethetrue"unification"ofdatabasedata,sothatthesynchronizationofthedatadistributedinthetwoplacesiscompletelymanagedbythedatabasesystem,butlogicallytheoperatorsinthetwoplacesmustdirectlyAccesstothesamedatabasecanbeeffectivelyachieved.Therearesomeproblems.Ifyouneedtoestablish"real-time"datasynchronization,youmustestablishareal-timecommunicationconnectionbetweenthetwoplacesandkeepthedatabaseserversrunningonline.ThenetworkmanagementstaffmustMaintenanceandmanagementoftheserverandthemaintenanceandmanagementoftheclientarerequired,whichrequireshighinvestmentandcomplextechnicalsupport,highmaintenancecosts,andalargeamountofmaintenancetasks.
Secondly,thetraditionalC/Sstructuresoftwareneedstodevelopdifferentversionsofsoftwarefordifferentoperatingsystems.Becausetheproductisupdatedveryquickly,thecostandlowefficiencyarenolongersuitableforworkneeds.Aftertheemergenceofcross-platformlanguagessuchasJAVA,theB/SarchitectureviolentlyimpactsC/Sandposesthreatsandchallengestoit.
Palvelimen ominaisuudet:
1.Passiveroli(orja).
2.Odotetaan asiakkaan pyyntöä.
3.Käsittele pyyntöjatuloksen palauttaminen.
Asiakkaan ominaisuudet:
1.Activerole(pää).
2.Lähetä pyyntö.
3.Odota, kunnes saat vastauksen.
C/SandB/S
laitteistoympäristön vertailu
CSisbuiltonthebasisoflocalareanetworks,betweenlocalareanetworksThenprovideconnectionanddataexchangeservicesthroughadedicatedserver.IntheCSstructure,boththeclientandtheserverneedtoprocessdatatasks,whichplaceshigherrequirementsontheclient'shardware.TheBSstructureisbuiltonthewideareanetworkanddoesnotneedtobeequippedwithadedicatednetworkhardwareenvironment.Althoughthehardwarerequirementsfortheclientsidearenotveryhigh,onlytheoperatingsystemandbrowserarerequiredtorun,buttheserversideneedstoprocessalargeamountofreal-timedata,whichplaceshigherrequirementsontheserversidehardware.Generallyspeaking,theBSstructurecangreatlyreducethecostcomparedwiththeCSstructure.
Järjestelmän ylläpidon ja päivityksen vertailu
EveryclientintheCSstructuremustinstallandconfigurerelatedsoftware,suchasoperatingsystemandclientsoftwareWait.Whentheclientsoftwareneedstobemaintainedandupgraded,evenifonlyacertainfunctionisaddedordeleted,alltheclientsoftwareintheCSstructureneedstobeuninstalledandreinstalledonebyone.Ifyoudonotupgrade,youmayencounterthesituationwheretheclientsoftwareversionisinconsistentandcannotwork.EachclientintheBSstructurecanprocessvariousinformationonlythroughthebrowser,withouttheneedtoinstallclientsoftware.Almostalltaskssuchasmaintenanceandupgradesareperformedontheserverside.Ifthesystemneedstobeupgraded,onlyJustinstalltheupgradeprogramontheserverside.
Järjestelmän turvallisuuden vertailu
TheCSstructureadoptsapoint-to-pointstructuremode,andthedataprocessingisbasedonanetworkprotocolwithhighersecurity.Inaddition,CSisgenerallyorientedtoarelativelyfixedusergroup.Itcanperformmulti-levelverificationofpermissions,andhasastrongabilitytocontrolinformationsecurity,andsecuritycanbewellguaranteed.TheBSstructureadoptsanopenstructuremodelofpoint-to-multipointandmulti-point-to-multipoint.Itssecuritycanonlybeguaranteedbythedatabasethatmanagesthepasswordonthedataserver.Moreover,thenetworksecuritytechnologyisnotyetmature,anditneedstobecontinuouslydiscoveredandrepaired.Securitybreach.
Käyttäjäliittymän vertailu
TheCSstructureismostlybuiltontheWindowsplatform,withlimitedperformancemethods,andgenerallyhigherrequirementsforprogrammers.TheBSstructureisbuiltonthebrowser,whichhasaricherandmorevividwayofcommunicatingwithusers.
Vertailu käsittelyssä
TheCSstructureisbuiltonalocalareanetwork,andtheprocessingisorientedtoarelativelyfixedusergroupinthesamearea,andmeetstherequirementsforhighsecurity.Requirementsarerelatedtotheoperatingsystem.TheBSstructureisbuiltontheWAN,dealingwithdifferentusergroupsinscatteredareas,andhaslittlerelationtotheoperatingsystem.Inaddition,comparedwiththeCSprocessingmode,theBSprocessingmodesimplifiestheclientsideandonlyneedstoinstalltheoperatingsystemandbrowser.
Ohjelmiston uudelleenkäytön vertailu
CSstructuresoftwarecanbeconsideredfromtheinevitableintegrity,andthereusabilityofcomponentsisnotasgoodasthereusabilitybuiltundertherequirementsofBSgood.BScorrespondstomultiplestructures,requiringrelativelyindependentfunctionstobeconstructed,whichcanbereusedrelativelywell.
Järjestelmän nopeuden vertailu
TheCSstructureisonelesslogicalstructurethantheBSstructure.Forthesametask,theCSstructurecompletesfasterthanThefaststructureofBSmakesCSmoreconducivetoprocessinglargeamountsofdata.Inaddition,sincetheclientisdirectlyconnectedtotheserver,thereisnointermediatelink,sotheresponsespeedisfast.
Vuorovaikutteisuuden ja tiedonkulun vertailu
TheinteractivityoftheCSstructureisverystrong.IntheCSstructure,theclienthasacompleteclientsoftware.Itcanhandlealargenumberofreal-timedatastreams,andtheresponsespeedisfast.AlthoughtheBSstructurecanprovidecertaininteractivecapabilities,theinteractivecapabilitiesareverylimited.TheinformationflowofCSissingle,whilethestructureofBScanprocessinformationsuchasB-B,B-C,B-G,etc.,withchangesinflowdirection.