by jedberg · 10y ago · 0 comments
Here is an example[1] of a program built in Python that uses Kappa, and here is a video tutorial[2] on how I deploy that program with kappa.
Obviously I disagree with the premise. It's true that it is more difficult to use than other technologies and you'll certainly pay the pioneer tax, having to develop your own tooling, but it's ready for production traffic.
Error handling is ok, could be better (it takes a while for the cloud watch log to show up).
The real big problem is testing. It's really hard to test if you have more than one function because there is no mocking framework (yet). It's fairly easy to deploy and test with a test account, but local testing still needs to be solved.
[0] https://github.com/garnaat/kappa
[1] https://github.com/jedberg/wordgen
[2] https://www.youtube.com/watch?v=JtLLkCt-lPY&feature=youtu.be
The really hard part is integration testing. You can Chaos-Monkey your Lambda functions, but you can't Chaos-Monkey DynamoDB. We're looking at ways of building tooling to do that.
For deployment, we wanted to use Serverless, but as they started to move away from CloudFormation, that didn't work for our more enterprise needs, so we've been rolling our own, based on ideas from Kappa.
Have you guys figure out a way to do offline testing of one Lambda calling another? I'd love to see it!
I bet you could achieve this effect by either temporarily decreasing provisioned throughput, or inserting clientside middleware that occasionally refuses to do a DynamoDB op.
But it means you have to write the middleware and have it be it's own source of bugs, which is still better than nothing, but another risk.
Anyone else heard the same?
Someone might hate python just because.
Linux executables.
During re:Invent 2015 there was talk about supporting a windows runtime environment.
:)
But yes in 2016 everyone needs day 1 Python 3 support. Python 2 support is optional.
I'm not sure how this applies to Lambda, but we've found a workable solution for Service Fabric: the services and actors are almost nothing more than a thin host for the actual implementation (or are DI'd into the implementation) - which is defined in a completely separate package/assembly.
there are very few times where you are offline and would like to run a test suite, but it's much easier to handle those than try to fake the service AWS provides