docs: update life cycle guide and examples
#2154

arturovt wants to merge docs/life-cycle into master

We do not currently have an analysis of these two commits