holy-lambda

devargs 2022-04-19T21:15:56.858479Z

Hi everyone, I'm new to holy-lambda. I was wondering if anyone has some example of using it with Pedestal. Is there an adapter or an example somewhere?

Karol Wójcik 2022-04-20T05:50:09.354979Z

There is adapter for ring. As far as I remember pedestal has a function that adapts ring middlewares to pedestal, so it might work, but havent tested it.

emccue 2022-04-20T12:21:09.947349Z

I do!

emccue 2022-04-20T12:22:23.957509Z

actually nevermind i don't have the code handy, but i do have a gif of it working

Karol Wójcik 2022-04-20T12:23:20.754279Z

Huh. Is this lacina in NativeImage?

emccue 2022-04-20T12:23:42.394569Z

i think with just warm containers

Karol Wójcik 2022-04-20T12:24:51.095799Z

Yeah. It can’t be native image. Init and duration is too high. Anyway cool you made it work!

emccue 2022-04-20T12:25:13.320349Z

oh wait nevermind this is lacinia

emccue 2022-04-20T12:25:26.635009Z

my brain confused the two because we use lacinia-pedestal

emccue 2022-04-20T12:25:47.127289Z

on the bright side i got somebody's hopes up today and got to let them down

Karol Wójcik 2022-04-20T12:26:24.661519Z

Is there a difference? If pedestal-lacinia works pedestal should too.

emccue 2022-04-20T12:26:34.936169Z

pedestal is an entire web server

Karol Wójcik 2022-04-20T12:27:03.597609Z

Yeah, but you can omit the server via the HL middleware i suppose?

Karol Wójcik 2022-04-20T12:27:20.727549Z

The same I did with ring? At least I think so.

emccue 2022-04-20T12:27:30.632309Z

at which point you just use lacinia

emccue 2022-04-20T12:28:03.855029Z

there is no "lacinia-ring", but constructing it isn't that hard

🎉 1
Karol Wójcik 2022-04-20T12:29:44.565029Z

Actually this is extremely cool. I remember that @chris.lowe.uk did something similiar but without Lacinia and pure AppSync.

devargs 2022-04-20T13:14:58.052689Z

Ah, I see... I'll look into these diff approaches. I'll start with Pedestal and ring middleware

Chris Lowe 2022-04-20T13:16:09.589949Z

I used pedestal logs in HL 🙂 But, also using AppSync + HL, SQS + HL, DynamoDB Streams + HL. All on ARM64 now, too. I’m very happy with HL. I use Pedestal from Fargate (using Copilot) rather than Lambda as I needed to support payload transfers > 10MiB. That was pretty straight forward, too - but that doesn’t use HL.

🎉 1