How to prevent and control of epidemic spreading of diseases (for example COVID-19) in supermarkets? To answer this question, a simulation approach was proposed. A number of simulation experiments were performed. The likelihood of close contact with carrier in different ticket queue configurations was compared. Based on the results, several tips and advices were developed for customers and market managers.