One way to deal with rude people is to return their rudeness with a smile.
At a store check out or at a restaurant, I normally greet the service personnel with a loud and clear "Good morning / afternoon / evening. You look great today!" before they have a chance to show their colour!
You can definitely get a better treatment!