Both sides (Hamas, Israel) use terror against innocents and this has been ongoing for a very long time. What is relatively new, since 9/11, is that the terror is gradually being spread, world wide. Sooner or later, it may engulf us.
In my view a short term viable political solution could only arise if Israel was prepared to give up the West Bank and Hamas was prepared to recognise the state of Israel.
A longer term solution is even more problematic. Israel is occupied Palestine, it always has been, since its inception, occupied Palestine. The Palestinians and their descendants who were expelled after 1948 (using terror) have the right to return to their land with full citizens rights within Israel. If this happened they would eventually outvote the supporters of Zionism (the dubious idea that the Jewish religion ought to have a State, owing to the crimes of the Nazis)
Israel has become an albatross around the neck of US Imperialism. The US will continue to be hated in the Middle East as long as it bankrolls a Zionist state that has always used state terror against Palestinians.
This in turn, in the swamp of the Middle East, breeds a production line of recruits to Islamic fundamentalism and suicide bombers who commit atrocities against innocents in the West. That problem and its latest manifestation,
ISIS or ISIL, won't go away and we will have to deal with it. The longer we delay dealing with it the worse it will become.