Optional functionality, especially optional functionality that is not a part of the core requirements, is the most frequently misused of all functionality.
2009/3/24 gf <[email protected]> > > 1. It can be _optional_ functionality. So people can use it at their > own risk. > 2. > risk of memcached performing poorly by having more connections > open longer. > Why? AIO allows to has thousands connections open. I'm sure, it must > be more efficient than repeats. > > On 24 мар, 15:00, Josef Finsel <[email protected]> wrote: > > memcached works so well because it does one thing very efficiently. > > Attempting to add functionality that should go in the client increases > the > > risk of memcached performing poorly by having more connections open > longer. > > > > If this is to be implemented, it should be implemented in the client > where > > it can open a connection, not find data, wait a millisecond and try > again. > > > > Just my .02. > > > > 2009/3/24 gf <[email protected]> > > > > > > > > > > > > > On 24 мар, 07:39, Dustin <[email protected]> wrote: > > > > On Mar 22, 4:20 am, gf <[email protected]> wrote: > > > > > > > Hello. It would be great to add new "wait timeout" argument to the > get > > > > > () method. If it is defined and the key doesn't exists a the > moment, > > > > > client should wait untill the key will be added or untill the > timeout > > > > > will be reached (client gets false in this case) and get feedback > as > > > > > soon as possible. > > > > > It can be used at many cases. > > > > > > ...however, none of these cases are applicable to a cache. The > > > > cache has data or it doesn't. Building a blocking queue inspired by > > > > the memcached protocol is one thing, but support for such things > > > > *within* memcached doesn't make all that much sense. > > > Why not? > > > The cache could has no data, but the data will be added very very soon > > > (0.01 ms), so cycle repeats is not a good solution.... > > > I think, the blocking operation (not in queues) is very usable in > > > cache implementations because several threads can be update... > > > Memcached is more than the storage for "a data from some queries", > > > it's a great platform for distributed solutions. > > > > -- > > "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 > > > > http://www.finsel.com/words,-words,-words.aspx(My blog) - > http://www.finsel.com/photo-gallery.aspx(My Photogallery) - > http://www.reluctantdba.com/dbas-and-programmers/blog.aspx(My Professional > > Blog) > -- "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 http://www.finsel.com/words,-words,-words.aspx (My blog) - http://www.finsel.com/photo-gallery.aspx (My Photogallery) - http://www.reluctantdba.com/dbas-and-programmers/blog.aspx (My Professional Blog)
