rules repository

G-8410 – Always use application locks to ensure a program unit is only running once at a given time.

This technique allows us to have locks across transactions as well as a proven way to clean up at the end of the session. The alternative using a table where a “Lock-Row” is stored has the disadvantage that in case of an error a proper cleanup has to be done to "unlock" the program unit.

Tags: Pattern.

Quality area: Reliability. Severity: Blocker. Fixing time: Local-high.

No rule selected