Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.
Marcin Kurczewski edited this page Jul 29, 2013 · 19 revisions

Problems

  1. What to do with users that are queued, and then it turns out they do not exist on MAL?
    Do quick ajax request?

Solved problems

  1. Dequeuing users: When you visit any user page regardless whether it's cached or not, ready to be served or not - add the user to queue. Back end should pick up users from queue and immediately remove them before processing.
  2. Back end control flow:
    1. Pick up queued users,
    2. Download their stuff and put it into DB (UserProcessor),
    3. Download missing or old anime/manga stuff and put it into DB (AnimeProcessor, MangaProcessor),
    4. Render content for all users that were just downloaded (*Controller),
    5. Render global data (GlobalDataPresenter).
  3. Front end control flow:
    1. Queue users into back end,
    2. If cache exists:
      1. Send the cache
    3. Otherwise:
      1. If user exists in local DB:
        1. render and save cache, then send the cache,
      2. Otherwise:
        1. Display friendly message that user does not exists and he was put in the processing queue.
  4. Back end operating mode - for now, let's assume it should pick up maximally n users every run and use control flow described above.
  5. User settings regarding image colors - when tweaking settings, bypass proxy, else read cached image
  6. Cache generation - pages shouldn't be generated in cron
Clone this wiki locally