This repository has been archived by the owner on Feb 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Home
Marcin Kurczewski edited this page Jul 9, 2013
·
19 revisions
- Add average user rating to media processor
- Save info from processors to DB:
- User stuff,
- Anime,
- Anime stuff,
- Manga,
- Manga stuff.
- Add content presenters:
There probably should be somePresenter
abstract class that is implemented by classes like:UserProfilePresenter
,GlobalDataPresenter
, ... .
Each of these should:- call low-level fast SQL queries,
- be able to work in two modes:
- dynamic - when you visit user page through your browser,
- static - when it's called by back end to cache user data.
- What to do with users that are queued, and then it turns out they do not exist on MAL?
- What parts should be generated statically, and what dynamically?
- What about user settings regarding image colours?
- Front end versus
Presenter
: the front end control flow should probably be done inside abstract methods ofPresenter
(andUserPresenter
?) class.
- 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 after processing.
- Back end control flow:
- Pick up queued users,
- Download their stuff and put it into DB (
UserProcessor
), - Download missing or old anime/manga stuff and put it into DB (
AnimeProcessor
,MangaProcessor
), - Render content for all users that were just downloaded (
*Presenter
), - Render global data (
GlobalDataPresenter
).
- Front end control flow:
- Queue users into back end,
- If cache exists, send the cache,
- If cache does not exist, but user exists in local DB, render and save cache, then send the cache,
- Otherwise display friendly message about first-time queue.
- Back end operating mode - for now, let's assume it should pick up maximally
n
users every run and use control flow described above.