Our API-only server, running on Rails 4.2, has a lot of traffic. Every once in a while, data will cross each other. For example, when the Mailer compose an email, it would send the email to the wrong person.
We double-and-triple-checked our code and the only explanation is that data are crossing each other as if they were sharing the same session. That compromises security.
Is this a known issue to Rails? I can't pinpoint why this is happening and would appreciate any general security tips and advices as to making sure data are not compromised and exclusively running its own thread/session.
Thanks in advance.