Ideal length for an effective survey

Are there any articles or canonical data available for determining the ideal length of a survey?

Trying to figure out what would be a sweet spot for the number of questions that can be in a survey. Any guidelines that can help design a to-the-point yet informative survey would be helpful.