Particle acceleration mechanisms in compact sources