Hello Владимир,
A comma denotes a short pause.
As Gertie says, there are rules, but they are like road rules in India, more like suggestions !
Hi, Anne ... reads like you are calling to Anne, but do not yet have her attention (because of the pause).
Hi Anne ... reads like you have eye contact already and are greeting her.
Regards, A