You can use direct heat, but you’re much more likely to overcook the eggs. Using indirect heat over simmering water is a safer bet and the traditional way of preparing curd. That said, if you’d like to use direct heat, keep the heat low and use a heavy-bottomed, nonreactive pot made from stainless steel, glass or ceramic.