I wouldn't give up on bar code either.
You could also consider pin stamping the bar code matrix onto the part if the part can take that kind of treatment and it is large enough. It would be a lot cheaper and more reliable than laser marking. (Been there - done that! The laser marker is very...