derw-lang / server

A server for Derw
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Lambdas #1

Open joanllenas opened 2 years ago

joanllenas commented 2 years ago

Hi there! In your latest newsletter, you mention

Long term, it might be best to just provide a wrapper around Express rather than rewriting a server myself

Would you consider something less stateful? In particular, I'm thinking about supporting the lambda function use case where Express is not a good fit.

For instance, next-connect was created as an alternative to Express to support a wide range of popular middlewares in platforms such Vercel, where everything runs on lambdas.

Cheers!

eeue56 commented 2 years ago

Hi!

Definitely something less stateful makes sense. There needs to be a good way of handling IO like databases, file handling, etc. But otherwise the less state that can be kept in the core loop, the better. So yeah, lambdas make a ton of sense