php - How can I implement a shared variable between users using Zend Framework?


I have a website that requires a shared priority queue with objects that store the IP of the user and other important user posted values.

I figured I could use a sql database, but since the priority queue isn't that big and is frequently updated, something like a cache would be more appropriate.

What tools could I use from the Zend framework? I want the shared priority queue to be consistent, of course, without data races and other concurrency related problems. Yet I still want a good performance.

Any ideas?




APC, Memcache, or an actual queuing solution, like beanstalkd. Not sure zf has something particular for this except perhaps a pre-built client for some or all of these tools. Of course you could use the filesystem as well, but you need to determine if that will work, for example if you have multiple servers behind a load balancer a filesystem approach on one webserver is probly insufficient.

People are also looking for solutions to the problem: php - PayPal auto return does not send back any POST data


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.