{"action":"created","issue":{"url":"https://api.github.com/repos/snarfed/huffduff-video/issues/11","repository_url":"https://api.github.com/repos/snarfed/huffduff-video","labels_url":"https://api.github.com/repos/snarfed/huffduff-video/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/snarfed/huffduff-video/issues/11/comments","events_url":"https://api.github.com/repos/snarfed/huffduff-video/issues/11/events","html_url":"https://github.com/snarfed/huffduff-video/issues/11","id":122375038,"number":11,"title":"port to AWS lambda or t2.nano","user":{"login":"snarfed","id":778068,"avatar_url":"https://avatars.githubusercontent.com/u/778068?v=3","gravatar_id":"","url":"https://api.github.com/users/snarfed","html_url":"https://github.com/snarfed","followers_url":"https://api.github.com/users/snarfed/followers","following_url":"https://api.github.com/users/snarfed/following{/other_user}","gists_url":"https://api.github.com/users/snarfed/gists{/gist_id}","starred_url":"https://api.github.com/users/snarfed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snarfed/subscriptions","organizations_url":"https://api.github.com/users/snarfed/orgs","repos_url":"https://api.github.com/users/snarfed/repos","events_url":"https://api.github.com/users/snarfed/events{/privacy}","received_events_url":"https://api.github.com/users/snarfed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-15T21:51:10Z","updated_at":"2016-03-25T01:21:57Z","closed_at":null,"body":"[lambda docs.](http://docs.aws.amazon.com/lambda/latest/dg/welcome.html) it'd be pretty nice to not have to run the EC2 instance, and it would cut our cost down a bit once our free tier year is up.\r\n\r\nit would only cut our cost down by ~1/3, though. [our bill is currently ~$17/mo](https://console.aws.amazon.com/billing/home?region=us-west-2#/), 90% of which is bandwidth, and [our t2.micro will only add ~$9/mo](http://aws.amazon.com/ec2/pricing/#On-Demand_Instance_Prices).)\r\n\r\nalso, i'm not sure if lambda is ready for us yet. notably, there's a [5m request deadline and 512MB disk quota](http://docs.aws.amazon.com/lambda/latest/dg/limits.html#limits-list). i think most requests finish in <5m, but i'm not sure. i don't have good metrics on request latency. :/ and [our _output_ files are pretty much all <512MB](https://console.aws.amazon.com/s3/home?region=us-west-2#&bucket=huffduff-video&prefix=), but i'm not sure how much more space the intermediate files take up.\r\n\r\nan alternative is [the new t2.nano instance type](https://aws.amazon.com/blogs/aws/ec2-update-t2-nano-instances-now-available/).\r\n\r\njust collecting data here for now."},"comment":{"url":"https://api.github.com/repos/snarfed/huffduff-video/issues/comments/201095431","html_url":"https://github.com/snarfed/huffduff-video/issues/11#issuecomment-201095431","issue_url":"https://api.github.com/repos/snarfed/huffduff-video/issues/11","id":201095431,"user":{"login":"snarfed","id":778068,"avatar_url":"https://avatars.githubusercontent.com/u/778068?v=3","gravatar_id":"","url":"https://api.github.com/users/snarfed","html_url":"https://github.com/snarfed","followers_url":"https://api.github.com/users/snarfed/followers","following_url":"https://api.github.com/users/snarfed/following{/other_user}","gists_url":"https://api.github.com/users/snarfed/gists{/gist_id}","starred_url":"https://api.github.com/users/snarfed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snarfed/subscriptions","organizations_url":"https://api.github.com/users/snarfed/orgs","repos_url":"https://api.github.com/users/snarfed/repos","events_url":"https://api.github.com/users/snarfed/events{/privacy}","received_events_url":"https://api.github.com/users/snarfed/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T01:21:57Z","updated_at":"2016-03-25T01:21:57Z","body":"incidentally, we did 245GB outbound data transfer in jan, 240GB in feb, and we're on track to do 290GB in march. free quota is 15GB/mo, so losing that won't add much new cost."}}