I get both migraines and cluster headaches.
Currently suffering from them daily. I have an appointment with a neurologist in June regarding my situation for further investigation on what's causing them, and how to hopefully diminish the frequency, because it's currently interfering with my daily life and work. (Can't perform my work at all now because of the daily attacks that absolutely devastate me. In particular the cluster headaches are overkill).
I used to take Sumatriptan during an attack, but you can only have so much of this per month max. before you develop a dependance on that. (Medicine induced headaches are godawful as well, let me tell you. I already experienced that as well, and had to detox for 3 weeks without ANY pain meds).
Nowadays even Sumatriptan takes hours before it lowers the pain of an attack though, assuming it lowers it at all. (Both pills and injections don't seem to work effectively anymore).