When we vent, some of our negative emotions does add to the other person’s mental burden. So, before you dump, ask if they are in the right headspace for your venting.
Give them the option to say that they are not able to listen just now. “Do you have a few minutes to help me unload what just happened? If not, when would be a good time?” “Do you mind if I vent?”
By asking, you are showing that you respect them and the relationship. Additionally, you are telling them what you hope from the conversation – that you just want to vent and don’t really want their advice.