shaneharter / PHP-Daemon

Build production-ready Daemons using PHP 5.3+. Build fault-tolerant applications without the boilerplate.
Other
768 stars 166 forks source link

Pluggable storage classes for the Worker API #13

Open shaneharter opened 12 years ago

shaneharter commented 12 years ago
  1. Abstract all of the SHM functionality into an SHM storage class.
  2. Create additional storage options (Redis, Memcached, etc) and implement the ability for application developers to choose a specific storage class. Create hueristic that will try to select the optional storage engine based on worker throughput and mean arg/return value size.

The idea here is that we've learned from this first release of the Worker API that shared memory has faults and is, you could say, not the most rock solid PHP API available. And if Redis or Memcached are available on the server, one or both could be a better option than SHM.