2. ESSENTIALS OF RIOTING
a) there must be an unlawful assembly.
b) the accused must be a member of such unlawful assembly.
c) force or violence must be used by such unlawful assembly or by any member of such assembly.
ESSENTIALS OF AFFRAY
a) a fight between two or more persons.
b) it must in a public place.
c) fight must disturb the public peace.
Rioting may be committed at any place whether public or private.
Affray is committed only in public place.
4. NUMBER OF PARTIES
In rioting there must be minimum of five persons.
In affray minimum two persons are required.
In rioting every member is punishable irrespective of whether he has actively participated or not.
In affray only those persons are punished who are participating.
Rioting is more serious in nature.
Affray is less serious in nature.
Very important that you please read CHAPTER VIII (141-160) of IPC – OF OFFENCES AGAINST THE PUBLIC TRANQUILLITY (It talks in depth about rioting, affray etc.)