Critical defects which impact business operations must be addressed in a timely and judicious manner. This is opposed to non-critical production defects which can be addressed in a future release of an application.
The best strategy for preventing production defects is to have the proper functional and performance testing in place as part of a release management strategy to avoid deployment issues in the first place as a part of each sprint.
Testing should take into consideration the backward compatibility of the latest changes with the current inflight processes.
Consider the following options if a defect needs to be resolved immediately in Production in addition to the best practices for promoting and deploying applications. For all options, use a staging environment to help develop and test this hotfix. Also, determine the impact of all options on existing in flight processes as described above:
Warning: Restoring from backup should be your last resort as data loss will impact all applications.
Once the application defect is addressed, there may be remaining in-flight processes which also need to be addressed as part of your plan for this hotfix. The following options are available.