High -tevel -Dugn (Mewoslt - Paotocala
Can
                            Lorgagu
                                     Application
                                     Session                                   (fas)
                                                         Ack
                                      Dala ikd                  d
                                     Phyicd          sendReciarig      U4ordeed X
   Applicotsn    (aye                              {(mAPPOP))                  fast v
                Peer to     Pee
                    Cue     Can uomunicali         ( lont Conneeheof
                                                      Dala onn ection (lemp)
                                    Res
                                                   Swew
      (lient                                 A6ewe
(Peer h p e r x
                                  clieut
Ndturnk Poatocb
        It ensus eHetn data toansitons
What      Netorst pootocola ane Je   rueo uct conven Hong Mat inHas wm muni adh
         Dd data evekange sehueen ditnent durvieo 6ho nelunt, ud
         ntunt proeots de}lne handard tor
                     doA entading          hano mission andl acephn ensuing Hat
          dyies can undultand and intespret each di fenen t!
                                                                               agpa
                                   TCP /IP ‘ ITTP
         it impateH :
                    " Interoperabilits !     it poridus q way to share into.
                      Kaabiliky: - it won't changes by he Hme
                    " BHerent - i          opHmeges daba toamIrsl on     y mnini gng
                            laBencuy aut pactet ou.
                       Secuothy     SSL| TJ      encrqpt data dustg hi ni miscion.
   1.     Trons mission Conh! Potoc -
           Client                  serve
                                                   Interne proto col Sute o
                     SyN- semENT                     t pouvidza eliate , tsnneeien -0aiêsted
                                                   Communicahon 6/o dwites n          q nttwO Yk
                      syw+ACK                     TeP speuates, at tu tansport lay ea o.0sL
                       segment
                                                                         a tonnetion eqrler Han
                                               daja oonsBer, enure the     teip of packet ,
                                               and e oqnemit it if tene is ay ast of dala
                                             TCP s widely uled in apA ocre            data inkeg rty
                                               eoail-dulivey
HyncHeraliy- it asigny a comptete nige 10 Mdress to eack cturi ce                     g dalesniy
                                        oata saccts to ah lair safions
  User Dalagran
                                        Reayet
                        Sendea           Response           Reciovt.
     Rofe     it is sam as Te P, but it/s             nBF      iahlo And conneeton -0rtenfed
      UDP S cinple, tonnetionles poeto ue Hat minimal sevices
                                                    Case it doesnt 9ugoantee or ordov ef paulets
    tunchoralbky:         it doen Nt gaaganlee tro paket dahveuy
    Use Canes           UDP is    tybtcolly sed in a         Hud app lite vo(P ouw'a qamiug )
                                       HTTP ad HTT PS
                HTT
                      web ses vel cud clieut
     Use Casey!
                                           Job busus to mebipne ad
                                                                   display utb payo
            HIPS adds alayer ot steunily thaougu
                                                 luenypHin
                                   Suwe Boahe ayee
   o.1t pide stabk ond se cue tonneaion
file TrancBe Pontoco
                                           behwee n a ciost ud
                                                                   emo   sewu
SP
                                Poxy Sesveuy
   A pey sewe       at as       intesmeaiaty Beueen ciut deiricey lud seves
  Pangose                                   Tybes'
     - Co mtent Filtsiry                             forsard
                                                     Rerase
       Susity   Cud Aceeus Pretocol                   Web Proy
        doad Balang                                  Pablic Pro4n
  Adrantases                                iAdrantaq0!
       Enbanced secuot ty                      dateuey
         npred Veorante                        antiguenin Conplexily
        Content lonbol
       dood Bolancfug
                         CAD Taovemt
 C- Goni kney                                                  Applic atfen
A- Aralatilhty
P- farti hon ToleROnte
                                            ho cla                            ho do
                          Sn dini buted syakm , we can'                use cl 3 ppuhes
                           Cause
                                   mate applicaton ontrcten aud qvar lat , so portton
                         Is ot possIbe cauc to rabe Constskent eo db instane roust b aoneded
                        Q SHI you patiHoned Hen elke we subud
                                                                      froget abbut on s/SFcn y
                         arailakility
 Gonisteny'        Baz y ) aud A wsito on B (a2 S ) , Hen B il
                    Auplicati      h      qme vaue inC (azs)
                                H change) must &e done ad each plau in one skot:
 Arailabtli k'          nodo
                                       must be JeN ponsire Hhtugk daba is       in ansistent
Portition !
                                           Tespone it means it is tauat tlesance.
        Alway» comp z0nice                                        3)
       dn    Dodabanes
 ACID
       AtomcityTroncatiso                Ynw      be kappen in one     htt
       Cncutey                                           oll ndo
       lkolalion
                             insonces mwot ke work on indiridualy
                              munt be bathoe b
Bant           (AP) atabants
  BA Goi cally Arailable
             Sott Sta
              Erentially lont/slent
PostGRES           (CA)
                   S8L to ineaut
 "it ollbuno ACID and
                      used tn
                                               Gantirg   ,Lalane ontiseny and
             prrtdo
                           froeign by Hat allho
nongeDe (ce)
 it uHlizes dourment to shre dala,
Cassandrg (AP:
                     pee     to pee
    Micosea vices ad i          patens      9nhnduton ) 'and Deeom posihon
   PaHean dit cuosion.
Aditechte
            Monalhtic                                mIcro Cavice
                                                  By His w0y We can
    tey funcdienatity in Single App      tiio 4p a seuvice single lespans ible Hhat
     DnAtrantag                                         easy to sale
                                                             to maintain
      Ovealad ID6
                                                       tany to inkgale and daploy
      Coalig
           Is Hasd ( Goow
                                               Ois Advantaqa
    Deploymeot and Cr
                                                If partiibn Sarices, not madl
                                                Corroctly and shn te distibuked
                                               SUices n connected wjH
                                                                      ealhothe
                                               Hen
                                              |- Laency wiil incAne
                                                   (cawse if Qnyo    mnglke it impath ohoa
                                                    sevfcesy
                                              3- TsansuHon          Managementa
                                                   Pe omple mico sesvice wjll be
                                                   fn conssknt
                                  Mico -3ervics
                          Miero                services
                        Small
     Phase -L
    I    Deomposilon &y Busine us Capability
.       De eòmpose By
                           Subdomain
    3 Selt Con tâin td     seavice
                 Pes Team.
Now aHeL didi ng                a seavicey   he phane      s to   Sleet daBabast to tip daa.
            Dalabas e     per srice
Nes atte          celeetirg dolabr                                 Lommyni Cayon
        |- API omposihioM
         2- &rents Sourcing
                                                integoet
                  qatoay
DeGampetrho PeHen!
     Oecompore Qy Busine ss Capabitiy
      Detompare Cy Susthmadn: ChoD -Oorain ivron Desfan
  Deanposifon By Basiness Ospabitity'
      Order - Onltne - Applicaton
          Let's decopose by             &usiness tnnchenaliky'
          }- Ordea Manage ent
         3-          Aee ount Management
          4- dogin lanagmnt
         8    -
                    Bitng anogeent
                     Pay mert oanagtment
  De tompore By dub doman
                  Orde       manqqement Domain - turthus divi dod into subcoman
                               Osdee Tracking
                         ’     Ordee Placing
                               Orcler
                                                forward Paunent
                  Payment Nomain
                                                Re vese faynent
                                  Microseuices           (PasT DEeornPogT IroN)
                                                                                  Transaieo
       STRA NGLEK
I- STRANGUER
               t     solved   q    proble
                           Hou do you migrats a legaes nonofiHic app to mícosevices
                              Qrehiteehture
               Modeuniginq an applicaHon bynt. mentally developing a keuo
                   ppltcaton , areund the egacey app
 iHs      an         archidtektural approaeh employed daing Ma migraton fom a
monolitic app to a mien esvicey - baned anci cture"
                                                                          slosly shirgto
   toee
                    Transtorm
 featye'
                    -i F
                    Rouley                       leate
                                                         Modern
                                                                       Route
                                                                         mocen
               roual Miqralion
       "Co cxistnee
           Shoqnglny Bekaviounr.
 SAGA:
                  Daa marmgement ig miero Sevic e.
                                                  taxeShared Databane
           for Ead indidual leavice
                                      ACD
                                                                 wwe   hoa   e
                                                     iko f
 t a order came aud Hhat wil atleet
 eaeh ab soi t posstble to
                                                              Payreut
                                                     data at ow4e fslare         sudlayi
                                    oceur al
     db     eut to    he       eartier veson          Scale   theu           need to opeate o
 Sotuhion                                            3Ingle D& ad Hat wil impacf
|n   SAA     wo     tmalbe ens blu       oeel
ToqmatHon to tesp hauk                      asr2aNaction (AGID)
     OrdlE-LeuhsPut
                   trasaton fall       t serdsa
          easl local oansaMor foublichs domain euluts          hat higger to cal         anzeee n
          in olen          sevice
      Oreushatin             An Drclus haor(Dbfoel) HelA
                           locaQ bsansaetior%
                              Choreogabky - based
           Sevice             0rdey Bueut Channels                         Cus tomew
                                                 C r d i t   R u a v e d
                                                                            seuvice
                                                (vedit   diMir
                                                        erceedd
                              Cushme Buut ChaNel
                                 Kule   , Ouo            will do is             wnde Hon
              Here sevees kuo        what to d         wext
                                           essaae
                                            Broke
           Creatt
                              CushmeySewice lommandit banne
       Drdw
                                 Creat Orcts Saga Ropy bannel
           Servie
            He
                                                                               mesage seut to M&
                                     served by       Cushmi                Serice it seuds ha   Renporse
            But te main thing aat        Here rdn Sevice jut takecar at itt seiires
           o Her    Oruasteraor te       what                a
                               |00
Exarnph!
                      lo to
  Command
 T.
      Sagrat la Ruqust t   Command ( Crate, upaatc , dlste)
CREPTE                     CRATG
UPDATE   DA1               UPDATE
DFLETE                     DELETE
                              By tis way
                      Seale foo mQes to millton Viea) in Delailed.
Arplicakon is in slartng phant             hau ondy avelap       ne te app: b kst
                                           Serve
                                                                      lallegp Anjut
               Web)mobile.                 Arplicalen tDB
                                                             Cliout sewe    Archi echdyrey
3kpdl
                                         Moke
        Smgl    SeeveeV
                                                  a seves hnd auplos app on Ha SueF
    ’    Applieato n D& Jepuahon
        hNonN e dictibud be                     applh eao n and       b. orn a A1ng          o
                                   Appllcon seave
                                         mid- Tier
               By Hid oy                                 Ihgic and db indyendon hy
         Load Balant          t Mutiple     Applicafon bevee
        5wenere         Hae
                                                Coming in bulk Haon             need to
         handle traic et applicalon seve by anig
                                                   irg Hhe mid -tier.
                       plae     mulhplu appl'coon sec
         to applicaHon seves .
         Cleut                dood Balance
                                                                       DB
                                                     Potvata
                                 So it               senity
4 Data Base          Repic ad'on
    ik     0 Masteu Save              AYclechue           DB.
                                                          A     Wite
                          oad Balaneea                                           MAsrUR
                                                          AS
                                                                            SLAVE
     Cocke                   to impo ne tee time and            puance                 So   here
                            atter AS, ud           beor DB to    Sqne DB         Cal
                          As)
                           AS)                      DB
                                   dala wil be reme ved
      (Redin           ) Caehe (TTL)
               found
               HiF
    CDN!       ( Content Delivey Newort)
                       coes Cahing        Butt    Al| Hao e ubo co
                                                                       cathing
      if shrs          static dola at eaeh speufie cON om main                         Data Bane
     albo it
                 improuts seuothy
                                                 foud
           Clieut
t Daa Coutoe
                                                your dh ditont plantg to mabe it
          CCiuut                  A
                                 Data Cauthe
                                   messeging &eent
           Podut er                                                     Sub seibe
       Exclang.
                                   (Snckengp
                                                                        S3
                   0 Oirect             Roaig Coy         Bindirq Cay
                      fantud.            Send in AL ue!
                      Topie 1.
         7 inuIase      hardwa,inuay Jimk          bt RAm ¢Rmlnor
Honen       Aad   mui pa Onanres
           mplemenahon is Shrding
                        Heriguntal            Vetcal
                                                                          Tatles
        ODivido into muhpu Tables                Wivido int ebty Multip   Loltns
                                                by Cotumn:
        TA-P
        To solve joning ptblem          rembue ne dun da ny e dapeuelncy Quet
          malea Tat Norma tihed
         Hic varchcal          Wo can Selwe
                   Cantichent Hashing
I ketbe in
           Hrion tal &hashirg
   Jaing::
                                               Convet data io fiyed-value
            acce         t    wye   it
               convert arbiky leng valuss to frvcd Qugh                       valuo
                             abcdef ghi            det iHasee alue
      Nou          eye       alao mod            to
                                                       actjuot clata in a ed plu
                                               uaken     Ur last mod vaue (s      not fiyed
       Cause in horiFn tal hasding Here con be potjbilihy o} rn wtipu i'n ttan tea.
                    oing main ly DO tuo               plas
                   1- doacl aloncing Apptcabn Sevou
                   9- doad Balancing
    Nw he pob lem                   s     ReBalending Cause ehenerce uo ckange tae
                                    ue need to          plau el tue, vales to difleeut   ocle
                                         2S3
         AP’ 3 instances
                                          343 o
        Ae ’4 in san ces
       No          what e
The Souio b is Consistent tHaching
        1+ work on Rebabncing          aud ewen insJanees odown or up iF mqke
        rebalancing ato lou
     () Take Virta
                    Qnd   place yo4r r r     on   nod
                                                          hashing
                                                              S3
                                     Si
                                                  KS
                                                  K2
                     S2
                                                       Servus are cnHnus aud
              ’ in onsíctent hashjng
      seve keys by nxB seaves                      CAn be seved by eplitaBten vrtyally
                          Duign beL Shortne!
\Hea
       Slort
                                          Buniendogie to make Shat
                                                                                      rap
                          Past
                                          l6htne                                         Valw
                         URL                                              Savehdb
                                                                     -
                            Ge             Shorteau                      Teke Vatue
                         Shoxfeed                                         Gom D&
           Repiremeat dhabyan
                           As mech as ybu             an'
                                    nou     doeide    wuat s     e boatic
                                    to\ URL doy             36so M       URL/year
                                      36 Sooo m ueL yeqr
                                    (o-4) a-2| A2
                                    at a plae          wwe cn uje           62 chaeeta
                                                            3r        tlion
    Hea to geneat              ese hastud vae
              Ue Hah Aunchon (mosA-)
                    4 one    bykgeuenat dexadigit ten 16 bute
                                                              geuat
                             t8a           hexadigík aud   it wil tale 22 Cua
                     lat is too mll
                                      abo wey l6o bit
               a dengA Cnakd be dotteseut
                     Ns     hou Ha poeblam s eat ue eant sore
                                                              as id'a into singte db.
                     a.Snoutake'                   bingle Point ot kaiture
                             Tine Sarp
B e s tS o h i n
                   Qonkeepe:.
                    9bibuted Application can toogdinate wjh each o
                                                                                        eli dbally
                   it put vhus in Rousp
Use
      Ting
                      DB (klaona)
                             Shrt eong
             dGeuuator
             Qleppe
                      Back - o}Re- 6 velope BcHmalion
timaton
            (ug        Bstimaion (T- ShirtJSae)        0
            Den't `pend too much ime (2)
                       he As sunnplion Value   Simple (to lo, Sto)
           Tratic            straqe
3 Revo    Tieusarnd           KB                                     1Byte (Ascre)
           Mmillion
           Billen
|22eo      Trillien            TB
          Quadi lion           PB (Pegalyte)
          ’N.
          ’ RAm ?
                                                  vy TR      Dataßon
sthmalt   n t fac
              book"
  Tohic &limalon
                                tominq
                 As sume
             (b-A:U)
             18 K
          Storaqe Avsumþhon .
                       Yeax
RAm StIM AMON
                (DAv)
      5 posts         yo bqtes
                                         62s G8 Roquired hr memoy spau
                Hen     RAm       lo Mache           heed.
                in    sec
                        So    1    q serve   has     to    hrQds ben it can server
                                              heed        to   aecep
       Numb
            Hene
                       Deiqn          Key Value De || 0yrqnog
Anaen
        aealabitity
  2-Decedotizaln
 kps        |- Pastion
            2- Ceplicatton
  £7 Parihon
                                                            me
                A pesson     map    his qdd to    coot     at
            But te dis adv¡ntaqe hee in
                                        hos tan           fone    His mapp ng in
             Now      mapprng nade dibadvankqyu fo keatahitiy
                               wU     wpll incAbase      heo C0t honde al
                                                                          unes
                dota
              da paetlontn9 ot aun        be tonais leut baakng
                             ((sovdinaer)
 "To mintan Avai loabi fi y a p teoke
 mabe
                                                       Coordinao
        Chaose   iAueut    ata tentres.                    Baiaþ
putlCAR) ’
 mgnneN
                      oyne                    Mannec
    -lar) plauad in S
          wat orSueces
                       )    Pqotihon Aw qre
             ulleneLA              Qeune dB, As it n        go on qny
                                                            t6-6rdialto
4: Data Vasio ning !
                  Oaa VeasioNng,
                                         S Ly- CARI
                       ut ( CART-ys) ’ sol4s- CARJ (
                                                           Cased Noo)
                                       So it qo to Poeyene siat
                (3) Naw SeveL s ub aud yea cal get Kaq
                             S
                                                      (yahic
    To    mple meut ls Vebr nck ( Jar             taunta)
       (ur- tAR)                      (Caevti nahv)
                                             (s) [us-cART -I
                                        Quplicahons
2- t     lsqust
       (ur- CART)                                [us- CART)
          Al Sesve is on
                                    [4s- tARrJ-2 [us-tARr ] -
2- Pat Cagust
        (us- CARM)
                                       [us-CARMJ-3
          Reqyust
       (us- CA RR)
         6n    Sam    Hue wih (3)
s- Get Rqus
                           (CARM))
              CART)         CARR)        )
      ("Tabk (Rou - Olumn ) eaion shwp )
      Heae ue need to duktne pe cuteyryi ad 8clema
 Nakre!.
                             Complete
      Hele ne need to plae data at a sewe ondy,
      keep dala at nulhipt savess,
            (ctoali 2ed / Concenbate
Sealability
            Horigontal ( plao daBa at muipu plas, ond H daesnd wetl supprot
       "Varical      DAMA, StoRAÇE ^)
 Poopety'
                                                 (Compue +AcwLsate)
       A ’ Atomidiy
      C ’ Co nais len y                 Dala Snlegsty)
      I ’ Solated                          Cons lan cy   Sam at evy plae)
       D ’Duro,i ity
   Shute!         lshouned clata.
            |- Koy- Value
            a- Document
            3- Column Wise
 Ke - Valu Shre'
      ata stord tn Cy Value Jorn
         Dny rd valus by y ony
                       Valhu
                       Shing) 0 N
                                you can't Qay
 Document DB
                                                      con quby heugl. vauy
                   Value        o
                         sBod in          Colbon-Vauu ormat
                Name                 Shanma
 Groph DB
      Hes                      Node an         Regu
                                               RlahonpP
                                                 (SD)
                                    dlearing
                               Watre
0t ib disonbutod in naturt
Stalabiltiy'
      Horhentat
       BASE
        BASICAII9 Aoai'abla
                                        No omplz ueny
  Ralbhional
                                        N. lanuicieny
     Just to proriclu con S/snt dala.
Whakabb, dhtovd, Teluam, Slatk, fb mshge
      funchional                                       Non       funthorl
                                                  0 Scalabthy
              (Text)
   Goup    Menaye suppot                             westaleny
                                             O Arai tabiliky
   dast Seen Dnltne|Ofle
   Uses   Nogin Athent catfon
                                o e   Envelo pe
  DAU
                 to mesags to 4 peo               in Oue day
      5om (usee) yo mesays       2o00              mras
    for lo years
       User      A                                          Use
                                                           direaty by per to peu, bu
                                   Scable
                             not
                                    quoup
                        " not       fuly    stralabe
        To prida             Es      we                cormmo n
              doBauls Cucl
                                    HrtP
                                                           Send Ros
               Use     A                                                Uses- B
                                            Chat Seve
            Pool
                     So normally for tomnynkahon                       HTTP petocol, hw
HrP foils
                                                                      Qud fminate
                               Impord paoto cols
                                   ong- aling - foling.
                                              &END                         SEND
                        sec                                                            Cannetin
                                                                             ACK
        SEND
                                                                                       Budire chsn
                                                                                        CunnecH
                              Uie-seve mapPing kevice
|agin
                         Neb Weeko
                                          Cuat Seve
                                           Chat seves
         Nbw Aoy
        cuemt Gends                  to                        send eliut seve kro
         4o       hat     s   H
                               Rat          Needto      ceat
                                                                      Kerriee hr mapping
                 Serd Ros bom to, mesage,ybe),
              To store
                          ang teng ww      hced Sbsage, Hat cataboe
                                          wrtte
        Vsel ean seeule 2                 send men
                                          Updre prfile Pie
          Use Profiu
Ay apty tn         Ne
                                -     N, S8L
Seah
 Mhpte tust menoging         Stvces      wws bumn Wie DB (Casandya)
                     ken              Timelanp
       tan do patiYon          bancd on        Gom to To
                  0rdesing     b pluw in nodlA
                                       paotihon tabe tane 8t unique ids
 Now     s talk    abeut     ushen    ay chat      rer     downo or   vsuis oinu
                        togin e dogin clauk uith usee mapping and
             no
                               amsigned , it aJs1gn a nous one
   appIng sever wull Chek Hat in               b
                                         UsewSend          Meage   Time   anp
dot Seen !
                                Chat eees.