3

My system administrator asked me if CiviCRM is thread safe. He could not really explain what he meant by that but he explained me that civicrm should be thread safe because he wants to use Apache Event module as a webserver.

And I don't really know if CiviCRM is thread safe. I have read this topic https://stackoverflow.com/a/5978844/3853493 and it looks like PHP is the problem but not really an application written in PHP.

The question really is, could we use Apache Event module in conjuction with CiviCRM.

4

I would say no:

  1. As you've said PHP is not thread safe

  2. CiviCRM does not focus on preventing race conditions in a few cases. Event registration and max participant count was one case (it might be fixed by a contrib in recent versions)

2
  • Thanks Lobo! Do you know how I could check in to the code if it prevent race conditions? May 24 '15 at 5:49
  • unfortunately i think this would be a one workflow at a time process. I think operations using top level transactions are probably safer than the ones not using transactions May 25 '15 at 4:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.