SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
LEVERAGING	A	DISTRIBUTED	
ARCHITECTURE	TO	YOUR	ADVANTAGE
Lonnie	Brown	-	@LBrown972	
Michelangelo	van	Dam	-	@DragonBe
LONNIE	BROWN
PHP	connec:on	facilitator	
Conference	family	father	
Balance	of	your	life
2LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGEwww.in2it.be	-	@in2itvof
MICHELANGELO	VAN	DAM
Professional	PHP	Consultant	
Community	Leader	
Trainer,	Mentor	&	Coach	
Public	Speaker
3LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGEwww.in2it.be	-	@in2itvof
AGENDA
-Why	this	talk?	
-What	is	“distribu:on	of	responsibility”?	
-Microservices,	Docker	and	async	PHP	
-Distributed	Architecture	
-What	you	should	take	home
4LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGEwww.in2it.be	-	@in2itvof
www.in2it.be	-	@in2itvof
WHY	THIS	TALK?
5LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
LET	ME	TELL	YOU	A	STORY…
www.in2it.be	-	@in2itvof 6LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
hp://muppet.wikia.com/wiki/The_StoryTeller	-	©	2005	The	Jim	Henson	Company
GROUP	OF	CODERS…
www.in2it.be	-	@in2itvof 7LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
THEY	HAD	ONE	JOB…
www.in2it.be	-	@in2itvof 8LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
LET’S	PACK	IT	ALL	IN
www.in2it.be	-	@in2itvof 9LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
10www.in2it.be	-	@in2itvof LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
Fatal	error:	Allowed	memory	size	of	268435456	
bytes	exhausted	(tried	to	allocate	77	bytes)	in		
/path/to/MassiveClass.php	on	line	666
www.in2it.be	-	@in2itvof
DISTRIBUTION	OF	RESPONSIBILITY
11LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
GRAB	AS	YOU	GO…
www.in2it.be	-	@in2itvof 12LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
BATCH	PROCESSING
www.in2it.be	-	@in2itvof 13LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
WE	WANT	IT	ALL!!!
www.in2it.be	-	@in2itvof 14LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
TAKE	THE	RED	PILL
www.in2it.be	-	@in2itvof 15LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
COMPARTMENTALIZATION
www.in2it.be	-	@in2itvof 16LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
ASSEMBLY	LINE
www.in2it.be	-	@in2itvof 17LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
CHECKPOINTS
www.in2it.be	-	@in2itvof 18LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
ACHIEVEMENT	UNLOCKED
www.in2it.be	-	@in2itvof 19LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
www.in2it.be	-	@in2itvof
MICROSERVICES,	DOCKER,	ASYNC	PHP
20LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
SOLID	PRINCIPLE
-Single	responsibility	principle	
-Open/closed	principle	
-Liskov	subs:tu:on	principle	
-Interface	segrega:on	principle	
-Dependency	inversion	principle
21LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGEwww.in2it.be	-	@in2itvof
FIRST	APPLY	THESE	ON	YOUR	CODE!
www.in2it.be	-	@in2itvof 22LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
FROM	HERE	YOU	CAN	SCALE…
www.in2it.be	-	@in2itvof 23LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
www.in2it.be	-	@in2itvof
DISTRIBUTED	ARCHITECTURE
24LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
SINGLE	PURPOSE	SYSTEMS
www.in2it.be	-	@in2itvof 25LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
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 Filesystem
Cron System
READY	FOR	ALL…
-bare	metal	
-virtual	systems	
-cloud	systems	
-…
26LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGEwww.in2it.be	-	@in2itvof
ALL	FOR	ONE,	ONE	FOR	ALL
www.in2it.be	-	@in2itvof 27LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
www.in2it.be	-	@in2itvof
WHAT	YOU	SHOULD	TAKE	HOME
28LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
EACH	METHOD	DOES	1	THING
very	well
USE	THE	FORCE
Use	interfaces	and	abstract	classes	to	guide	
your	development,	not	to	lock	it.
“THE	WHOLE	IS	GREATER	THAN	THE	SUM	OF	ITS	
PARTS.”
—	Aristotle
BLEED	AWESOMENESS
Not	memory
33www.in2it.be	-	@in2itvof LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
98810
If	you	enjoyed	this	workshop,	thanks.	
If	not,	tell	us	how	to	make	it	beer	
Link	to	the	slides	are	on	the	joind.in	page	
Leave	some	feedback	while	grabbing	them
INTRODUCING:	LONNIE	BROWN
www.in2it.be	-	@in2itvof 34
www.in2it.be	-	@in2itvof
THANK	YOU…
35LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE

Más contenido relacionado

Más de Michelangelo van Dam

GDPR Art. 25 - Privacy by design and default
GDPR Art. 25 - Privacy by design and defaultGDPR Art. 25 - Privacy by design and default
GDPR Art. 25 - Privacy by design and defaultMichelangelo van Dam
 
Moving from app services to azure functions
Moving from app services to azure functionsMoving from app services to azure functions
Moving from app services to azure functionsMichelangelo van Dam
 
General Data Protection Regulation, a developer's story
General Data Protection Regulation, a developer's storyGeneral Data Protection Regulation, a developer's story
General Data Protection Regulation, a developer's storyMichelangelo van Dam
 
Leveraging a distributed architecture to your advantage
Leveraging a distributed architecture to your advantageLeveraging a distributed architecture to your advantage
Leveraging a distributed architecture to your advantageMichelangelo van Dam
 
Open source for a successful business
Open source for a successful businessOpen source for a successful business
Open source for a successful businessMichelangelo van Dam
 
Deploy to azure in less then 15 minutes
Deploy to azure in less then 15 minutesDeploy to azure in less then 15 minutes
Deploy to azure in less then 15 minutesMichelangelo van Dam
 
Azure and OSS, a match made in heaven
Azure and OSS, a match made in heavenAzure and OSS, a match made in heaven
Azure and OSS, a match made in heavenMichelangelo van Dam
 
Zf2 how arrays will save your project
Zf2   how arrays will save your projectZf2   how arrays will save your project
Zf2 how arrays will save your projectMichelangelo van Dam
 
PHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsPHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsMichelangelo van Dam
 

Más de Michelangelo van Dam (20)

GDPR Art. 25 - Privacy by design and default
GDPR Art. 25 - Privacy by design and defaultGDPR Art. 25 - Privacy by design and default
GDPR Art. 25 - Privacy by design and default
 
Moving from app services to azure functions
Moving from app services to azure functionsMoving from app services to azure functions
Moving from app services to azure functions
 
Privacy by design
Privacy by designPrivacy by design
Privacy by design
 
DevOps or DevSecOps
DevOps or DevSecOpsDevOps or DevSecOps
DevOps or DevSecOps
 
Privacy by design
Privacy by designPrivacy by design
Privacy by design
 
Continuous deployment 2.0
Continuous deployment 2.0Continuous deployment 2.0
Continuous deployment 2.0
 
Let your tests drive your code
Let your tests drive your codeLet your tests drive your code
Let your tests drive your code
 
General Data Protection Regulation, a developer's story
General Data Protection Regulation, a developer's storyGeneral Data Protection Regulation, a developer's story
General Data Protection Regulation, a developer's story
 
Leveraging a distributed architecture to your advantage
Leveraging a distributed architecture to your advantageLeveraging a distributed architecture to your advantage
Leveraging a distributed architecture to your advantage
 
The road to php 7.1
The road to php 7.1The road to php 7.1
The road to php 7.1
 
Open source for a successful business
Open source for a successful businessOpen source for a successful business
Open source for a successful business
 
Deploy to azure in less then 15 minutes
Deploy to azure in less then 15 minutesDeploy to azure in less then 15 minutes
Deploy to azure in less then 15 minutes
 
Azure and OSS, a match made in heaven
Azure and OSS, a match made in heavenAzure and OSS, a match made in heaven
Azure and OSS, a match made in heaven
 
Getting hands dirty with php7
Getting hands dirty with php7Getting hands dirty with php7
Getting hands dirty with php7
 
Zf2 how arrays will save your project
Zf2   how arrays will save your projectZf2   how arrays will save your project
Zf2 how arrays will save your project
 
Create, test, secure, repeat
Create, test, secure, repeatCreate, test, secure, repeat
Create, test, secure, repeat
 
The Continuous PHP Pipeline
The Continuous PHP PipelineThe Continuous PHP Pipeline
The Continuous PHP Pipeline
 
PHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsPHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the tests
 
Your code are my tests
Your code are my testsYour code are my tests
Your code are my tests
 
200K+ reasons security is a must
200K+ reasons security is a must200K+ reasons security is a must
200K+ reasons security is a must
 

Último

AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxchumtiyababu
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 

Último (20)

AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 

Leveraging a distributed architecture to your advantage