{"action":"created","issue":{"url":"https://api.github.com/repos/bigcompany/hook.io/issues/136","labels_url":"https://api.github.com/repos/bigcompany/hook.io/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/bigcompany/hook.io/issues/136/comments","events_url":"https://api.github.com/repos/bigcompany/hook.io/issues/136/events","html_url":"https://github.com/bigcompany/hook.io/issues/136","id":107450153,"number":136,"title":"Refactor asset caching code / Remove all `fs` calls inside worker","user":{"login":"Marak","id":70011,"avatar_url":"https://avatars.githubusercontent.com/u/70011?v=3","gravatar_id":"","url":"https://api.github.com/users/Marak","html_url":"https://github.com/Marak","followers_url":"https://api.github.com/users/Marak/followers","following_url":"https://api.github.com/users/Marak/following{/other_user}","gists_url":"https://api.github.com/users/Marak/gists{/gist_id}","starred_url":"https://api.github.com/users/Marak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marak/subscriptions","organizations_url":"https://api.github.com/users/Marak/orgs","repos_url":"https://api.github.com/users/Marak/repos","events_url":"https://api.github.com/users/Marak/events{/privacy}","received_events_url":"https://api.github.com/users/Marak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bigcompany/hook.io/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-21T06:13:39Z","updated_at":"2015-09-25T00:06:59Z","closed_at":"2015-09-25T00:06:58Z","body":"We are close to moving to a completely immutable server setup.\r\n\r\nAs of today, the `worker` no longer has write access to the file-system.\r\n\r\nThe worker still has asset caching code ( hook / view / presenter ) which writes to the `fs` system. This legacy caching code was primarily used for early debugging and we can remove it.\r\n\r\nMoving forward, these assets will be cached in the couchdb document ( for now ). Since we are already fetching the document during the execution chain, this should actually now speed things up.\r\n\r\nWhen the number of HTML fragments for views increases, we might want to consider moving to something like memcached to relieve possible strain on the couch.\r\n\r\nRelated #134 "},"comment":{"url":"https://api.github.com/repos/bigcompany/hook.io/issues/comments/143085646","html_url":"https://github.com/bigcompany/hook.io/issues/136#issuecomment-143085646","issue_url":"https://api.github.com/repos/bigcompany/hook.io/issues/136","id":143085646,"user":{"login":"Marak","id":70011,"avatar_url":"https://avatars.githubusercontent.com/u/70011?v=3","gravatar_id":"","url":"https://api.github.com/users/Marak","html_url":"https://github.com/Marak","followers_url":"https://api.github.com/users/Marak/followers","following_url":"https://api.github.com/users/Marak/following{/other_user}","gists_url":"https://api.github.com/users/Marak/gists{/gist_id}","starred_url":"https://api.github.com/users/Marak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marak/subscriptions","organizations_url":"https://api.github.com/users/Marak/orgs","repos_url":"https://api.github.com/users/Marak/repos","events_url":"https://api.github.com/users/Marak/events{/privacy}","received_events_url":"https://api.github.com/users/Marak/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T00:06:58Z","updated_at":"2015-09-25T00:06:58Z","body":"Completed and deployed."}}