Relativistic shocks are believed to exist in numerous astrophysical phenomena emitting non-thermal radiation, including gamma-ray bursts, pulsar-wind nebulae, and jets from active galactic nuclei. Understanding the effectiveness of these shocks in transferring energy to energetic particles is crucial. Not only does it aid in interpreting observations, but it also sheds light on their potential contribution to the production of the highest-energy cosmic rays. In this talk, I will review the current state of numerical simulations of these complex phenomena, focusing particularly on recent insights obtained from gamma-ray observations in the TeV regime.