title: is redis pub/sub realistic in php?
body: <p>I'd like to use redis pub/sub in PHP, but I'm afraid PHP can't be the only tool: a subscriber need to be always callable, since php isn't built for running as a daemon, I can't trust it to reliably be always &quot;on&quot;.</p>
  <p>So what is the solution for the PHP world?</p>
  <ol>
  <li>don't use pub/sub, use other redis' storages with a crontask launching php every x minutes</li>
  <li>use a broker which will call php?</li>
  <li>other?</li>
  </ol>
  <p>With the &quot;2.&quot; I mean : use a <strong>nodejs</strong>/java/fooBar server which is the daemonized subscriber and call back the php (using http/cli or whatever).</p>
  <p>I can't find a better idea than the &quot;2.&quot; , but it seem so ineffective at the same way...</p>
  <p>What is your opinion?</p>
  <hr />
  <p><strong>EDIT</strong> :
  How would you do this using a cloud platform like platform.sh which do not give the opportunity to have a supervisor.d alike?</p>