It depends on the perspective.

Revenge is a personal action. A father kills the man that rapes his daughter, that's his revenge, in the eyes of many and certainly the father, justice has been served.

In less emotional situations, justice is something the Law takes care of.