The approach most advanced people use now is deformable mirrors. They work in concert with a laser that emits from the detector, bounces off the atmosphere, and produces a real time map for the deformation (you have to solve an inverse problem here IIRC). You can also use a wavefront sensor.
For small problems, you can just buy these things off the shelf: https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=32... "only" $17.5K