Triacs are much better than mechanical relays for controlling line voltage lights. You can even do dimming in software if you include a way for the microcontroller to detect the zero crossing of the AC waveform.
1 * 10^7 is just a 1 with 7 zeroes, so 10,000,000 operations.