This book documents what I've observed and learned about UniFi and how the SDN works. These are the mad writings of an lone engineer and not official documentation.
Here be dragons.
This book contains unofficial documentation on UniFi, you can read the book online here.