Weight loss surgery

I have been struggling with my weight since I was 16 but I haven't been worried about it because I was over weight but didn't have any health issues. Now I am at higher risk for a lot of health issues including heart failure and diabetes because I gained a lot of weight from pregnancy. I am really struggling to lose weight and I am considering it as last resort. I would like to know if any one has had the surgery and how it went for them?