Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
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	ARCHITECT...
MICHELANGELO	VAN	DAM
Professional	PHP	Consultant	
Community	Leader	
Trainer,	Mentor	&	Coach	
Public	Speaker
3LEVERAGING	A	...
AGENDA
-Why	this	talk?	
-What	is	“distribu:on	of	responsibility”?	
-Microservices,	Docker	and	async	PHP	
-Distributed	Arch...
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.wik...
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	268...
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...
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
We...
READY	FOR	ALL…
-bare	metal	
-virtual	systems	
-cloud	systems	
-…
26LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE...
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,	tha...
INTRODUCING:	LONNIE	BROWN
www.in2it.be	-	@in2itvof 34
www.in2it.be	-	@in2itvof
THANK	YOU…
35LEVERAGING	A	DISTRIBUTED	ARCHITECTURE	TO	YOUR	ADVANTAGE
Nächste SlideShare
Wird geladen in …5
×

Leveraging a distributed architecture to your advantage

412 Aufrufe

Veröffentlicht am

The time where we talked about the traditional LAMP stack is way behind us. In this day-and-age you build applications with a distributed architecture in mind: consuming externals services and setting up microservices yourself. In this talk I will show how to best use cloud services you can build fast, resilient and scalable applications without spending too much money. Get ready for the future!

Veröffentlicht in: Ingenieurwesen
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

Leveraging a distributed architecture to your advantage

  1. 1. LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE Lonnie Brown - @LBrown972 Michelangelo van Dam - @DragonBe
  2. 2. LONNIE BROWN PHP connec:on facilitator Conference family father Balance of your life 2LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGEwww.in2it.be - @in2itvof
  3. 3. MICHELANGELO VAN DAM Professional PHP Consultant Community Leader Trainer, Mentor & Coach Public Speaker 3LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGEwww.in2it.be - @in2itvof
  4. 4. 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
  5. 5. www.in2it.be - @in2itvof WHY THIS TALK? 5LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  6. 6. 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
  7. 7. GROUP OF CODERS… www.in2it.be - @in2itvof 7LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  8. 8. THEY HAD ONE JOB… www.in2it.be - @in2itvof 8LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  9. 9. LET’S PACK IT ALL IN www.in2it.be - @in2itvof 9LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  10. 10. 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
  11. 11. www.in2it.be - @in2itvof DISTRIBUTION OF RESPONSIBILITY 11LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  12. 12. GRAB AS YOU GO… www.in2it.be - @in2itvof 12LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  13. 13. BATCH PROCESSING www.in2it.be - @in2itvof 13LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  14. 14. WE WANT IT ALL!!! www.in2it.be - @in2itvof 14LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  15. 15. TAKE THE RED PILL www.in2it.be - @in2itvof 15LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  16. 16. COMPARTMENTALIZATION www.in2it.be - @in2itvof 16LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  17. 17. ASSEMBLY LINE www.in2it.be - @in2itvof 17LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  18. 18. CHECKPOINTS www.in2it.be - @in2itvof 18LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  19. 19. ACHIEVEMENT UNLOCKED www.in2it.be - @in2itvof 19LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  20. 20. www.in2it.be - @in2itvof MICROSERVICES, DOCKER, ASYNC PHP 20LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  21. 21. 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
  22. 22. FIRST APPLY THESE ON YOUR CODE! www.in2it.be - @in2itvof 22LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  23. 23. FROM HERE YOU CAN SCALE… www.in2it.be - @in2itvof 23LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  24. 24. www.in2it.be - @in2itvof DISTRIBUTED ARCHITECTURE 24LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  25. 25. 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
  26. 26. READY FOR ALL… -bare metal -virtual systems -cloud systems -… 26LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGEwww.in2it.be - @in2itvof
  27. 27. ALL FOR ONE, ONE FOR ALL www.in2it.be - @in2itvof 27LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  28. 28. www.in2it.be - @in2itvof WHAT YOU SHOULD TAKE HOME 28LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE
  29. 29. EACH METHOD DOES 1 THING very well
  30. 30. USE THE FORCE Use interfaces and abstract classes to guide your development, not to lock it.
  31. 31. “THE WHOLE IS GREATER THAN THE SUM OF ITS PARTS.” — Aristotle
  32. 32. BLEED AWESOMENESS Not memory
  33. 33. 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
  34. 34. INTRODUCING: LONNIE BROWN www.in2it.be - @in2itvof 34
  35. 35. www.in2it.be - @in2itvof THANK YOU… 35LEVERAGING A DISTRIBUTED ARCHITECTURE TO YOUR ADVANTAGE

×