https://serverless-stack.com/ logo
#sst
Title
# sst
s

Sean Matheson

11/23/2021, 12:47 PM
I see https://remix.run/ launched. Would be epic to get in there early games with a construct.
t

Thomas Ankcorn

11/23/2021, 1:04 PM
Side note, does anyone find it frustrating that it is basically encouraging a fat lambda? It would be so nice if they could build to a function per route
s

Sean Matheson

11/23/2021, 1:15 PM
Yep
That's gonna add some limitations in terms of appropriate solutions
t

Thomas Ankcorn

11/23/2021, 1:18 PM
Oh btw the remix-run/architect adapter should work
c

Clayton

11/23/2021, 6:17 PM
It’s aimed solely at React-created sites, is that right?
t

Thomas Ankcorn

11/23/2021, 6:46 PM
Yeah it’s an isomorphic react framework a bit like next but prioritises serving just html and css that is progressively enhanced
j

Jay

11/23/2021, 11:59 PM
@Frank @manitej might be something we can explore to see how it works with SST?
m

manitej

11/24/2021, 12:23 AM
Already WIP @Jay 🌝
j

Jay

11/24/2021, 12:23 AM
Nice!
j

Joe Kendal

11/24/2021, 10:20 AM
Cool landing page but is it backed by a big company like Facebook or Vercel? I wouldn’t take such a big chance on it yet.
t

thdxr

11/24/2021, 2:27 PM
It's not but the guys behind it have been around forever. React router folks
s

Sean Matheson

11/24/2021, 3:04 PM
Yeah, they appear to be marketing/scaling the project really well. Clever move bringing Kent C. Dodds on board.
I wonder how it holds up against SvelteKit
Really enjoy Rich Harris's talk...

https://www.youtube.com/watch?v=860d8usGC0o&ab_channel=JamstackTV

t

thdxr

11/24/2021, 5:43 PM
I had a quick chat with Ryan about the direction they're going in
it's pretty exciting
Think we definitely will should be supporting a remix construct
b

Ben Kraus

11/25/2021, 8:17 AM
I've been playing with remix for months now, was a supporter back when it was paid. So great! Would love a construct for deploying it, I am deploying it via Terraform right now.
s

Sean Matheson

11/25/2021, 9:11 AM
What was their play for supporters when they went open source btw?
t

thdxr

11/25/2021, 1:14 PM
@Ben Kraus what is your architecture for deploying it?
b

Ben Kraus

11/25/2021, 3:10 PM
Well, take your pick and I've tried it! Originally had it deployed on Lambda@Edge and Cloudfront. I might have done something wrong but I kept getting 503 errors due to it trying to modify a header that wasn't supported through Lambda@Edge. So, currently it's deployed on plain old Lambda with an HTTP API in front of it. I also have a branch that works that deploys it onto App Runner via Docker.
t

thdxr

11/25/2021, 3:22 PM
gotcha that's helpful - I was hoping lambda@edge could work since remix is all about speed
b

Ben Kraus

11/25/2021, 3:29 PM
yeah, me too. I might have been doing something wrong, but I wasted days on it and just had to get it fixed
also the lack of environment variable support was really annoying - needed to inject cookie signing secrets and that was difficult
ended up just using SSM
FWIW, both the Lambda and the Lambda@Edge deployment is using Remix's express adapter with this package: @vendia/serverless-express
s

Sean Matheson

11/25/2021, 3:34 PM
what does the architect integration/implementation do?
straight up lambda?
great insights @Ben Kraus - ty
b

Ben Kraus

11/25/2021, 3:37 PM
however, I think this adapter may have been part of the problem with the header stuff - I don't think it allowlisted the headers appropriately, and I had to fork it to add more headers support for cookies
the architect stuff is plain lambda w/ APIGateway v2
honestly - I think we may end up going the App Runner way in the end. Someone mentioned this in the Remix discord, but they deployed it on GCP Cloud Run (which I love). Cloud Run has true scale to zero which is nice, and I hope App Runner gets that. Makes it cheaper for playing around w/ side projects. But the big benefit of something like App Runner is that it's a bigger always-on machine that can handle a lot of simultaneous requests. Plus, with how Remix does nested routing, it'll invoke a loader for each nested route, which could mean that it fires of
n
lambdas for however deep you are
less latency with a host like App Runner - and perhaps that's why Kent Dodds and others love Fly.io so much - it's kinda like App Runner in that sense but also easy to deploy worldwide, close to their users