Keep in touch as much as you can. I have been married over 25yrs, 20 of those years while in the Military. Two sons. It's hard, and was harder back then when cell phones and such weren't as common.
For about 8 years I was gone about half the time. Sometimes I would leave and not be able to tell the wife were I was going or when I would be back. Come back home for a couple weeks or a couple months and be gone again. In AFSOC I went to the same place for a couple months at a time, come home for a couple then rotate back out. In the TALCE we sometimes never knew when we had a few (4hrs usually) hours notice to be wheels up. It was sometimes exciting, but very hard on the family. Your spouse needs to be strong and able to care for themselves and the kids. Luckily I was the comm guy and had access to lines of communication back home, so I could keep in contact pretty often.
I'm sure nowadays they have moral phones and computers, so it shouldn't be that hard, unless you are deploying somewhere you don't have access to that kind of thing.