SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
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

Contenu connexe

Plus de Michelangelo 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 project
Michelangelo van Dam
 

Plus 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
 

Dernier

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Dernier (20)

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
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...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
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
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
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
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 

Leveraging a distributed architecture to your advantage