Microservices
-
Upload
michael-bui -
Category
Technology
-
view
70 -
download
0
Transcript of Microservices
Microservices
#MichaelBui28121
2
About Me
● Full-Stack Software Developer● Working at PropertyGuru● Experience:
○ Programming: 9 years○ Microservices: 2 years○ DevOps: < 1 year
3
http://about.me/MichaelBui
4
5
Agenda● Microservices● Migration● Scalability● Resilience● Deployment
Microservices
6
7
8
9
10
11
Migration
Tools
12
● Container: Docker, LXC● Messaging: Redis,
ZeroMQ, RabbitMQ,...
1. Legacy App
13
Begin Log Begin Process Log End End
1. Legacy App (cont.)
1. Linear codes2. Become messy when
more logics added
=>unclean code
14
2. Improved App by Events
15
Begin Event
Log Begin
Process Event
Log End
End
2. Improved App by Events (cont.)
16
2. Improved App by Events (cont.)
17
3. Improved App by Microservices
18
Begin
End Event Channel
Message List
Message List
Watchers
Watchers
Workers
Workers End
3. Improved App by Microservices (cont.)
19
3. Improved App by Microservices (cont.)
20
Scalability
21
22
1 watcher + 1 worker = 30s
3 watchers + 3 workers = 14s
23
Broadcasting&
Load Balancing
24
Resilience
25
Deployment
26
Gitlab CI
Question?
27
https://github.com/michaelbui/PHPSG-1701
http://career.propertyguru.com/
28
Thank you!
29