More Related Content Similar to Microservices 5 things i wish i'd known Similar to Microservices 5 things i wish i'd known (20) More from Vincent Kok (10) Microservices 5 things i wish i'd known1. VINCENT KOK • DEV MANAGER • ATLASSIAN • @VINCENTKOK
Microservices
5 things I wish I’d known
3. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/fSopv4
You’ve got issues
4. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/7WcQwA
Slow down
5. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/bRgBZP
Lock up
6. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/bByin8
Technology will age
7. The promise of Microservices
Small Independent lifecycle ReplaceableRight tool
8. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/aSqP7p
Steep journey ahead
9. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/kENTD4
Fast forward to the top
10. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/kENTD4
http://images.clipartpanda.com/rainbow-unicorn-cute-tumblr_lj9cy4iZ821qdabzno1_r4_500.png
No silver bullet
15. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
Build a pattern
https://flic.kr/p/8ykpkW
16. The Twelve
Factor App
XI. Logs
One codebase tracked in revision
control, many deploys
V. Build, release, run
Strictly separate build and run stages
I. Codebase
Treat logs as event streams
26. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/8prXA6
Prevent different lifecycles
29. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
No secrets
37. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
Isolation
https://flic.kr/p/dxUhia
42. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
Consumer Driven
Contract Testing
https://flic.kr/p/9mjRKW
44. Consumer expectation
uponReceiving("A request by user id for a user")
.matching(path = "/Users/1")
.willRespondWith(body = userByIdResponse)
.during { providerConfig =>
Client(providerConfig.url).get("/Users/1)
must beEqualTo(200, Some(userByIdResponse))
}
47. PACT Matrix
Consumer master Consumer prod
Provider master Latest compatible
Provider
Compatible
Provider prod
Consumer
Compatible
Already tested
48. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
Post Deployment
Verification
https://flic.kr/p/6wHFj5
51. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
100 lbs
https://flic.kr/p/biy2an
99% of water
dehydrate to 98%
How much do they weigh now?
53. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
What is the uptime of service
that depends on 30 services
with an uptime of 99.99?
https://flic.kr/p/51TYD1
56. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
Know your system!
https://flic.kr/p/9b24xc
57. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
58. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
59. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
60. Trace your requests
X-B3-TraceId : 1
X-B3-SpanId : 1
X-B3-TraceId : 1
X-B3-SpanId : 2
X-B3-ParentSpanId : 1
X-B3-TraceId : 1
X-B3-SpanId : 3
X-B3-ParentSpanId : 2
X-B3-TraceId : 1
X-B3-SpanId : 4
X-B3-ParentSpanId : 3
61. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
64. • Big cool statistic
• 2,56
9
• Add-Ons in Marketplace
https://flic.kr/p/3Esx3o
More decisions to come