PHP memcached extension
Russ Garrett
russ at last.fm
Tue Sep 6 15:39:36 PDT 2005
Well, it shouldn't be hard to put ours together, I was just wondering if
there was an easier way (which it appears there isn't). It'll only take
a second to add proper failover support to our class, but I've got
bigger fish to fry at the moment.
We're not seeing a bottleneck on memcache at the moment (I thought we
were but I was wrong), so I'll cross that bridge when we come to it.
Russ
Alex Stapleton wrote:
> Currently we aren't using memcached in production but we are planning
> to shift some stuff onto it soon. We use that technique to get around
> having to use the (generally crap and ancient) F5 load balancers
> which have been in use for eon's because someone didn't think about
> the bottleneck it might cause. I see no reason why it wouldn't work
> for memcached though. So no, I don't have any memcached code that I
> could open source.
>
> apr_memcached looks good. I've not used it though. I believe SWIG has
> some vague PHP support these days, so that might make life a bit
> lazier too. Personally I think the best solution is probably sticking
> with your existing code for now and extending it with PHP as much as
> you can. Unless your getting crap performance from your PHP code, in
> which case I don't see anything wrong with just enhancing the PECL
> module to whatever your PHP code looks slowest. It's not like a bit of
> C is beyond your abilities ;)
>
> Considering maintaining the server list turned out to be about 30-40
> lines of code at most, it's really not a big deal to implement. I can
> probably rip out the relevant bits and e-mail them to you for
> inspiration if you want? It's probably bugged anyway, so some fresh
> eyes would do it good.
More information about the memcached
mailing list