SlideShare uma empresa Scribd logo
1 de 24
Baixar para ler offline
MedTech
Chapter 8 – Deployment
Deployment Process, Best Pratices, DevOps
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 1
MedTech – Mediterranean Institute of Technology
CS321-Software Engineering
MedTech
MedTech
INTRODUCTION TO DEPLOYMENT
Deployment
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 2
MedTech
Deployment Phase
• One of the biggest application lifecycle management challenges
• Deployment
• All the activities that make a software system available for use
• Activity responsible for movement of approved releases to test and
production environment
• Release
• A collection of hardware, software, documentation, processes or other
components required to implement one or more approved changes to IT
services
• The contents of each release are managed, tested and deployed as a single
entity
• Release and Deployment Management
• Process responsible for planning, scheduling and controlling the movement
of releases to test and production environments
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 3
Deployment
MedTech
Objectives
• Efficiently build, install, test and deploy releases to a target
environment successfully and on schedule
• Clear and comprehensive release and deployment plans
• Controlled deployment of a new or changed service into
production
• Minimal unpredicted impact on the production services,
operations and support organization
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 4
Deployment
MedTech
Workflow
• Deployments should be treated as part of a development workflow, not
as an afterthought
• The workflow will usually include at least three environments:
• Development
• Staging
• Production
• Proposed Workflow:
• Developers work on bugs and features in separate branches
• Once features are implemented, they are merged into the staging branch
and deployed to the Staging environment for quality assurance and testing
• After testing is complete, feature branches are merged into the
development branch
• On the release date, the development branch is merged into production and
deployed to the Production environment
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 5
Deployment
MedTech
Version Control: Branching Workflow by Git
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 6
Deployment
See a	detailed example in:
http://nvie.com/posts/a-successful-git-branching-model/
MedTech
Development Environment
• Environment in which changes to software are developed
• Differs from the ultimate target environment:
• The target may not be a desktop computer (smartphone, embedded
system,…)
• The developer’s environment will include development tools (compiler, IDE,
libraries…) which are not necessarely present in the user’s environment
• Every developer should have his local setup
• Automatic deployment on every commit wastes a lot of time, and correcting
mistakes is tedious
• Testing on a local computer before deployment removes this difficulty
• Only stable versions are pushed to a Staging environment
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 7
Deployment
MedTech
Staging Environment
• Mirror copy of the production server
• Purpose: test the completed application on the copy of production to ensure
that it won’t break the existant production applications
• No actual code development should take place on a staging server
• Once the features are implemented and considered fairly stable, they get
merged into the staging branch
• It is recommanded to have a branch called staging to represent the staging
environment
• It allows developers to deploy multiple branches to the same server
simultaneously, simply by merging everything that needs to be deployed to the
staging branch.
• At every commit or push in the staging branch, it is recommanded that the
code is deployed to the Staging environment
• Testers go to staging servers and verify that the code works as intended
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 8
Deployment
MedTech
Production Environment
• Once the feature is implemented and tested, it can be deployed to
production
• If the feature was implemented in a separate branch, it should be
merged into a stable development branch first
• Merge the development branch into production
• Deploy the production branch to your Production environment by hand
or automatically
• Always deploy major releases to production at a scheduled time, of
which the whole team is aware
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 9
Deployment
MedTech
DEVOPS
Deployment
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 10
MedTech
DevOps: Definition
• Software for large-scale web sites has been traditionally written by
one group of people (Devs), then released and operated by a different
group (Ops)
• These two groups have very different levels of visibility on how the
software works
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 11
DevOps
MedTech
DevOps: Definition
• It leads to every role blaming the other when a problem occurs
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 12
DevOps
MedTech
DevOps: Definition
• A cultural and professional movement, focused on how we build and
operate high velocity organizations, born from the experiences of its
practitioners
• Practice of operations and development engineers participating
together in the entire service lifecycle, from design through the
development process to production support
• Based on 5 principles: CALMS
• Culture: Own the change to drive collaboration and communication
• Automation: Take manual steps out of your value chain
• Lean: Use lean principles to enable higher cycle frequency
• Measurement: Measure everything and use data to refine cycles
• Sharing: Share experiences, successful or not, to enable others to learn
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 13
DevOps
MedTech
Lean?
• Systematic method for the elimination of waste ("Muda") within a
manufacturing system
• 7 wastes: transportation, inventory, motion, waiting, over-processing, over-
production, defects
• Centered on making obvious what adds value by reducing everything
else.
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 14
DevOps
MedTech
DevOps vs. Agile
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 15
DevOps
MedTech
DevOps vs. Agile
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 16
DevOps
MedTech
Why to Continuous …
• Continuous is one of the most popular words in the DevOps
lexicon
• Almost everything in DevOps is continuous: be it continuous
integration, continuous deployment, continuous delivery,
continuous testing and so on.
• Like many technological concepts, continuous something is
not clearly defined by the DevOps teams
• Most of the times, « continuous » is something of an
exaggeration
• Implies that software changes roll down the pipeline in a totally constant,
never-stopping fashion, which is wrong
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 17
Continuous something..
MedTech
Continuous Integration
• Changes to code automatically deployed to mainline branch
• After passing unit tests
• Bugs are detected quickly
• « if you have to fail, fail quickly »
• Helps automate deployments
• Use of a continuous integration server (Jenkins, Bamboo..)
• Automatically tests code written by individual developers to make sure it
can be merged into the main code base
• Helps developers to write and test small chunks of code on an ongoing
basis, which minimizes the risk that a code change could cause serious
problems and force developers to revert their application to an earlier
state.
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 18
Continuous something..
MedTech
Continuous Delivery
• The process of delivering software updates to users on a nearly
constant basis
• Made possible by continuous integration and other optimizations at
earlier stages of the development process
• In Continuous Delivery, you aim to have the full software delivery life
cycle automated up until the last environment before production, so
that you are ready at any time to deploy automatically to production.
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 19
Continuous something..
MedTech
Continuous Deployment
• « Process by which our team deploys software changes to
production services over 30 times per day »
• (only theoretically)
• Deployment or release of code to Production as soon as it is
ready.
• Mainly the same as Continuous Delivery, but adding an
automatic trigger to deploy to production.
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 20
Continuous something..
MedTech
Continuous Something in DevOps
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 21
DevOps
MedTech
DevOps Best Practices
• Automate everything you can
• The more you automate, the more you avoid mistakes that can be done at
deployment
• If you have difficulty automating all the process, automate what you can, and
leave the hard steps to be done manually ( just start!)
• Production should not be such a big deal!
• Keep your staging and production environments consistant
• Staging and Production should be mirror copies, but it is not enough: the
deployment mechanism should be the same too!
• DevOps doesn’t mean « deploying your application to production 30 times a
day »
• It’s not about the number of deployments a day, it’s about being able to deploy
really quickly and easily when the business requires you to
• The faster you get the feedback from production, the quicker developers can
fix it
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 22
DevOps
MedTech
DevOps Best Practices
• Any change that was not put into production, as far as the final user
is concerned, doesn’t exist
• If a member of the team is hit by a bus…
• Always think of a rollback strategy
• Even for your database, think of a way to maintain old versions for some
time, in case of a mistake
• Even though you have a very strict governance policy (25 people need
to sign in order for deployment to production to take place), you can
still automate the process
• Focus on automated testing, even in production!
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 23
DevOps
MedTech
References
Dr. Lilia SFAXI
www.liliasfaxi.wix.com/liliasfaxi
Slide 24
• Intro to DevOps, Udacity,
https://classroom.udacity.com/courses/ud611
• Damian Brady (Solution Architect at Octopus Deploy), DevOps Best
Practices, https://channel9.msdn.com/Shows/DevOps-Dimension/9--
DevOps--Deployment-Automation-Best-Practices
• Deployments Best Practices, Beanstalk Guides,
http://guides.beanstalkapp.com/deployments/best-practices.html

Mais conteúdo relacionado

Mais procurados

Software quality
Software qualitySoftware quality
Software quality
jagadeesan
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Validation testing
Validation testingValidation testing
Validation testing
Slideshare
 

Mais procurados (20)

Software Development Process
Software Development ProcessSoftware Development Process
Software Development Process
 
Software Architecture
Software ArchitectureSoftware Architecture
Software Architecture
 
The Extreme Programming (XP) Model
The Extreme Programming (XP) ModelThe Extreme Programming (XP) Model
The Extreme Programming (XP) Model
 
REQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGREQUIREMENT ENGINEERING
REQUIREMENT ENGINEERING
 
Agile development, software engineering
Agile development, software engineeringAgile development, software engineering
Agile development, software engineering
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation Slides
 
Agile software development
Agile software developmentAgile software development
Agile software development
 
Software quality
Software qualitySoftware quality
Software quality
 
AGILE Model (SDLC).pptx
AGILE Model (SDLC).pptxAGILE Model (SDLC).pptx
AGILE Model (SDLC).pptx
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 
Validation testing
Validation testingValidation testing
Validation testing
 
Introducing DevOps
Introducing DevOpsIntroducing DevOps
Introducing DevOps
 
Introduction to CI/CD
Introduction to CI/CDIntroduction to CI/CD
Introduction to CI/CD
 
Agile Development | Agile Process Models
Agile Development | Agile Process ModelsAgile Development | Agile Process Models
Agile Development | Agile Process Models
 
DevOps seminar ppt
DevOps seminar ppt DevOps seminar ppt
DevOps seminar ppt
 
Let us understand design pattern
Let us understand design patternLet us understand design pattern
Let us understand design pattern
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Feature Driven Development
Feature Driven DevelopmentFeature Driven Development
Feature Driven Development
 
Introduction to DevSecOps
Introduction to DevSecOpsIntroduction to DevSecOps
Introduction to DevSecOps
 
DevOps for beginners
DevOps for beginnersDevOps for beginners
DevOps for beginners
 

Destaque (7)

Software Engineering - chp6- development phase
Software Engineering - chp6- development phaseSoftware Engineering - chp6- development phase
Software Engineering - chp6- development phase
 
Software Engineering - chp4- design patterns
Software Engineering - chp4- design patternsSoftware Engineering - chp4- design patterns
Software Engineering - chp4- design patterns
 
Software Engineering - chp2- requirements specification
Software Engineering - chp2- requirements specificationSoftware Engineering - chp2- requirements specification
Software Engineering - chp2- requirements specification
 
Software Engineering - chp1- software dev methodologies
Software Engineering - chp1- software dev methodologiesSoftware Engineering - chp1- software dev methodologies
Software Engineering - chp1- software dev methodologies
 
Software Engineering - chp7- tests
Software Engineering - chp7- testsSoftware Engineering - chp7- tests
Software Engineering - chp7- tests
 
Software Engineering - chp3- design
Software Engineering - chp3- designSoftware Engineering - chp3- design
Software Engineering - chp3- design
 
Software Engineering - chp0- introduction
Software Engineering - chp0- introductionSoftware Engineering - chp0- introduction
Software Engineering - chp0- introduction
 

Semelhante a Software Engineering - chp8- deployment

Semelhante a Software Engineering - chp8- deployment (20)

Dev ops
Dev opsDev ops
Dev ops
 
DevOps Overview in my own words
DevOps Overview in my own wordsDevOps Overview in my own words
DevOps Overview in my own words
 
Introduction to devops
Introduction to devopsIntroduction to devops
Introduction to devops
 
Testing in the new age of DevOps
Testing in the new age of DevOpsTesting in the new age of DevOps
Testing in the new age of DevOps
 
Continuous delivery applied (RJUG)
Continuous delivery applied (RJUG)Continuous delivery applied (RJUG)
Continuous delivery applied (RJUG)
 
intro to DevOps
intro to DevOpsintro to DevOps
intro to DevOps
 
Tell me how you provision and I'll tell you how you are
Tell me how you provision and I'll tell you how you areTell me how you provision and I'll tell you how you are
Tell me how you provision and I'll tell you how you are
 
Delivering Better Software Faster (Without Breaking Everything)
Delivering Better Software Faster (Without Breaking Everything)Delivering Better Software Faster (Without Breaking Everything)
Delivering Better Software Faster (Without Breaking Everything)
 
Back To Basics
Back To BasicsBack To Basics
Back To Basics
 
Unified Deployment: Including the Mainframe in Enterprise DevOps
Unified Deployment: Including the Mainframe in Enterprise DevOpsUnified Deployment: Including the Mainframe in Enterprise DevOps
Unified Deployment: Including the Mainframe in Enterprise DevOps
 
DevOps & DevEx
DevOps & DevExDevOps & DevEx
DevOps & DevEx
 
DevOps - IaC | Talk | AGILE GURUGRAM 2018 | 23 - 24 March, 2018
DevOps - IaC | Talk | AGILE GURUGRAM 2018 | 23 - 24 March, 2018DevOps - IaC | Talk | AGILE GURUGRAM 2018 | 23 - 24 March, 2018
DevOps - IaC | Talk | AGILE GURUGRAM 2018 | 23 - 24 March, 2018
 
Continuous delivery
Continuous deliveryContinuous delivery
Continuous delivery
 
AICT_presentation.pptx
AICT_presentation.pptxAICT_presentation.pptx
AICT_presentation.pptx
 
How to go from waterfall app dev to secure agile development in 2 weeks
How to go from waterfall app dev to secure agile development in 2 weeks How to go from waterfall app dev to secure agile development in 2 weeks
How to go from waterfall app dev to secure agile development in 2 weeks
 
Outpost24 webinar: Turning DevOps and security into DevSecOps
Outpost24 webinar: Turning DevOps and security into DevSecOpsOutpost24 webinar: Turning DevOps and security into DevSecOps
Outpost24 webinar: Turning DevOps and security into DevSecOps
 
DevOps CD and Multispeed IT in regulated industries (FUG Presentation)
DevOps CD and Multispeed IT in regulated industries (FUG Presentation)DevOps CD and Multispeed IT in regulated industries (FUG Presentation)
DevOps CD and Multispeed IT in regulated industries (FUG Presentation)
 
Continuous Integration JUG Hannover
Continuous Integration JUG HannoverContinuous Integration JUG Hannover
Continuous Integration JUG Hannover
 
The biggest DevOps problems you didn't know you had and what to do about them
The biggest DevOps problems you didn't know you had and what to do about themThe biggest DevOps problems you didn't know you had and what to do about them
The biggest DevOps problems you didn't know you had and what to do about them
 
Outpost24 webinar - application security in a dev ops world-08-2018
Outpost24 webinar - application security in a dev ops world-08-2018Outpost24 webinar - application security in a dev ops world-08-2018
Outpost24 webinar - application security in a dev ops world-08-2018
 

Mais de Lilia Sfaxi

Mais de Lilia Sfaxi (20)

chp1-Intro à l'urbanisation des SI.pdf
chp1-Intro à l'urbanisation des SI.pdfchp1-Intro à l'urbanisation des SI.pdf
chp1-Intro à l'urbanisation des SI.pdf
 
Plan d'études_INSAT_2022_2023.pdf
Plan d'études_INSAT_2022_2023.pdfPlan d'études_INSAT_2022_2023.pdf
Plan d'études_INSAT_2022_2023.pdf
 
Lab3-DB_Neo4j
Lab3-DB_Neo4jLab3-DB_Neo4j
Lab3-DB_Neo4j
 
Lab2-DB-Mongodb
Lab2-DB-MongodbLab2-DB-Mongodb
Lab2-DB-Mongodb
 
Lab1-DB-Cassandra
Lab1-DB-CassandraLab1-DB-Cassandra
Lab1-DB-Cassandra
 
TP2-UML-Correction
TP2-UML-CorrectionTP2-UML-Correction
TP2-UML-Correction
 
TP1-UML-Correction
TP1-UML-CorrectionTP1-UML-Correction
TP1-UML-Correction
 
TP0-UML-Correction
TP0-UML-CorrectionTP0-UML-Correction
TP0-UML-Correction
 
TD4-UML
TD4-UMLTD4-UML
TD4-UML
 
TD4-UML-Correction
TD4-UML-CorrectionTD4-UML-Correction
TD4-UML-Correction
 
TD3-UML-Séquences
TD3-UML-SéquencesTD3-UML-Séquences
TD3-UML-Séquences
 
TD3-UML-Correction
TD3-UML-CorrectionTD3-UML-Correction
TD3-UML-Correction
 
TD2 - UML - Correction
TD2 - UML - CorrectionTD2 - UML - Correction
TD2 - UML - Correction
 
TD1 - UML - DCU
TD1 - UML - DCUTD1 - UML - DCU
TD1 - UML - DCU
 
TD1-UML-correction
TD1-UML-correctionTD1-UML-correction
TD1-UML-correction
 
Android - Tp1 - installation et démarrage
Android - Tp1 -   installation et démarrageAndroid - Tp1 -   installation et démarrage
Android - Tp1 - installation et démarrage
 
Android - Tp2 - Elements graphiques
Android - Tp2 - Elements graphiques Android - Tp2 - Elements graphiques
Android - Tp2 - Elements graphiques
 
Android - Tp3 - intents
Android - Tp3 -  intentsAndroid - Tp3 -  intents
Android - Tp3 - intents
 
Android - TPBonus - web services
Android - TPBonus - web servicesAndroid - TPBonus - web services
Android - TPBonus - web services
 
Android - Tp4 - graphiques avancés
Android - Tp4 - graphiques avancésAndroid - Tp4 - graphiques avancés
Android - Tp4 - graphiques avancés
 

Último

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Software Engineering - chp8- deployment

  • 1. MedTech Chapter 8 – Deployment Deployment Process, Best Pratices, DevOps Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 1 MedTech – Mediterranean Institute of Technology CS321-Software Engineering MedTech
  • 2. MedTech INTRODUCTION TO DEPLOYMENT Deployment Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 2
  • 3. MedTech Deployment Phase • One of the biggest application lifecycle management challenges • Deployment • All the activities that make a software system available for use • Activity responsible for movement of approved releases to test and production environment • Release • A collection of hardware, software, documentation, processes or other components required to implement one or more approved changes to IT services • The contents of each release are managed, tested and deployed as a single entity • Release and Deployment Management • Process responsible for planning, scheduling and controlling the movement of releases to test and production environments Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 3 Deployment
  • 4. MedTech Objectives • Efficiently build, install, test and deploy releases to a target environment successfully and on schedule • Clear and comprehensive release and deployment plans • Controlled deployment of a new or changed service into production • Minimal unpredicted impact on the production services, operations and support organization Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 4 Deployment
  • 5. MedTech Workflow • Deployments should be treated as part of a development workflow, not as an afterthought • The workflow will usually include at least three environments: • Development • Staging • Production • Proposed Workflow: • Developers work on bugs and features in separate branches • Once features are implemented, they are merged into the staging branch and deployed to the Staging environment for quality assurance and testing • After testing is complete, feature branches are merged into the development branch • On the release date, the development branch is merged into production and deployed to the Production environment Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 5 Deployment
  • 6. MedTech Version Control: Branching Workflow by Git Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 6 Deployment See a detailed example in: http://nvie.com/posts/a-successful-git-branching-model/
  • 7. MedTech Development Environment • Environment in which changes to software are developed • Differs from the ultimate target environment: • The target may not be a desktop computer (smartphone, embedded system,…) • The developer’s environment will include development tools (compiler, IDE, libraries…) which are not necessarely present in the user’s environment • Every developer should have his local setup • Automatic deployment on every commit wastes a lot of time, and correcting mistakes is tedious • Testing on a local computer before deployment removes this difficulty • Only stable versions are pushed to a Staging environment Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 7 Deployment
  • 8. MedTech Staging Environment • Mirror copy of the production server • Purpose: test the completed application on the copy of production to ensure that it won’t break the existant production applications • No actual code development should take place on a staging server • Once the features are implemented and considered fairly stable, they get merged into the staging branch • It is recommanded to have a branch called staging to represent the staging environment • It allows developers to deploy multiple branches to the same server simultaneously, simply by merging everything that needs to be deployed to the staging branch. • At every commit or push in the staging branch, it is recommanded that the code is deployed to the Staging environment • Testers go to staging servers and verify that the code works as intended Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 8 Deployment
  • 9. MedTech Production Environment • Once the feature is implemented and tested, it can be deployed to production • If the feature was implemented in a separate branch, it should be merged into a stable development branch first • Merge the development branch into production • Deploy the production branch to your Production environment by hand or automatically • Always deploy major releases to production at a scheduled time, of which the whole team is aware Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 9 Deployment
  • 11. MedTech DevOps: Definition • Software for large-scale web sites has been traditionally written by one group of people (Devs), then released and operated by a different group (Ops) • These two groups have very different levels of visibility on how the software works Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 11 DevOps
  • 12. MedTech DevOps: Definition • It leads to every role blaming the other when a problem occurs Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 12 DevOps
  • 13. MedTech DevOps: Definition • A cultural and professional movement, focused on how we build and operate high velocity organizations, born from the experiences of its practitioners • Practice of operations and development engineers participating together in the entire service lifecycle, from design through the development process to production support • Based on 5 principles: CALMS • Culture: Own the change to drive collaboration and communication • Automation: Take manual steps out of your value chain • Lean: Use lean principles to enable higher cycle frequency • Measurement: Measure everything and use data to refine cycles • Sharing: Share experiences, successful or not, to enable others to learn Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 13 DevOps
  • 14. MedTech Lean? • Systematic method for the elimination of waste ("Muda") within a manufacturing system • 7 wastes: transportation, inventory, motion, waiting, over-processing, over- production, defects • Centered on making obvious what adds value by reducing everything else. Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 14 DevOps
  • 15. MedTech DevOps vs. Agile Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 15 DevOps
  • 16. MedTech DevOps vs. Agile Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 16 DevOps
  • 17. MedTech Why to Continuous … • Continuous is one of the most popular words in the DevOps lexicon • Almost everything in DevOps is continuous: be it continuous integration, continuous deployment, continuous delivery, continuous testing and so on. • Like many technological concepts, continuous something is not clearly defined by the DevOps teams • Most of the times, « continuous » is something of an exaggeration • Implies that software changes roll down the pipeline in a totally constant, never-stopping fashion, which is wrong Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 17 Continuous something..
  • 18. MedTech Continuous Integration • Changes to code automatically deployed to mainline branch • After passing unit tests • Bugs are detected quickly • « if you have to fail, fail quickly » • Helps automate deployments • Use of a continuous integration server (Jenkins, Bamboo..) • Automatically tests code written by individual developers to make sure it can be merged into the main code base • Helps developers to write and test small chunks of code on an ongoing basis, which minimizes the risk that a code change could cause serious problems and force developers to revert their application to an earlier state. Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 18 Continuous something..
  • 19. MedTech Continuous Delivery • The process of delivering software updates to users on a nearly constant basis • Made possible by continuous integration and other optimizations at earlier stages of the development process • In Continuous Delivery, you aim to have the full software delivery life cycle automated up until the last environment before production, so that you are ready at any time to deploy automatically to production. Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 19 Continuous something..
  • 20. MedTech Continuous Deployment • « Process by which our team deploys software changes to production services over 30 times per day » • (only theoretically) • Deployment or release of code to Production as soon as it is ready. • Mainly the same as Continuous Delivery, but adding an automatic trigger to deploy to production. Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 20 Continuous something..
  • 21. MedTech Continuous Something in DevOps Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 21 DevOps
  • 22. MedTech DevOps Best Practices • Automate everything you can • The more you automate, the more you avoid mistakes that can be done at deployment • If you have difficulty automating all the process, automate what you can, and leave the hard steps to be done manually ( just start!) • Production should not be such a big deal! • Keep your staging and production environments consistant • Staging and Production should be mirror copies, but it is not enough: the deployment mechanism should be the same too! • DevOps doesn’t mean « deploying your application to production 30 times a day » • It’s not about the number of deployments a day, it’s about being able to deploy really quickly and easily when the business requires you to • The faster you get the feedback from production, the quicker developers can fix it Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 22 DevOps
  • 23. MedTech DevOps Best Practices • Any change that was not put into production, as far as the final user is concerned, doesn’t exist • If a member of the team is hit by a bus… • Always think of a rollback strategy • Even for your database, think of a way to maintain old versions for some time, in case of a mistake • Even though you have a very strict governance policy (25 people need to sign in order for deployment to production to take place), you can still automate the process • Focus on automated testing, even in production! Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 23 DevOps
  • 24. MedTech References Dr. Lilia SFAXI www.liliasfaxi.wix.com/liliasfaxi Slide 24 • Intro to DevOps, Udacity, https://classroom.udacity.com/courses/ud611 • Damian Brady (Solution Architect at Octopus Deploy), DevOps Best Practices, https://channel9.msdn.com/Shows/DevOps-Dimension/9-- DevOps--Deployment-Automation-Best-Practices • Deployments Best Practices, Beanstalk Guides, http://guides.beanstalkapp.com/deployments/best-practices.html