What’s it like working in a prison?

I regularly get recruitment ads for the Prison Service and was wondering what it’s like.

I imagine the role is difficult, scary and emotionally draining, but I also see it potentially being really rewarding.

How do you find it? Do you ever feel unsafe? How do you cope with stressful or difficult situations? What are some unexpected upsides to the job?