Attaching deck beam to side of post
You could attach the beams and posts using a lap joint where you cut away the thickness of the beam from the posts so that they can lock together. Similar to the picture, where the green board is the beam. 

Then fasten them with a couple of lag bolts through the joint. That will provide a strong and durable joint.