How do badges get awarded? By a service or on change?
I was surprised by the system that awards badges whenever a certain task is completed. How is that implemented? Does it use triggers in the database? Is it done purely in code? If it is code, what is the design?
I realize that maybe no-one knows the exact answer, but how do you think it's implemented?