I took Trazodone for about two years. It worked extremely well for insomnia, but I was always kind of hungover in the morning. It was difficult for me to stop taking it. It actually took two attempts at stopping for me to finally get off of it.
Having said that, my wife takes it now, and she loves it. No sleepiness in the morning, no side effects. It just goes to show you that the same medicine can create completely different results.
However, it did provide tremendous help with insomnia for both of us. If you're prepared to commit to it long-term, it's a good solution.