News for hackers. Stuff that matters.
Re:TyX: Serverless Back-End Framework in TypeScript for Lambda by openbasic on Monday February 04, 2019 @11:28AM (#19077625)
Why would you do a multi-route API inside a Lambda? Doesn't that defeat the purpose of the Lambda itself?
Re:TyX: Serverless Back-End Framework in TypeScript for Lambda by timdev2 on Monday February 04, 2019 @02:04PM (#19079513)
It's not an awful way to do things, provided your app can run comfortably in a lambda. You get dev ergonomics (run locally like a traditional app), and you avoid cold-starts for infrequently-invoked endpoints.

You still get all the "serverless" benefits of FaaS, but don't need to architect absolutely everything around that paradigm. If in the future you want to move to running the thing on instances, you can do so pretty trivially.

Re:TyX: Serverless Back-End Framework in TypeScript for Lambda by ljm on Monday February 04, 2019 @11:38AM (#19077701)
That (or the command pattern) is quite useful when you’re building chat bots and similar things. So it might make sense if the API has a small surface area.

Not sure I would use it for a full blown backend though. That seems unwise.