allocation
play

Allocation School of Computer Science Jose E. Labra Gayo Course - PowerPoint PPT Presentation

Software Architecture University of Oviedo Allocation School of Computer Science Jose E. Labra Gayo Course 2018/2019 Software Architecture University of Oviedo Allocation Relationship between Software and its execution environment Where


  1. Software Architecture University of Oviedo Allocation School of Computer Science Jose E. Labra Gayo Course 2018/2019

  2. Software Architecture University of Oviedo Allocation Relationship between Software and its execution environment Where does each component run? School of Computer Science

  3. Software Architecture Allocation University of Oviedo Deployment view Packaging, distribution, deployment Distribution channels Delivery options Execution environments Deployment pipeline Software in production Configuration Capacity planning School of Computer Science Logging & Monitoring Incidents & post-mortem Chaos engineering

  4. Software Architecture Deployment view University of Oviedo UML has deployment diagrams Artifacts associated with computational nodes 2 types of nodes: Device node Execution environment node School of Computer Science

  5. School of Computer Science University of Oviedo Software Architecture

  6. Software Architecture Packaging University of Oviedo Create an executable from source code Package consists of: Compiled code Even for interpreted languages: Transpiled, obfuscated & minimized Configuration files Environment variables Credentials, etc. Libraries & dependencies School of Computer Science Installation scripts User manuals & docs

  7. Software Architecture Publishing releases University of Oviedo A release implies functionality changes Planning Publishing a release has costs Usually, current users don't want new releases External factors: Marketing, clients, hardware, ... Agile model: frequent releases Continuous delivery minimizes risk School of Computer Science

  8. Software Architecture Continuous delivery University of Oviedo Continuous delivery Frequent releases to obtain feedback as soon as possible Deployment pipeline Advantages: Embrace change Minimize integration risks School of Computer Science Wabi-sabi philosophy Accept imperfection Software that is not finnished: Good enough

  9. Software Architecture Feature toggles and canary releases University of Oviedo Feature toggles Also known as feature flags , feature bits ,... Modify system behaviour without changing code Canary releases Introduce new versions by slowly rolling out the change to small subset of users Old version Most users (95%) server Router School of Computer Science Users New version Some users server (5%) https://martinfowler.com/articles/feature-toggles.html https://martinfowler.com/bliki/CanaryRelease.html

  10. Software Architecture Distribution channels University of Oviedo Traditional distribution CDs, DVDs, ... Web based Downloads, FTP, ... Application markets Linux packages App stores: AppStore, School of Computer Science Google Play, Windows Store

  11. Software Architecture Software computation options University of Oviedo Data Center (On-premises): Se instala y ejecuta en computadores del cliente Cloud computing: SaaS (Software as a Service) Computer resources on demand Edge computing Computation done near customer devices Connected devices process data closer to where it is created Example: IOTs, Connected cars, ... Fog computing School of Computer Science Computation at intermediate nodes (Local Area Network)

  12. Software Architecture Software computation options University of Oviedo Slower Cloud layer Business Data centers analytics/Intelligence Big data processing Data warehousing Data flow Fog layer Fog Fog Local network node/server node/server Processing speed Control response Response time Edge layer Real time Application Application Application Application Micro data storage On-premises visualization School of Computer Science Embedded systems Sensors Faster

  13. Software Architecture Execution environments University of Oviedo Physical Hosts Big computer vs server farms Virtual machines Multiple OS can exist in the same machine Provide portability and isolation Very popular Most applications run on virtual machines Performance can be less predictable Containers School of Computer Science Docker Local execution of processes Images distributed in containers

  14. Software Architecture Virtual machines vs Containers University of Oviedo VM Container App A App B App C App A App B App C Bins/ Bins/ Bins/ Bins/ Bins/ Bins/ libs libs libs libs libs libs Guest Guest Guest Docker OS OS OS Host OS Virtual Hardware/emulator School of Computer Science Infrastructure Infrastructure

  15. Software Architecture Containers University of Oviedo Advantages Performance: less overhead and system resources Increased portability Easy installation: Deployment as code Adapt very well to microservices Challenges: Management: Containerized applications can have lots of instances School of Computer Science Coordination between containers Approaches: Kubernetes, Docker swarm

  16. Software Architecture Continuous deployment University of Oviedo Deployment pipeline: Automated implementation of an application’s build, deploy, test and release process Goals Create runtime environments on demand Fast, reliable, repeatable and predictable outcomes Consistent environments in staging and production Establish fast feedback loops to react upon Make release days riskless, almost boring School of Computer Science

  17. Software Architecture Deployment pipeline University of Oviedo Patterns Infrastructure as code Keep everything in Version Control Code Configuration Data Align development and operations (DevOps) Tools: School of Computer Science Ansible, Chef, Puppet ,… Best practices: https://12factor.net/

  18. Software Architecture Software in production University of Oviedo Key quality attributes: Availability Reliability Observability Recommended books School of Computer Science Free online

  19. Software Architecture Reliability University of Oviedo Capacity planning Load testing Example: JMeter, Gatling Load balancing Increase reliability through redundancy Failover School of Computer Science

  20. Software Architecture Logging and monitoring University of Oviedo Quality attribute: Observability Usually not required by customer Logging Usually easy to generate Logging as stream processing: Apache Kafka Metrics & Monitoring Time-series database systems & visualizations Prometheus, Graphite, Grafana, Datadog, Nagios, ... School of Computer Science Health checks

  21. Software Architecture Incidents & post-mortem University of Oviedo Resolve and review incident Ensure team view it as blameless Create post-mortem report Incident details Root Cause Analysis Timeline and actions taken to resolve it Identify preventive measures School of Computer Science https://landing.google.com/sre/sre-book/chapters/postmortem-culture/

  22. Software Architecture Chaos engineering University of Oviedo Started by Netflix in 2010 (Chaos Monkey) Test distributed systems Break things on purpose Failure injection testing Ensure that one instance failure doesn't affect the system Antifragility and resilience School of Computer Science https://github.com/Netflix/chaosmonkey

  23. School of Computer Science University of Oviedo Software Architecture

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend