Disney+ cancellation page crashes as customers rush to quit after Kimmel suspension
(creators.yahoo.com)
That entirely depends on your application. What you described is one possible approach, that will only work in specific circumstances.