portkey

Portkey: from REPL to Serverless in one call
viesti 2021-04-23T15:05:41.001800Z

Humdeum, there's good amount of Lambda activity going on in #holy-lambda , so check it out if interested in packaging Lambdas 🙂

viesti 2021-04-23T15:07:39.003700Z

got me thinking again of side loading code into a running Lambda process, kind of "nrepl", but via the aws infra, maybe putting repl artifacts into S3, or maybe even to ElasticCache/redis etc. hmm...

valtteri 2021-04-23T19:07:07.004300Z

How about EFS?

viesti 2021-04-23T19:24:49.004400Z

aa, that available for Lambdas now as well

viesti 2021-04-23T19:26:25.004500Z

getting another crazy idea, while looking at https://docs.serverless-stack.com/live-lambda-development#an-example

viesti 2021-04-23T19:32:11.004700Z

run a nrepl middleware in lambda, that connects to a "repl" api gateway via a websocket, then have another middleware on the dev machine, that connects to that same "repl" api gateway, which then tunnels nrepl commands to the lambda, results and printouts to local repl

viesti 2021-04-23T19:36:08.004800Z

when the lambda times out, signal back to repl, to (optionally) create a new deployment

viesti 2021-04-23T19:38:41.004900Z

a bit brainstorming here, the above related to jvm lambda probably

viesti 2021-04-23T19:39:52.005Z

repl that resets itself every now and then might require a bit different programming model that normally

viesti 2021-04-23T19:43:00.005100Z

could keep log of commands to re-apply maybe, maybe stuff run in lambda not usually initiated from repl, but from event source outside, def:ing the lambda input for playing, even at the local repl, might be neat

viesti 2021-04-23T19:44:48.005200Z

eh, somehow mixed a nrepl client with two nrepl servers :) (one local, one in lambda), have to think if that is actually a good idea or just a mishap :)

viesti 2021-04-23T19:54:36.005300Z

say that one runs the project locally with a repl, does some initial build and deploys it, then we'd have a utility library that can talk to the remote lambda, kind of having a handle to it via a (nrepl) connection, be able to send forms to it to eval code and get results, maybe replay those form send to a lambda when the process recycless, humdum

viesti 2021-04-23T19:58:18.005400Z

laalaa :)