Dockerized Microservices

1.177 Aufrufe

Veröffentlicht am

inovex Meetup: Let´s talk about docker!
Speaker: Hendrik Still, inovex GmbH
Karlsruhe, 18.12.2014

Mehr Meetups:
http://www.meetup.com/inovex-karlsruhe
http://www.meetup.com/inovex-cologne
http://www.meetup.com/inovex-munich

Veröffentlicht in: Technologie
0 Kommentare
2 Gefällt mir
Statistik
Notizen
  • Als Erste(r) kommentieren

Keine Downloads
Aufrufe
Aufrufe insgesamt
1.177
Auf SlideShare
0
Aus Einbettungen
0
Anzahl an Einbettungen
5
Aktionen
Geteilt
0
Downloads
21
Kommentare
0
Gefällt mir
2
Einbettungen 0
Keine Einbettungen

Keine Notizen für die Folie

Dockerized Microservices

  1. 1. Docker’ized Microservices 18.12.2014 Hendrik Still
  2. 2. ‣ Microservices ‣ What are Microservices? ‣ Why Microservices? ‣ Microservices, the Silver Bullet? ‣ Dockerizing Microservices ‣ @ Development ‣ @ Continuous Delivery Agenda
  3. 3. Source: http://martinfowler.com/articles/microservices. html#CharacteristicsOfAMicroserviceArchitecture What are Microservices? “In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API.“ -James Lewis & Martin Fowler
  4. 4. BuyLike The Monolith 0101 0101 1010 1110 1001 $
  5. 5. BuyLike $ Splitting up the Monolith
  6. 6. Why Microservices?
  7. 7. Buy $ Like Buy Service Like Service Scalability!
  8. 8. Buy $ Like Fault-tolerance!
  9. 9. Buy $ Like Polyglot Development Use the right tool for the job!
  10. 10. Are Microservices the Silver Bullet?
  11. 11. Imagesource: http://thefilmstage.com/news/tommy-lee-jones-to-produce-write-direct-and-star-in-the-homesman/ Are you serious?
  12. 12. Microservices Architecture = Distributed System
  13. 13. Runtime Overhead! 0101 0101 1010 1110 1001 $ Runtime Runtime Runtime $ vs.
  14. 14. Microservices & Docker
  15. 15. BuyLike $ Docker
  16. 16. The Dockerfile $ sudo docker build -t product-service . $ sudo docker run -d --name=product-service -p 9001:9001 --link=" eureka-master:eureka-master" product-service FROM dockerfile/java:oracle-java7 ADD build/libs/product-service.jar /service/product-service.jar WORKDIR /service EXPOSE 9001 EXPOSE 7979 CMD java -jar /service/product-service.jar
  17. 17. @ Development Buy $ Like $ docker build -t product-service . $ docker run … product-service $ docker build -t like-service . $ docker run … like-service $ docker build -t pay-service . $ docker run … pay-service $ docker build -t sun-service . $ docker run … sun-service $ docker build -t arrow-service . $ docker run … arrow-service
  18. 18. Orchestration tools
  19. 19. Vagrant Vagrant.configure(“2”) do |config| config.vm.define "productservice" do |ms| ms.vm.provider "docker" do |d| d.build_dir = "./product-service/" d.ports = ["9001:9001","7979:7979"] d.link "eureka-master:eureka-master" d.has_ssh = false end end config.vm.define "productpriceservice" do |ms| ms.vm.provider "docker" do |d| d.build_dir = "./product-price-service/" d.link "eureka-master:eureka-master" d.has_ssh = false end end # Other Microservices end
  20. 20. @ Development Buy $ Like $ vagrant up --provider=docker
  21. 21. @ Continuous Delivery Commit stage Acceptance test stageVCS ... Release stage Acceptance test stage ... Release stage Commit stageVCS Artifact Repository
  22. 22. Contact Hendrik Still hendrik.still@inovex.de inovex GmbH Office Karlsruhe Ludwig-Erhard-Allee 6 76131 Karlsruhe Thank you for listening!
  23. 23. Image Sources ● Spotify Logo https://developer.spotify.com/download/guidelines/ux-with-other-brands.pdf Docker Logo http://commons.wikimedia.org/wiki/File:Docker_%28container_engine% 29_logo.png ● Java Logo https://en.wikipedia.org/wiki/Java_%28programming_language% 29#mediaviewer/File:Java_logo_and_wordmark.svg ● Ruby Logo https://commons.wikimedia.org/wiki/File:Ruby_logo.svg ● Mysql Logo https://en.wikipedia.org/wiki/MySQL#mediaviewer/File:MySQL.svg ● MongoDB https://en.wikipedia.org/wiki/MongoDB#mediaviewer/File:MongoDB_Logo.png ● Vagrant https://commons.wikimedia.org/wiki/File:Vagrant.png#mediaviewer/File:Vagrant.png ● Rambo Tux http://it-runde.de/838/kleine-tux-gallerie-avatare
  24. 24. Buch: http://shop.oreilly.com/product/0636920033158.do Video: http://vimeo.com/74589816 Recommendations

×