portkey

Portkey: from REPL to Serverless in one call
qqq 2017-09-25T00:49:44.000031Z

I'm looking for sample code to read/write data from AuroraDB with Lambda. Is there anything besides https://github.com/portkey-cloud/portkey/blob/master/test/portkey/core_test.clj#L163-L192 ?

cgrand 2017-09-25T11:32:32.000262Z

@tatut @viesti ^^

tatut 2017-09-25T11:33:47.000228Z

I did a demo at a local dev meetup, using specql to query an RDS database from lambda

viesti 2017-09-25T11:51:55.000221Z

a very crude example of using a jdbc connection pool found here too: https://github.com/viesti/poll/blob/master/src/poll/core.clj

viesti 2017-09-25T11:53:02.000228Z

you can pass Lambda environment variables with :environment-variables key also: https://github.com/viesti/poll/blob/master/dev/dev.clj#L8-L10

cgrand 2017-09-25T14:10:38.000624Z

thanks guys!

qqq 2017-09-25T18:51:32.000116Z

@cgrand, @tatut, @viesti: thanks for all the links, this kills all my excuses for not switching from beanstalk to lambda+portkey

cgrand 2017-09-25T18:53:17.000037Z

@qqq it's still pretty alpha material.

viesti 2017-09-25T19:47:47.000312Z

use of it is still welcome, just to say that on the bleeding edge there will be cuts :)

😱 1
viesti 2017-09-25T19:49:07.000331Z

knowing that I've had some, but still have enjoyed the trip, as the readme says, can give nausea :)

viesti 2017-09-25T19:53:28.000141Z

was looking at ring handler support, figured out yesterday that to support mount to / (root), a {proxy+} path (path with pattern variable named "proxy") isn't enough, need to have a ANY method as well on /, so two routes

viesti 2017-09-25T19:54:07.000177Z

one can still have other routes in api gateway, the most specific for a method wins

viesti 2017-09-25T19:57:14.000534Z

on the verge of copying what is in here to make a pk/mount-ring-adapter: https://github.com/jpb/ring-aws-lambda-adapter/blob/master/src/ring_aws_lambda_adapter/core.clj

cgrand 2017-09-25T20:20:42.000562Z

Once ring support lands, isn't mount a gimmick?