Qual'è la prima cosa che ti viene in mente se ti chiedessi di associare "container" e "architetture" ? Esatto ! Container e microservizi sono di fatto gli argomenti più chiacchierati degli ultimi anni e che spesso vanno a braccetto. Ma quand'è che i due mondi iniziano ad incontrarsi, se non nel tuo computer? Ti porterò la mia esperienza sul uso dei container per lo sviluppo di un applicativo con architettura a microservizi, partendo dalle scelte fatte fin dai primi momenti dello sviluppo fino ad arrivare alla sua messa in produzione.
12. ▸ Additional complexity of a distributed system
▸ Testing is more complex
▸ Internal process for communication purpose
▸ A bad APIs design it’s very dangerous
▸ Development environment it’s hard to setup
CONTAINER AND MICROSERVICES: A ❤ STORY
MICROSERVICE’S CONS
25. CONTAINER AND MICROSERVICES: A ❤ STORY
Simulate isolate systems
Usable in more OS
Ready to use
Easy to install
Easy to use
🤔
26. CONTAINER AND MICROSERVICES: A ❤ STORY
DOCKER FOR MAC/WINDOWS
Docker for Mac/Windows is an easy-to-install
desktop app for building, debugging and testing
Dockerized apps on a Mac/PC.
😎
35. CONTAINER AND MICROSERVICES: A ❤ STORY
DOCKER IMAGE
FROM ruby
RUN apt-get update -qq && apt-get install -y build-essential
libpq-dev nodejs
RUN mkdir /my_app
WORKDIR /my_app
RUN gem install rails
File: ./my_app/Dockerfile
36. CONTAINER AND MICROSERVICES: A ❤ STORY
DOCKER IMAGE
FROM ruby
RUN apt-get update -qq && apt-get install -y build-essential
libpq-dev nodejs
RUN mkdir /my_app
WORKDIR /my_app
RUN gem install rails
File: ./my_app/Dockerfile
38. CONTAINER AND MICROSERVICES: A ❤ STORY
DOCKER IMAGE
FROM ruby
RUN apt-get update -qq && apt-get install -y build-
essential libpq-dev nodejs
RUN mkdir /my_app
WORKDIR /my_app
RUN gem install rails
File: ./my_app/Dockerfile
39. CONTAINER AND MICROSERVICES: A ❤ STORY
DOCKER IMAGE
FROM ruby
RUN apt-get update -qq && apt-get install -y build-essential
libpq-dev nodejs
RUN mkdir /my_app
WORKDIR /my_app
RUN gem install rails
File: ./my_app/Dockerfile
40. CONTAINER AND MICROSERVICES: A ❤ STORY
DOCKER IMAGE
FROM ruby
RUN apt-get update -qq && apt-get install -y build-essential
libpq-dev nodejs
RUN mkdir /my_app
WORKDIR /my_app
RUN gem install rails
File: ./my_app/Dockerfile
57. CONTAINER AND MICROSERVICES: A ❤ STORY
▸ Microservices
▸ Docker compose
▸ How portable and repeatable development
environment save your time!
…WHAT HAVE WE SEEN TODAY?
58. CONTAINER AND MICROSERVICES: A ❤ STORY
SO, WHY I’M IN ❤?
▸ Microservices architecture gave me a new point
of view
▸ Thanks to microservices, I found a way to use
and understand containers
▸ Life is too short for waste your time
59. “YOUR WORK IS GOING TO FILL A LARGE
PART OF YOUR LIFE, AND THE ONLY WAY
TO BE TRULY SATISFIED IS TO DO WHAT
YOU BELIEVE IS GREAT WORK. AND
THE ONLY WAY TO DO GREAT
WORK IS TO LOVE WHAT YOU DO.”
STEVE JOBS
CONTAINER AND MICROSERVICES: A ❤ STORY