Are relays reliable for long time use?
Relays tend to be quite reliable in benign environments, however they have a limited lifetime. Typically something like 50,000-100,000 operations at full rated load. At lighter loads, the life will increase, generally up to many millions of operations with a negligible load (the so-called mechanical life).
All this information will be clearly given in any decent datasheet. The markings on the relay are only limits for safety agencies and have little to do with the relay life.
Not all datasheets show the life vs. switched current, even for resistive loads, so you may have to test samples to determine that characteristic if you are say, using a 30A relay to switch 5A maximum. Inductive loads, incandescent lamps, and motor loads will also shorten the life.
Solid-state alternatives to relays have no easily defined wear-out mechanism, however they can easily die suddenly due to voltage surges, current surges (including momentary shorts) and from thermal cycling. They are also less resistant to heat, and tend to create a lot of it (a ballpark number is 1W per ampere of load current).
Most remotely switched outlets and similar consumer devices (where the consumer can plug anything into them) use relays. If the load is relatively light and well defined (perhaps a lamp) then solid state may be a superior solution.
This is an old post but I am a controls engineer who programs industrial machines so I have 2 cents. I have a machine that does 20,000 cycles a day and I must use solid state relays even if they will fail in a short circuit situation and need to be replaced.
A general rule of thumb for me in my undergrad education many years ago is that if it turns on and off more than 100 times a day make it solid state. Typically mechanical relays are cheaper so I choose them by default.
You must also account for failure of the solid state relay when it has a short to add to that rule of thumb.
Also, someone said mechanical relays live to be 50,000 to 100,000... This is wrong I am pretty sure most of the datasheets I have seen with my mechanical relays are 500,000 to 1,000,000. The relays I use now are 2x10^7 in lifecycles so I typically say 1 million life cycles but it depends on what you buy. Mine are low end industrial relays.
My company uses relays in our HVAC products for several reasons.
1) They are reliable. Based on past and current experience, I expect them to last decades.
2) Relays tend to be significantly less expensive than triacs and their drivers.
3) They waste less energy as heat than solid-state devices such as triacs.
This is important for several reasons:
1) getting rid of excess heat is expensive.
2) energy wasted in the controls degrades the allowable 'green' energy rating that the unit has.
In general, I've had far more triac failures than relay failures.
We use quality relays from reputable manufacturers.