The devs actually talked about this in the AMA from a couple of days ago. Sounds like the current plan is to have all federating servers send their entire list of communities to each other on a regular basis.
The other thing that I think is worth mentioning is Lemmy Community Boost which is basically a bot that serves the same purpose.