Microservices and the Cloud - DevOps Cardiff Meetup

4,297 views

Published on

In this talk I cover my experiences with microservices in cloud environments, also talk about service discovery and orchestration.

Published in: Technology

Microservices and the Cloud - DevOps Cardiff Meetup

  1. 1. Marc  Cluet   https://www.flickr.com/photos/zachd1_618/5344850282  
  2. 2. Who am I?! Marc  Cluet  (@lynxman)     Head  of  Operations  at  <redacted>   17  years  of  experience  as  a  SysAdmin   Founding  member  of  Juju  and  MAAS   while  at  Canonical   Built  a  DevOps  Engineering  Team  at   Rackspace   Been  DevOps’in  for  the  last  5  years  
  3. 3. So… Microservices!! https://www.flickr.com/photos/wintermute2600/4056854111  
  4. 4. So… Microservices!! Microservices are not new! !!
  5. 5. So… Microservices!!
  6. 6. So… Microservices!! https://www.flickr.com/photos/marfis75/3279307888  
  7. 7. So… Microservices!! Microservices are reliant! !!
  8. 8. So… Microservices!! https://www.flickr.com/photos/5wa/8593739154  
  9. 9. So… Microservices!! Microservices force you to! Design for Failure!! !!
  10. 10. So… Microservices!!
  11. 11. Recommendations! https://www.flickr.com/photos/sarunas_b/9630357613  
  12. 12. Cloud Fitting! https://www.flickr.com/photos/egs/183990473  
  13. 13. Cloud Fitting! Orchestration! Cost Control! Anti-Fragile! Security in all Layers! !!
  14. 14. Orchestration! https://www.flickr.com/photos/foilman/3295092874  
  15. 15. Orchestration! 1.  Autoscaling! 2.  Self Healing! 3.  Cost Forecast! 4.  Predictive! !
  16. 16. Service Discovery! Service   Node  A   Service   Publication   Service   Node  B   Service   Node  C  
  17. 17. Service Discovery! Service   Node  A   Health   Check   Discovery   Agent   Discovery   Agent   Service   Node  B   Health   Check   Service   Publication  
  18. 18. Cost Control!
  19. 19. Cloud Architecture! Web   Frontend   Web  Mobile   App   Data   Backend   Workers   API  Service  
  20. 20. Cloud Architecture! Router   API  Server   Scheduler   MQ   Worker  
  21. 21. Cloud Architecture! Load   Balancer   API  Server   API  Server   API  Server   API  Server   MQ   Worker   Worker   Worker   Worker   Scheduler  
  22. 22. Cloud Architecture! Orchestration   Provisioning   Config  Mgmt  Metrics  
  23. 23. Cloud Fitting! Orchestration! Metrics! Provisioning! Config Mgmt! cloud-init!
  24. 24. Recommendations! https://www.flickr.com/photos/mdpettitt/4818781521  
  25. 25. 1 Server per Service! https://www.flickr.com/photos/90994070@N00/4700774401  
  26. 26. Do your HA right! https://www.flickr.com/photos/daverugby83/4583767689  
  27. 27. Containers! https://www.flickr.com/photos/gcwest/281385801  
  28. 28. Containers!
  29. 29. Containers! <3! !!
  30. 30. Containers! <3!
  31. 31. Containers!
  32. 32. API Versioning! https://www.flickr.com/photos/kevinbyrom/5027408898/  
  33. 33. API Versioning! https://www.flickr.com/photos/kevinbyrom/5027408898/   Version  1   /servers?image=imageId&  flavor=flavorId&  name=serverName&   status=serverStatus&  marker=markerID&  limit=int&changes-­‐ since=dateTime&  RAX-­‐SI:image_schedule=boolean     Version  2   /v2/{tenant_id}/servers{?changes-­‐since,image,flavor,name,marker, limit,status,host}     Version  3   /v3/servers/{server_id}/action{?changes-­‐since,image,flavor,name, marker,limit,status,host}    
  34. 34. Sync vs Async! https://www.flickr.com/photos/beate_meier/8337014543  
  35. 35. Sync vs Async! Action  1   Action  2   Action  3  
  36. 36. Sync vs Async! Action  1   Action  2   Action  2b   Action  3  
  37. 37. Sync vs Async! Router   API  Server   Scheduler   MQ   Worker  
  38. 38. Dark Side of Microservices! https://www.flickr.com/photos/kalexanderson/7556757396  
  39. 39. Costs! https://www.flickr.com/photos/amagill/3366720659  
  40. 40. Concentration! https://www.flickr.com/photos/z_wenjie/5602616401  
  41. 41. Network Fragmentation! https://www.flickr.com/photos/small_realm/6898449633  
  42. 42. Dark Side of Microservices!
  43. 43. Learn from your peers! Jos  Boumans  
  44. 44. Break things!! http://bethesignal.org/blog/2008/07/22/fail-­‐we-­‐can-­‐believe-­‐in/  
  45. 45. Have fun! http://geek-­‐and-­‐poke.com/geekandpoke/2013/12/3/yesterdays-­‐regex  
  46. 46. https://www.flickr.com/photos/mikko_luntiala/12691267935   https://www.flickr.com/photos/dullhunk/202872717   @lynxman! http://slideshare.net/lynxmanuk/! !

×