35
LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE Lonnie Brown - @LBrown972 Michelangelo van Dam - @DragonBe

Leveraging a distributed architecture to your advantage

Embed Size (px)

Citation preview

Page 1: Leveraging a distributed architecture to your advantage

LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGELonnieBrown-@LBrown972MichelangelovanDam-@DragonBe

Page 2: Leveraging a distributed architecture to your advantage

LONNIEBROWNPHPconnec:onfacilitatorConferencefamilyfather

Balanceofyourlife

2LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGEwww.in2it.be-@in2itvof

Page 3: Leveraging a distributed architecture to your advantage

MICHELANGELOVANDAMProfessionalPHPConsultantCommunityLeaderTrainer,Mentor&CoachPublicSpeaker

3LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGEwww.in2it.be-@in2itvof

Page 4: Leveraging a distributed architecture to your advantage

AGENDA-Whythistalk?-Whatis“distribu:onofresponsibility”?-Microservices,DockerandasyncPHP-DistributedArchitecture-Whatyoushouldtakehome

4LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGEwww.in2it.be-@in2itvof

Page 5: Leveraging a distributed architecture to your advantage

www.in2it.be-@in2itvof

WHYTHISTALK?

5LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 6: Leveraging a distributed architecture to your advantage

LETMETELLYOUASTORY…

www.in2it.be-@in2itvof 6LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

h\p://mup

pet.w

ikia.com

/wiki/T

he_StoryTeller-©

2005TheJim

Hen

sonCo

mpany

Page 7: Leveraging a distributed architecture to your advantage

GROUPOFCODERS…

www.in2it.be-@in2itvof 7LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 8: Leveraging a distributed architecture to your advantage

THEYHADONEJOB…

www.in2it.be-@in2itvof 8LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 9: Leveraging a distributed architecture to your advantage

LET’SPACKITALLIN

www.in2it.be-@in2itvof 9LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 10: Leveraging a distributed architecture to your advantage

10www.in2it.be-@in2itvof LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Fatalerror:Allowedmemorysizeof268435456bytesexhausted(triedtoallocate77bytes)in/path/to/MassiveClass.phponline666

Page 11: Leveraging a distributed architecture to your advantage

www.in2it.be-@in2itvof

DISTRIBUTIONOFRESPONSIBILITY

11LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 12: Leveraging a distributed architecture to your advantage

GRABASYOUGO…

www.in2it.be-@in2itvof 12LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 13: Leveraging a distributed architecture to your advantage

BATCHPROCESSING

www.in2it.be-@in2itvof 13LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 14: Leveraging a distributed architecture to your advantage

WEWANTITALL!!!

www.in2it.be-@in2itvof 14LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 15: Leveraging a distributed architecture to your advantage

TAKETHEREDPILL

www.in2it.be-@in2itvof 15LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 16: Leveraging a distributed architecture to your advantage

COMPARTMENTALIZATION

www.in2it.be-@in2itvof 16LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 17: Leveraging a distributed architecture to your advantage

ASSEMBLYLINE

www.in2it.be-@in2itvof 17LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 18: Leveraging a distributed architecture to your advantage

CHECKPOINTS

www.in2it.be-@in2itvof 18LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 19: Leveraging a distributed architecture to your advantage

ACHIEVEMENTUNLOCKED

www.in2it.be-@in2itvof 19LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 20: Leveraging a distributed architecture to your advantage

www.in2it.be-@in2itvof

MICROSERVICES,DOCKER,ASYNCPHP

20LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 21: Leveraging a distributed architecture to your advantage

SOLIDPRINCIPLE-Singleresponsibilityprinciple-Open/closedprinciple-Liskovsubs:tu:onprinciple- Interfacesegrega:onprinciple-Dependencyinversionprinciple

21LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGEwww.in2it.be-@in2itvof

Page 22: Leveraging a distributed architecture to your advantage

FIRSTAPPLYTHESEONYOURCODE!

www.in2it.be-@in2itvof 22LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 23: Leveraging a distributed architecture to your advantage

FROMHEREYOUCANSCALE…

www.in2it.be-@in2itvof 23LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 24: Leveraging a distributed architecture to your advantage

www.in2it.be-@in2itvof

DISTRIBUTEDARCHITECTURE

24LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 25: Leveraging a distributed architecture to your advantage

SINGLEPURPOSESYSTEMS

www.in2it.be-@in2itvof 25LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Load Balancer

Web Node 1

Web Node 2

MySQL Master

MySQL Slave

MongoDB Node 1

MongoDB Node 2

MongoDB Node 3

API Node 1

API Node 2

Redis Node 1

Redis Node 2

Memcache Node 1

Memcache Node 2Gearman

Solr Node 1

Solr Node 2

Shared FilesystemCron System

Page 26: Leveraging a distributed architecture to your advantage

READYFORALL…-baremetal-virtualsystems-cloudsystems-…

26LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGEwww.in2it.be-@in2itvof

Page 27: Leveraging a distributed architecture to your advantage

ALLFORONE,ONEFORALL

www.in2it.be-@in2itvof 27LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 28: Leveraging a distributed architecture to your advantage

www.in2it.be-@in2itvof

WHATYOUSHOULDTAKEHOME

28LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

Page 29: Leveraging a distributed architecture to your advantage

EACHMETHODDOES1THINGverywell

Page 30: Leveraging a distributed architecture to your advantage

USETHEFORCEUseinterfacesandabstractclassestoguideyourdevelopment,nottolockit.

Page 31: Leveraging a distributed architecture to your advantage

“THEWHOLEISGREATERTHANTHESUMOFITSPARTS.”

—Aristotle

Page 32: Leveraging a distributed architecture to your advantage

BLEEDAWESOMENESSNotmemory

Page 33: Leveraging a distributed architecture to your advantage

33www.in2it.be-@in2itvof LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE

98810

Ifyouenjoyedthisworkshop,thanks.Ifnot,tellushowtomakeitbe\er

Linktotheslidesareonthejoind.inpageLeavesomefeedbackwhilegrabbingthem

Page 34: Leveraging a distributed architecture to your advantage

INTRODUCING:LONNIEBROWN

www.in2it.be-@in2itvof 34

Page 35: Leveraging a distributed architecture to your advantage

www.in2it.be-@in2itvof

THANKYOU…

35LEVERAGINGADISTRIBUTEDARCHITECTURETOYOURADVANTAGE