My husband and I lived apart for most of five years when we were dating. The lengths of time apart ranged from one year to 2 weeks. The distances apart ranged from 6,800 miles (Boston to Nagoya, Japan) to 105 miles (Boston to Northampton, Massachusetts).
Our relationship thrived despite being long distance. I did it in the dark ages before the Internet when we mainly communicated by letter.