Kochi is what happens when a harbor on the spice coast does business with everyone for six hundred years. The Chinese nets on the shore, the Portuguese churches, the so-called Dutch Palace, a synagogue from 1568 and a Kathakali stage within a few kilometers of each other aren't a theme park. They're leftovers from a trade route, and Fort Kochi and Mattancherry still look like it. The rest of Kochi across the water, Ernakulam, is a normal busy Indian city with traffic to match.
Three days is the right length because the old quarter is small and slow. Fort Kochi takes a morning, Mattancherry the next, and neither works rushed in the heat. That leaves a full day for the Alleppey backwaters, 60-70 km south. A fourth day would go to the hills or a lake base, not more Kochi.
Day one is Fort Kochi, day two is Mattancherry with a Kathakali show in the evening, and day three is the backwaters. More of the country is on the India page. Start on a Tuesday: the Indo-Portuguese Museum is closed on Mondays, the Dutch Palace on Fridays and the synagogue on Fridays and Saturdays, and Tuesday to Thursday avoids all three.