Rabbi Nachman of Breslov taught that in the future, all suffering will be revealed as good. Not philosophically. Experientially. You will bless God for your pain the same way you bless Him for your joy.
The teaching opens with King David's declaration: "When He is YHVH, I will praise His word; when He is Elohim, I will praise His word" (Psalms 56:11). The divine name YHVH represents mercy. Elohim represents judgment. David says he will praise God regardless of which face God shows him. This, Rabbi Nachman says, is a foretaste of the World to Come.
The Talmud explains: in the future, the blessing recited over suffering ("the truthful Judge") will be replaced by the blessing recited over joy ("Who is good and beneficent"). The two divine names will become entirely one (Pesachim 50a). Right now, we can see mercy and we can see judgment, but we cannot see that they are the same thing. In the World to Come, that veil drops.
But how do you access this perception now? Through confession before a Torah scholar. "Take words with you and return to God" (Hosea 14:3). The Hebrew word d'varim (דברים), "words," shares a root with dabor (דבור), "ruler," which is an aspect of Malkhut (מלכות), divine kingship. When you confess, you take the attribute of Kingship that has fallen into exile among the nations and return it to its source.
The essence of complete awareness, daat (דעת), is the unification of chesed (חסד), lovingkindness, and gevurah (גבורה), severity. When you stop distinguishing between the good things and the hard things, when you bless God equally for both, you have achieved what the world will only achieve fully in the messianic age. The melody that fixes a broken world is the melody that hears harmony in every note, even the dissonant ones.