Daniel Henninger (jadestorm) wrote in lj_dev,
Daniel Henninger
jadestorm
lj_dev

Friends check, possible cache, image front end, ninjas

Hi folk. I was thinking about seeing what I could do about making the "Friends" link indicate, in some way, if there are any new entries from your friends. In other words, do what the various clients do, hopefully making a very quick and "light" check to the db that would, hopefully, prevent users from hitting the Friends link all the time if there aren't any new posts. Judging from a request I read somewhere about "please try to use a client that makes a light check on the server if possible", I was thinking this might help out the db load a great deal. However, I might be overlooking something, like maybe having that check on the web site itself would cause more of a problem than it would solve? Need some sort of input as to whether this is worth looking into.

I'm also trying to come up with some method of "caching" the friends page requests so that, if nothing has updated since the last time, the user would cause nothing more than a quick "anything new?" check on the main db and if nothing is new, get the results off a separate db. (which I'm not sure whether should be flat desk, another mysql db on another server or maybe even on the same... no idea as of yet what would work out well) What kind of space are y'all working with? (free disk space mostly) Granted, I haven't had time to really think this through so it might be a really bad idea .

All in all, what are the worst bottlenecks right now? Database traffic? Web server traffic? Ninja's attacking the servers? =)

I was also aiming to write a small, quick image front end that would basically figure out which image to pick instead of just going directly to it. In other words, lets say you have image files for 0 - 40 posts, which of course would grab image0, image1, image2,.... image40, after 40 you get a broken link currently. The front end would instead get you an "out of range" (maybe imageoor) one. The script would obviously need to be run on img.livejournal.com so it would be able to know how many images there are. Does this sound like something that would be useful in y'all's eyes?

Enough babble. This is my way of saying hi folk. ;)
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 14 comments