Fork me on GitHub
#holy-lambda
<
2022-04-19
>
devargs21:04:56

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ójcik05:04:09

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.

emccue12:04:23

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

Karol Wójcik12:04:20

Huh. Is this lacina in NativeImage?

emccue12:04:42

i think with just warm containers

Karol Wójcik12:04:51

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

emccue12:04:13

oh wait nevermind this is lacinia

emccue12:04:26

my brain confused the two because we use lacinia-pedestal

emccue12:04:47

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

Karol Wójcik12:04:24

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

emccue12:04:34

pedestal is an entire web server

Karol Wójcik12:04:03

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

Karol Wójcik12:04:20

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

emccue12:04:30

at which point you just use lacinia

emccue12:04:03

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

🎉 1
Karol Wójcik12:04:44

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

devargs13:04:58

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

Chris Lowe13:04:09

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