Surgery is not needed for most people with diverticulitis, but it may be considered in certain situations.