The document discusses microservices and provides definitions and benefits. It defines a microservice as a stand-alone service that is quick to develop and deploy, autonomous, and focuses on a single functionality. Benefits of microservices include technology heterogeneity, scalability, resilience, easier deployment, and improved failure management. Examples of microservices include the Google Auth service and using services for different tasks like queues, PHP, and databases.
1. Microservices: A Quick Introduction
About me
Thien Tran Duy
PHP developer since 2012
User 571 on phalconphp.com
Loves open source developments
Open Company
fcduythien@gmail.com
August 10, 2015
GO1 (meetup) Microservice August 10, 2015 1 / 7
2. 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
GO1 (meetup) Microservice August 10, 2015 2 / 7
3. 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
GO1 (meetup) Microservice August 10, 2015 3 / 7
4. 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
GO1 (meetup) Microservice August 10, 2015 3 / 7
5. 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.
GO1 (meetup) Microservice August 10, 2015 3 / 7
6. 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
GO1 (meetup) Microservice August 10, 2015 3 / 7
7. 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
GO1 (meetup) Microservice August 10, 2015 3 / 7
8. 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
GO1 (meetup) Microservice August 10, 2015 3 / 7
9. Microservices
Information
Why use Microservices & Benefits ?
Below that why I think a Microservices architecture brings more benefits
than a monolithic one.
1 Technology Heterogeneity
GO1 (meetup) Microservice August 10, 2015 4 / 7
10. 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
GO1 (meetup) Microservice August 10, 2015 4 / 7
11. 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
GO1 (meetup) Microservice August 10, 2015 4 / 7
12. 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
GO1 (meetup) Microservice August 10, 2015 4 / 7
13. 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
GO1 (meetup) Microservice August 10, 2015 4 / 7
14. 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
GO1 (meetup) Microservice August 10, 2015 4 / 7
15. 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
GO1 (meetup) Microservice August 10, 2015 4 / 7
17. 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
GO1 (meetup) Microservice August 10, 2015 5 / 7
18. 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. .
GO1 (meetup) Microservice August 10, 2015 6 / 7