Need to say, that you should use gordon" rel="nofollow">https://github.com/jorgebastida/gordon> to manage it, Gordon makes the process easier.
Regards
31–40 of 165 posts
Need to say, that you should use gordon" rel="nofollow">https://github.com/jorgebastida/gordon> to manage it, Gordon makes the process easier.
Regards
The only negatives are: - cold start is slow, especially from within a VPC - debugging/logging can be a pain - giving a function more memory (~1GB) always seems to be better (I'm guessing because of the extra CPU)
* Games are developed as command line tools which use JSON for input and output. They're pure so the game state is passed in as part of the request. An example is my implementation of Lost Cities[1]
* Games are automatically bundled up with a NodeJS runner[2] and deployed to Lambda using Travis CI[3]
* I use API Gateway to point to the Lambda function, one endpoint per game, and I version the endpoints if the game data structures ever change.
* I have a central API server[4] which I run on Elastic Beanstalk and RDS. Games are registered inside the database and whenever players make plays, Lambda functions are called to process the play.
I'm also planning to run bots as Lambda functions similar to how games are implemented, but am yet to get it fully operational.
Apart from stumbling a lot setting it up, I'm really happy with how it's all working together. If I ever get more traction I'll be interesting to see how it scales up.
[1]: https://github.com/brdgme/lost-cities
[2]: https://github.com/brdgme/lost-cities/blob/master/.travis.ym...
I've been using it for heavy background job for http://thefeed.press and overall, I think it's pretty ok (I use NodeJs). That said here are few things: - No straight way to prevent retries. (Retries can crazily increase your bill if something goes wrong) - API gateway to Lambda can be better. (For one, Multipart form-data support for API gateway is a mess) - (For NodeJs) I don't see why the node_modules folder should…
So you don't end up with a leftpad-like event. Control and ship your dependencies.
But here's the fun part - if you want to just upload your code and make it download+deploy dependencies, you can do it using your own lambda function :-)
I've been using it for heavy background job for http://thefeed.press and overall, I think it's pretty ok (I use NodeJs). That said here are few things: - No straight way to prevent retries. (Retries can crazily increase your bill if something goes wrong) - API gateway to Lambda can be better. (For one, Multipart form-data support for API gateway is a mess) - (For NodeJs) I don't see why the node_modules folder should…
Agreed regarding downloading of libraries. I tried to get a python torrent library working in lambda the other day, and I had to manually dig through my /usr/lib to find the right shared objects. Should be much easier than that, I should be able to place a language appropriate set of requirements in the zip root and it should do what it needs to do.
Let's say you depend on libfoo. It can be obtained via system package, built from sources (with 3 different feature switches), or your language's package can simulate the effect without the native libfoo but it will take longer. Why knows what "it needs to do"?
This is not something anyone but you can answer. There could be some nice wrapper that warns you about libraries you use, but you have to make the decision.
I've been using it for heavy background job for http://thefeed.press and overall, I think it's pretty ok (I use NodeJs). That said here are few things: - No straight way to prevent retries. (Retries can crazily increase your bill if something goes wrong) - API gateway to Lambda can be better. (For one, Multipart form-data support for API gateway is a mess) - (For NodeJs) I don't see why the node_modules folder should…
What do you mean by retries? Also, why would you upload node_modules? Why don't you build it first and only upload what is required...
> Why would you upload node_modules It is required to: http://docs.aws.amazon.com/lambda/latest/dg/nodejs-create-de...
Building reactive systems with AWS Lambda: https://vimeo.com/189519556