I'm just curious, why are you using memcached for a queue rather than a real
queue program? How do you handle the loss of items from memcached?

On Thu, Oct 2, 2008 at 12:04 AM, LockeVN <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> My case is:
>
> I implemented an simple queue by memcached. PHP website(s) push a lot
> of message to the queue. I need a high speed program (bot) run
> continuouslly, pop the queue, delivery message to several MySQL
> databases on several DBServers. "Bot processing" takes a lot of time
> than" queue poping", so I think bot should be multi-thread app. All
> running on Linux Ubuntu machines.
>
> Please give me some advices:
>  - A bot need to be good at multi-thread, talk with memcached, talk
> with MySQL. So should I write bot by C or Java? (I can not use erlang,
> because we're lack of developer and does not have ClientAPI with
> memcached)
>  - What C library or Java package should I use for this purpose?
> because I C has 2 libs, Java  has 2 packages on memcached homepage,
> which is thread safe version to use?
>
> Thanks for your advice, a lot.
>



-- 
"If you see a whole thing - it seems that it's always beautiful. Planets,
lives... But up close a world's all dirt and rocks. And day to day, life's a
hard job, you get tired, you lose the pattern."
Ursula K. Le Guin

Reply via email to