News for hackers. Stuff that matters.
Re:AWS Lambda adds supports for .NET 6 by ejb999 on Sunday February 27, 2022 @05:41PM (#30493510)
My favorite language is C#, and has been for years - also am a big user of AWS in almost all my projects - and even though I know C# much better than python or node, I still choose node or python for my lambda functions when I write them. C# I stick with to run EC2 instances, typically as windows services where it serves me well.

But C# support for lambda always seem like the poor step child for AWS.

Re:AWS Lambda adds supports for .NET 6 by jcims on Sunday February 27, 2022 @06:16PM (#30493853)
Is it because of the deployment overhead or something else?

I've inherited a pretty big C# project at work and we've just started porting it from Framework to Core. Definitely feels like there are some opportunities for serverless in there.

Re:AWS Lambda adds supports for .NET 6 by to11mtm on Monday February 28, 2022 @09:08AM (#30499924)
> Is it because of the deployment overhead or something else?

In my experience, two things. Smaller is the JIT overhead. Bigger, is the haphazardishness of the other AWS Libraries for .NET; there's sometimes 'edge cases' where if running in a lambda, you have to do something special, set a special flag, etc. And often the solution is buried in a SO post or closed github issue.

Re:AWS Lambda adds supports for .NET 6 by DeWilde on Monday February 28, 2022 @02:34AM (#30497325)
Have you researched into .NET Core Function Apps?
Re:AWS Lambda adds supports for .NET 6 by RedWarrior on Monday February 28, 2022 @02:37AM (#30497352)
Which hurdles are you facing when transitioning from framework to core?
Re:AWS Lambda adds supports for .NET 6 by andrew_ on Sunday February 27, 2022 @11:12PM (#30496340)
As much as I love Node and Node on Lambda, AWS's unwillingness to stick to any kind of a predictable timetable, or at least communicate, for new LTS stable versions of Node has me bemoaning the platform every time a new even-numbered release comes out.
Re:AWS Lambda adds supports for .NET 6 by PetahNZ on Sunday February 27, 2022 @07:53PM (#30494741)
How about php then, a language that seems so suited to the lambda runtime model, but then only supported through custom docker runners.
Re:AWS Lambda adds supports for .NET 6 by CSSer on Sunday February 27, 2022 @08:14PM (#30494916)
Just out of curiosity, why do you feel that php is well suited for the model?
Re:AWS Lambda adds supports for .NET 6 by PetahNZ on Sunday February 27, 2022 @09:43PM (#30495718)
Yea as others have said, it's a shared nothing request model, but also single threaded, with built in memory and time limits, basically exactly how lambda runs (you can of course share memory, and multithread if you want to but its pretty uncommon practice in php).
Re:AWS Lambda adds supports for .NET 6 by dehrmann on Monday February 28, 2022 @12:41AM (#30496799)
The might be a nit, but this is more a limitation of how PHP has been used historically than the language itself.
Re:AWS Lambda adds supports for .NET 6 by withinboredom on Monday February 28, 2022 @04:25PM (#30505341)
I don't really see it as a "limitation" as it really makes grokking the code much easier than other languages. Probably >95% of libraries out there make this assumption as well, so its not just "how it is used" but also the culture and existing code that make this assumption.
Re:AWS Lambda adds supports for .NET 6 by RedWarrior on Monday February 28, 2022 @02:39AM (#30497359)
That's an interesting way to put it
Re:AWS Lambda adds supports for .NET 6 by jolux on Sunday February 27, 2022 @08:27PM (#30495038)
Probably the per-request nature of it when writing web apps.
Re:AWS Lambda adds supports for .NET 6 by withinboredom on Sunday February 27, 2022 @08:48PM (#30495260)
It’s literally one execution per request (see php-fpm). It’s stateless-shared-nothing runtime by default.
Re:AWS Lambda adds supports for .NET 6 by withinboredom on Sunday February 27, 2022 @08:53PM (#30495297)
What’s old is new again. It’s like, hey, let’s go back to the CGI model and reinvent it. Never mind there are still languages using it! Forget them! /s