I've had my betta in a small community for six months now and he's been fine. But as said above, they do have their own personalities so you never know.
Regarding the shrimp, I had five RCS with my betta for months without issue. But then one week he ate them all. Not really an issue to me...