Ambien, in the right dose, will put you to sleep really fast. It can also make you a little dizzy or floaty. You want to take it and immediately get into bed and turn off the light. If you're not asleep in 10 minutes, it didn't work.
But it has side effects. Like sleepwalking, getting up in the night to snack without remembering it at all (or even, some say, sleep driving!).
In my case, I have headaches the next day from it, and I have more trouble getting to sleep the second night. So it's sort of addictive for me too, in that respect. Usually when I take it I take it for only one night or two, then switch to an antihistimine based sleeping pill. I don't like those either, as they make me really drowsy the next day.
Mostly I just use Ambien when I absolutely have to go to sleep earlier than I've been accustomed to, e.g. for getting up for something important early in the morning, like a flight or appointment. And most of the time half a pill is enough. Which is why my 30 pill prescription has lasted a couple years.
There are, now, a couple other drugs that have come along after Ambien. It was the first sleeping pill that worked on your brain, like an anti-anxiety or anti-depressant pill, rather than being an antihistamine. But they're all strong stuff, and I pretty much support the notion that they should require a prescription from a doctor, especially for people who haven't used them before.
My Mom's doctor told her that the antihistamine-based sleeping drugs were not good for people over 80. That doctor put her on melatonin, and it helped her with her sleeping problem, which is different than mine.
I have trouble getting to sleep, but once I'm really asleep, I'm good. Even if I wake up in the middle of the night for a bathroom trip I can go right back to sleep, no problem.
My Mom's problem was that she'd go right to sleep but after three or four hours she'd wake up and be up for hours. The Melatonin does a good job on that for her, but she had to try different dosages to find out how much to take. (She's on 3 mg/night).
A lot of people develop sleep problems as they get older. It's worth discussing with your doctor. Maybe you need to take a bigger dose of melatonin. Melatonin is addicting too, in the sense that once you start on it, if you skip it you'll have trouble sleeping. But there's no withdrawal or "seeking" behavior, and there aren't any side effects except that if you take too much you'll want to sleep all day. AFAIK there's no problem with taking it for life. It affects different people differently. When my mom started taking Melatonin, the instructions were 1 mg/night for a week. If that didn't do it, 2 mg/night for a week, then 3mg for a week, then 4mg for a week, and then 5mg for a week. If 5 mg didn't do it, come back to see the doctor again (but they make 10 mg melatonin pills, so obviously some people take that much - but the doctor wanted to discuss before my Mom did that).