So, forexample, whentheuseraccessesyourwebsiteinsteadofhitting a singlecomputeranditcouldtakethesinglehostingmachinedown, forinstance, youcanput a loadbalancerinfrontofthatrequestandthenthatloadbalancerwillrouttheclientrequestto a numberofdifferentWebserversandyoucansettherulesforhowthisloadbalancerwillfunction.
Nowtherearevarioustechniquesforloadbalancing.
Oneisyoucanusespecializedsoftwarelikeengine X, whereyoucanwriteyour l requesttomanydifferent I.
P addresseshostmachineswhichcanactuallyservetorequestanotherpopulartechniquewhich I liketousepersonallyis I justusedthe n s loadbalancingweregiven a your L website.
Youcanhavethatwebsiteresolvedto a numberofdifferent I P addresses, andthebenefitofthisisisverysimple.
Youcansaidthatbruisefor a load, balancinglikeroundRobinhasyouonthe I P addressorfiguringoutwhichmissionhastheleastloadandthesigningtraffictothatmachine, figuringoutwhichmissionsareofflineandremovingtrafficfromthoseallsortsoftechniqueshere.
Atlargetechcompanies, Facebookusesmancashquite a bit, andit's a verycommontechniquenow, speakingofcashing, wecanalsouseseedIan's contentdeliverynetworkstocashStabthatassetfileslikeimages.
JavaScriptfileshtml.
CSSfilesvideofiles.
Usuallyanytimeyousee a imageofvideo, itisbeingservedthrough a CDinwhichis a globalnetworkofservers, whichcancastyourcontent.
Andbackinthedaywhen I wouldbebuildingAPS, mydatabasewouldbeundersomuchloadthatwhatyouhavetodoafterthatisyouusedreplication.
Soyouhave, like, slavemasterreplicationinThissaidthatyouhave a singlemasterdatabasewhereyouraninto, andthenitisessentiallyclonedthatduplicatedintomanyslavedatabases, whereyouonlyreadfromyoucanconfiguredatabasetoactas a slaveandreplicatefromanotherhostmastermachine.
Andasisbringinginthedaythattheremaybelike a oneortwoseconddelay, sometimeswejustokay, sometimesyoudon't necessarilyneedconsistentdata.
Twoapplicationsaregoingtoscaleexactlythesameway, whichiswhyitisimportanttoask a lotofclarifyingquestionsandfigureoutwhattypeofloadandusesJustinaerials.
Brilliantas a problemsolvingbasedwebsiteandappwith a handsonapproachwithover 60 interactivecourses, alllivebrilliancecourseshavestorytelling, codewriting, interactivechallengesandproblemshimself.
They'llpuzzleyou, surprisedyouexpandyourunderstandingofthemodernworld, andbrilliantpremiumis a perfectyearforanyoneonyourlist.