Electric brakes work very well and are better than surge brakes because you can apply them independently of the truck's brakes, but they are not good for boat trailers.
They are also cheap to buy and easy to install. Most axles have a flange already welded on the axle to mount the backing plate for each wheel. Then you run a set of two wires to the front of the trailer. These can Y to each rear wheel on an axle or there can be a set of two two wires for each wheel. Probably number 12 minimum size wire.
They feed from the truck through the plug and get the power from a brake controller.
All my trailer have drum brakes. I have a set of 3500 lb axles that will skid the wheels with a trailer GVW of about 7,000 lbs. And I use the brakes in the mountains a lot for stability and holding on grades. I just checked the brakes and they are about 1/2 gone after many thousands of miles. Never had a problem. My other trailers have 5200 lb, 6000 lb, and 7000 lb axles with electric brakes. All are fine and the bigger ones are a lot more powerful. I recently converted my 6000 lb tandem axle, 12,000 lb gross weight trailer to electric from surge.
If you have tandem axles, go with brakes on both axles.
You can find the parts on-line or at a trailer and wheel supply house.
I highly recommend them!