11. • The services are easy to replace.
• Services are organized around capabilities, e.g., user
interface front-end, recommendation, logistics, billing, etc.
• Services can be implemented using different programming
languages, databases, hardware and software environment,
depending on what fits best.
microservice architecture
ƗƗƗ
Ɨ
Ɨ
ƗƗ
Ɨ
Ɨ
Ɨ
Ɨ
Ɨ
19. Ɨ
ƗƗǽ
Ɨǽ
I can bake 1 donut
in x seconds.
message
queue
I want 5
donuts
request 5 donuts
donuts are baking
donuts are ready
I know how to receive
orders and give
orders to baking
minions.
52. Ɨǽ
“I didn't have time to create a slim image,
so I created a fat one instead.”
53. Ɨǽ
“The right image needs at least 5 kisses”
kiss = keep an image s…, smart ass
slim secure speedy stable set
54. SLIM
Start with the smallest minimal
image you can find and trust.
Remove compile time
dependencies.
Remove packages you don’t need.
Squash layers to reduce size.
Run stats for the image.
habitus.io
blog.cloud66.com
Ɨǽ
58. SECURE
Remove all the secrets.
Patch to the latest security
updates.
Run the image with the
right UID.
Test the image.
https://github.com/docker/
docker-bench-security
Ɨǽ
64. SET
Use volumes wisely, use
external services for
persistency, don’t abuse
host system.
Loosely coupled.
Remove things which are
hard to maintain in
production.
Ɨǽ
77. LIFECYCLE
Have an image guideline.
Create a workflow using the same
image in all the software cycle
stages.
From design to production mimic
the environment.
Test heavily.
Ǻ
81. DISCOVERY
Find your services and
datasources with minimal code
change.
Versioning of running services.
Automagically update
discovery when services come
and go.
Ǻ
83. SCALING/SCHEDULING
Scale your service (= more
running containers).
Scale your nodes.
Scale your on/off jobs.
Failover groups.
Hybrid infrastructure.
Load balancing.
Ǻ
89. SECURITY
Node and Engine level.
Intrusion detection and
prevention systems.
DoS protection.
Firewall.
Segregate container groups
Verification of images.
Ǻ
Ǻ
91. When you get DevOps, Testing,
Microservices architecture right and creating
the right minimal lovable Image and having
the right platform to run containers. Happy
Camper.
ǽ
92. THANK YOU
www.cloud66.com (free docker in production platform trial)
www.codefresh.com
www.habitus.io (open source docker build flow tool)
startwithdocker.com (easy starter for docker)
https://github.com/cloud66-samples/webinar_codefresh
```
Ɨǽ
Daniël van Gils
Developer Advocate
@foldingbeauty
daniel@cloud66.com
www.cloud66.com