What is the procedure like for getting an inlay or onlay, and how does it compare to a regular filling?

What does the process of getting a dental inlay or onlay involve, from preparation to placement, and how does this procedure differ from receiving a traditional filling in terms of steps, durability, and overall results?