Slide 1

Slide 1 text

Microservices: A Quick Introduction About me Thien Tran Duy PHP developer since 2012 User 571 on phalconphp.com Loves open source developments Open Company [email protected] August 10, 2015 PHP Saigon (meetup) Microservice August 10, 2015 1 / 7

Slide 2

Slide 2 text

Microservices Summary A monolithic architecture is a great choice for small app. However, when the application grows in size and complexity, a monolithic architecture becomes a major obstacle to agile development and continuous deploy. A better approach for large, complex applications is to use a microservice architecture 1 What is a Microservices 2 Why using Microservices 3 In Conclusions PHP Saigon (meetup) Microservice August 10, 2015 2 / 7

Slide 3

Slide 3 text

The two Section Information What is Microservice? A Microservice is a stand-alone service that can be (re)built in no more than two weeks, it is autonomous services that work together. 1 It is a Stand-alone service/application PHP Saigon (meetup) Microservice August 10, 2015 3 / 7

Slide 4

Slide 4 text

The two Section Information What is Microservice? A Microservice is a stand-alone service that can be (re)built in no more than two weeks, it is autonomous services that work together. 1 It is a Stand-alone service/application 2 It is quick to (re)write PHP Saigon (meetup) Microservice August 10, 2015 3 / 7

Slide 5

Slide 5 text

The two Section Information What is Microservice? A Microservice is a stand-alone service that can be (re)built in no more than two weeks, it is autonomous services that work together. 1 It is a Stand-alone service/application 2 It is quick to (re)write 3 It knows that failures exist. PHP Saigon (meetup) Microservice August 10, 2015 3 / 7

Slide 6

Slide 6 text

The two Section Information What is Microservice? A Microservice is a stand-alone service that can be (re)built in no more than two weeks, it is autonomous services that work together. 1 It is a Stand-alone service/application 2 It is quick to (re)write 3 It knows that failures exist. 4 It must provide one functionality PHP Saigon (meetup) Microservice August 10, 2015 3 / 7

Slide 7

Slide 7 text

The two Section Information What is Microservice? A Microservice is a stand-alone service that can be (re)built in no more than two weeks, it is autonomous services that work together. 1 It is a Stand-alone service/application 2 It is quick to (re)write 3 It knows that failures exist. 4 It must provide one functionality 5 It must provide an API that other services can use PHP Saigon (meetup) Microservice August 10, 2015 3 / 7

Slide 8

Slide 8 text

The two Section Information What is Microservice? A Microservice is a stand-alone service that can be (re)built in no more than two weeks, it is autonomous services that work together. 1 It is a Stand-alone service/application 2 It is quick to (re)write 3 It knows that failures exist. 4 It must provide one functionality 5 It must provide an API that other services can use 6 Multiple languages and frameworks PHP Saigon (meetup) Microservice August 10, 2015 3 / 7

Slide 9

Slide 9 text

Microservices Information Why use Microservices & Benefits ? Below that why I think a Microservices architecture brings more benefits than a monolithic one. 1 Technology Heterogeneity PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 10

Slide 10 text

Microservices Information Why use Microservices & Benefits ? Below that why I think a Microservices architecture brings more benefits than a monolithic one. 1 Technology Heterogeneity 2 Scalability PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 11

Slide 11 text

Microservices Information Why use Microservices & Benefits ? Below that why I think a Microservices architecture brings more benefits than a monolithic one. 1 Technology Heterogeneity 2 Scalability 3 Resilience PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 12

Slide 12 text

Microservices Information Why use Microservices & Benefits ? Below that why I think a Microservices architecture brings more benefits than a monolithic one. 1 Technology Heterogeneity 2 Scalability 3 Resilience 4 Ease of Deployment PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 13

Slide 13 text

Microservices Information Why use Microservices & Benefits ? Below that why I think a Microservices architecture brings more benefits than a monolithic one. 1 Technology Heterogeneity 2 Scalability 3 Resilience 4 Ease of Deployment 5 Better Failure Management PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 14

Slide 14 text

Microservices Information Why use Microservices & Benefits ? Below that why I think a Microservices architecture brings more benefits than a monolithic one. 1 Technology Heterogeneity 2 Scalability 3 Resilience 4 Ease of Deployment 5 Better Failure Management 6 Small and focussed teams PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 15

Slide 15 text

Example microservices Deploying Microservice Using Docker at github: web : image : phanbook/ nginx p o r t s : − ” 80:80 ” volumes : − . / : / var /www/ html l i n k s : − php php : image : phanbook/php volumes : − . / : / var /www/ html l i n k s : − db app : image : phanbook/app volumes : − . / : / var /www/ html db : image : phanbook/ mysql env f i l e : . / o p s f i l e s / docker / c o n f i g . env PHP Saigon (meetup) Microservice August 10, 2015 4 / 7

Slide 16

Slide 16 text

The four Section PHP Saigon (meetup) Microservice August 10, 2015 5 / 7

Slide 17

Slide 17 text

The four Section Example microservices 1 A good example is the Google Auth service. 2 Phalcon PHP and Emberjs 3 Queue to deliver e-mails in real-time PHP Saigon (meetup) Microservice August 10, 2015 5 / 7

Slide 18

Slide 18 text

Conclusion In conclusion It is not we aims here to give you the most complete explanation of what Microservices are for that, We would suggest you read the book at Oreilly. Is refactoring to microservices good for any software application? Are you using Microservices or planning to use them? I would love to hear your opinion on the subject. . PHP Saigon (meetup) Microservice August 10, 2015 6 / 7

Slide 19

Slide 19 text

Thanks Thanks Please questions ??? PHP Saigon (meetup) Microservice August 10, 2015 7 / 7