Particularly in A2A, a revolver cannon does not need as many rounds as a Gatling because it has a shorter time-to-rate and can therefore fire a shorter burst for the same effect.
The Su-27's GSh-301 is not even a revolver cannon - it's a recoil-operated autocannon and has effectively zero time-to-rate.