Local anger is likely to grow apace with the number of travelers. The United Nations’ World Tourism Organization estimates there will be 1.8 billion international tourist-related trips by 2030, up from 1.2 billion in 2016.

Officials in Dubrovnik have started to push back against the throngs.

This summer, they have cracked down on street vendors, limited the number of outdoor restaurant tables crowding the ancient alleyways and — most important — have sought more control over the cruise ships that send thousands of passengers flooding into the old town, a Unesco World Heritage site.

This year, the city has limited the number of people who can disembark from the cruise ships at a given time. Next summer, for the first time since they started pulling into port nearly two decades ago, cruise ships will face restrictions on when they will be allowed to dock.

It is an attempt to find the right balance of welcoming tourists — and their money — without being overwhelmed.

“There is no unique solution for every destination,” said Dubrovnik’s mayor, Mato Frankovic. “But it has to start with recognizing the problem.”

Just as there is no single solution, there is no single kind of tourist in Dubrovnik. You can find day-trippers, families on holiday, people on cruise ship excursions, history buffs, party people and, in a relatively new phenomenon, “set-jetters.”