Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Microservices Reference Architecture

Yamen Sader
February 18, 2015

A Microservices Reference Architecture

A highly opinionated, strawman reference architecture for success with Microservices.

Presented at the fifth Sydney Microservices Meetup on Feb 18th 2015.

Yamen Sader

February 18, 2015
Tweet

More Decks by Yamen Sader

Other Decks in Technology

Transcript

  1. 8VH'RFNHU 905XQWLPH %LQDU\ 'LVWULEXWLRQ 3RUWDEOH 3DFNDJH 6WURQJ (FRV\VWHP (PHUJLQJ 6WDQGDUG

    /DQJXDJH $JQRVWLF 0LQLPDO 'HSHQGHQFLHV &RQILJXUHGYLD (QYLURQPHQW
  2. &RQILJXUH8VLQJ(QYLURQPHQW 3UHIHUFRQVLVWHQWGHSHQGHQF\RQ HQYLURQPHQWYDULDEOHVRYHU ‡ 3URSHUWLHVILOHV ‡ &RPPDQGOLQHDUJXPHQWV ‡ 2WKHUFRQILJXUDWLRQRSWLRQV 2QVWDUWXSWKHFRQWDLQHUVKRXOG

    ‡ &RQILJXUHVHUYLFHEDVHGRQ HQYLURQPHQW ‡ 7KHQVWDUWWKHVHUYLFH 7HPSODWH&RQILJXUDWLRQ (QYLURQPHQW6WDUWXS 6FULSW &RQILJXUHG6\VWHP
  3. D&RQILJXUH'\QDPLFDOO\ 8VLQJ&RQVXO &RQVXO &RQVXO &RQVXO 8VHFRQVXOWHPSODWHWR ‡ :DWFKFRQVXOIRUFRQILJXUDWLRQ FKDQJHV ‡

    5HORDGILOHVDQGVHUYLFHVRQ FKDQJHV )RUVFHQDULRVZKHUHG\QDPLF UHORDGVDUHDSSURSULDWH
  4. <RXU)ULHQGO\'RFNHU'DHPRQ 7KH'RFNHUGDHPRQUXQQLQJRQHDFKKRVWH[SRVHV DWOHDVW WKHIROORZLQJIRU DOOUXQQLQJDQGVWRSSHGFRQWDLQHUVWKURXJKLWV$3, ‡ (QYLURQPHQWYDULDEOHFRQILJXUDWLRQ ‡ &38PHPRU\DQGRWKHUYLWDOVWDWV ‡

    ([SR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HDERYHFRQFHUQV
  7. J&RQVXPHU'ULYHQ&RQWUDFWV ‡ 8VHSDFWRUSDFWR WRHQVXUH\RXU FRQVXPHUVGRQ·WEUHDNRQ XSJUDGHV ‡ 2UOLNHSURYLGHFOLHQWOLEUDULHV ‡ 7KHPDLQSRLQWLVWKDW\RXZDQW

    WRNQRZWKHQHZVHUYLFHLVQ·W JRLQJWREUHDNDQ\WKLQJ ‡ 7HVWLQJV\QWKHWLFWUDQVDFWLRQV HDV\UROOEDFNVUHVLOLHQWFOLHQWVHWF DOOZRUN
  8. 'RFNHUPDNHVOLIHVLPSOHU %8,/' †‘…‡” –ƒ‰Žƒ–‡•– †‘…‡” ’—•ŠŽƒ–‡•– 5(/($6( †‘…‡” –ƒ‰ɛ 

    †‘…‡” ’—•Šɛ  ˜ •…ś–ƒ‰ 352027( ‡…Š‘ũ‡ƒ†›ˆ‘””‘†—…–‹‘Ū $XWRGHSOR\VWR'(9 ZLWK †‘…‡” ’—ŽŽŽƒ–‡•– †‘…‡” ”—Žƒ–‡•– 5HDG\IRUGHSOR\PHQW WR6,7DQG8$7ZLWK †‘…‡” ’—ŽŽɛ  †‘…‡” ”—ɛ  5HDG\IRUGHSOR\PHQW WR35'ZLWK †‘…‡” ’—ŽŽɛ  †‘…‡” ”—ɛ