Question about WMI architecture

I’m interested more how it spawns processes and how it looks for providers, not how it implements them (because I already know that).

How internally WmiPrvSE.exe is spawned and what’s the role of WmiApSrv.exe and how exactly communication between each processes is managed and how WmiPrvSE.exe knows to which process it should send.