As far as I know, Malaysia had two riots in the past:

On the other hand, India is seeing riots on a regular basis:

at the latest, there were two incidents in 2020.

India seems unable to solve its communal tensions while Malaysia seems to be successful.

What are the differences between two nations' circumstances, and methods that might contribute to this?