Thanks for the suggestion - unfortunately none of the OrbitDB maintainers have the bandwidth to switch the pubsub implementation over right now since we're working on 1.0 (see #819).
Happy to review a PR if you want to put the suggestion into code, but closing this in the meantime.
I think it would be cool to have a way to insert single or multiple customizable ways to advertise heads similar to how other modules of orbitdb can be swapped with custom parts.
Ok, let's keep this open for consideration
Building on what @tabcat said. I think this is also important when thinking of security. If content has to be kept private it would be worth while to have a pluggable transport for private orbit-db databases.
We shouldn't ditch (as in replace with something else) the current default pubsub module. There are several reasons why Libp2p-based pubsub is and should be the default pubsub system.
However, it is possible already to pass in broker module to OrbitDB, which would be used instead of the default ipfs-pubsub module. As long as the given broker implements the same API as orbit-db-pubsub, it should work with any messaging system.
Most helpful comment
I think it would be cool to have a way to insert single or multiple customizable ways to advertise heads similar to how other modules of orbitdb can be swapped with custom parts.