Memcached Server using Unix Socket
Festive period finally over, and I am back to my computer tinkering and twisting about Web Performance Optimization. While bragging for big deals we often forget about small important things which could play a vital part in WPO. Since, Manchester United thrashed Wigan Athletic 4-0 away at DW Stadium on New Year's Day, my spirit is high and I decided to test Memcached server using Unix sockets.This is follow up from my previous post about testing Memcached stats like APC using Unix Socket.
Memcached was definitely created to be used with TCP and still for security reasons it might be the best choice while having many servers served via load balancers, but if your web server and database servers are on same machine then using Unix sockets might be good option. Using Unix sockets with Memcached disables the networking capability of the Memcached server and could not be accessed from outer source, which gives extra mileage of security. We all know reducing the TCP overhead from networking between different components in same machine gives performance gain, so, here I decided to give a try for using Memcached using Unix sockets.
The config file is in my Public Github Repo. Clone it, Fork it, Download it, or whatever, give it a try and tell me if anything goes wrong.
Add new comment