Squbs是一个起源于eBay和PayPal的开源项目。
Squbs是一个软件容器,一套能实现AkkaadSpray应用/服务在大规模管理、云服务中标准化和运作的组件。
squbsCompoets
Uicomplex:Themicro-cotaierthatbootstrapsadstadardizesthedeploymetofAkka/Sprayapplicatiosadhowtheyarecofigured,allowigteamsotherthaPDtouderstadthecofiguratioadtweakthecofiguratioofapplicatios,partlyatrutime,aseeded.Iadditio,theUicomplexecouragescoexisteceofdifferetmodules,calledcubes,ad/oroperatioaltooligiaflexible,loosely-coupledfashiothatwilloticuraycodechageiordertoicludeewopstooligordropout/chagesomeopstoolig.Foristace,icaseswherewehavemixedcloudevirometssuchasprivateadpubliccloudeedigdifferetoperatioaltools,thesamecodebasewillworkwithbothallowigdeploymet-timeadditioofeviromet-specifictoolig.
TestKit:Usedtohelptestapplicatioswritteforsqubs,oreveAkkaapplicatiosaltogether.ItprovidesuittestadsmallscaleloadtestigfacilitiesthatcaberuaspartofCI.
ZKCluster:AZooKeeper-based,dataceter-awareclusteriglibraryallowigclusteredapplicatiosorservicestospadataceteradholdtheavailabilitycharacteristicsacrossdataceters.Thisiseededforapplicatiosthateeditra-clustercommuicatios.
HttpCliet:Aoperatioalized,simplifiedclietthatsupportsbothevirometadedpoitresolutiotofititodifferetoperatioaleviromets(QA,Prod)aswellasorgaizatioalrequiremets(Topo,direct).
Patter:AsetofprogrammigpattersadDSLsprovidedtousers.
OrchestratioDSLallowigdeveloperstodescribetheirorchestratiosequeceiaextremelycocisemaerwhileruigthewholeorchestratioasychroously,thuslargelysimplifyigcodeadreduceslatecyfortheapplicatio.
Asychrooussystemsdepedheavilyotimeoutsadfixedtimeoutsareeverright.TimeoutPolicyallowsuserstosetpolicy(like2.5sigma)isteadoffixedtimeoutvaluesadtakescareoftheheuristicsbyitselfallowigsystemstoadapttotheiroperatigcoditios.
Spraydoes'thavefriedlyAPIforJava,thespray.japipackageprovidesafewofHelpersadFactoriestohelpJavadeveloperstocostructsprayetitieseasily.
ValidatioprovidesaSpraydirectivefordatavalidatiobyusigAccordValidatioLibrary.
PersistetBufferprovidesahigh-performaceAkkaStreamsflowbuffercompoetthatpersistsitscotettoamemory-mappedfileadrecoversthecotetafterfailureadrestart.
ActorRegistry:Acorelookupfacilityallowigactorsofloosely-coupledmodulestofideachothers,orevetomodeldifferetservicesasactors.
ActorMoitor:Aadd-ooperatioalmodulethatusesJMXtoreportthestatsadbehaviorofactorsithesystem.ThesestatscabeseebyayJMXtoolig
Pipelie:Aifrastructureallowigsequecigadpluggigiofrequest/resposefilters.Theseareused,foristace,forsecurity,ratelimitig,loggig,etc.Eachofthecompoetshavevirtuallyodepedecyoeachothers.Theyaretrulylooselycoupled.Developersadorgaizatiosarefreetopickadchoosethecompoetseededfortheireviromet.
Cosole:Adrop-imoduleallowigwebaccesstosystemadapplicatiostatsthroughasimplewebadserviceiterfacereturigpretty-pritedJSON.










评论