aws-lambda-dotnet icon indicating copy to clipboard operation
aws-lambda-dotnet copied to clipboard

.NET Core 3.1 (LTS) has been released

Open raRaRa opened this issue 7 years ago • 130 comments

.NET Core 3.1 (LTS) has been released - https://devblogs.microsoft.com/dotnet/announcing-net-core-3-1/

Any plans to support it any time soon? Thanks.

raRaRa avatar Dec 03 '19 19:12 raRaRa

Its an LTS and will be supported. It will just take sometime to get .NET Core 3.1 ready for Lambda and deployed out.

normj avatar Dec 03 '19 20:12 normj

Its an LTS and will be supported. It will just take a sometime to get .NET Core 3.1 ready for Lambda and deployed out.

If there's anything I can do to help out, please let me know.

hounddog22030 avatar Dec 04 '19 00:12 hounddog22030

Will there be a speedup for the cold start time?

.NET Core 3.1 has some features like AOT compile

  • PublishReadyToRun
  • PublishTrimmed

ckuetbach avatar Dec 04 '19 09:12 ckuetbach

@normj should people subscribe to this issue for updates or is there another .NET Core 3.1 issue which we should follow for progress?

beeradmoore avatar Dec 04 '19 22:12 beeradmoore

We can use this issue to track updates. Unfortunately I probably won't be able to provide much of status updates till it is out.

normj avatar Dec 08 '19 00:12 normj

Will there be a speedup for the cold start time?

.NET Core 3.1 has some features like AOT compile

  • PublishReadyToRun
  • PublishTrimmed

In case the answer is yes for the comment, will it be possible to run and test the 'compiled lambda' from a local environment? I would eagerly set a linux environment for it :)

daseintheworld avatar Dec 12 '19 06:12 daseintheworld

Any update here?

rati-dzidziguri avatar Dec 13 '19 06:12 rati-dzidziguri

@rati-dzidziguri

As above from @normj

We can use this issue to track updates. Unfortunately I probably won't be able to provide much of status updates till it is out.

beeradmoore avatar Dec 13 '19 06:12 beeradmoore

@beeradmoore My question was about ETA. That would be helpful to know ETA for this as we could prepare accordingly.

rati-dzidziguri avatar Dec 13 '19 07:12 rati-dzidziguri

@rati-dzidziguri Amazon seldom discloses their ETA when it comes to releases.

Kralizek avatar Dec 13 '19 09:12 Kralizek

@rati-dzidziguri I understand and appreciate you wanting an ETA so you can plan accordingly. In reality it is for that reason we generally don't give an ETA because we try really hard to not make promises that we are not 100% sure we can keep. I would hate to give you an ETA and you make your roadmap based on that and we then me miss that ETA you expected throwing all of your plans into disarray.

For now if you really are needing .NET Core 3.1 features then i suggest using .NET Core 3.1 as a Lambda Custom Runtime which is explained here (except change references from .NET Core 3.0 to .NET Core 3.1). Then when the native .NET Core 3.1 support comes along you will have a very simple migration of changing a few settings on your Lambda function.

normj avatar Dec 13 '19 17:12 normj

@normj One reason made me decide that I can't use the custom runtime feature with the 'LambdaEntry' class is the 'monolithic architectural' aspect of the implementation approach. Every API request comes through the only one entry lambda and 'distributed' to controllers of the ASP .net project is what the custom runtime structure intended, which is definitely convenient but includes structural downside for cases like I want. I want every command/query request to become lambda each. Since then I can get a scalabillity on managing deployment packages that I can split some functions and manage codes anytime I want. This is why I am waiting for the official runtime to be supported that I can construct a bundle of 'single purposed lambdas' using SAM written in a template with 'runtime : .netcore 3.1' config.

Please give me an advice if I am going wrong :)

daseintheworld avatar Dec 15 '19 06:12 daseintheworld

You can definitely achieve multiple lambda functions from one code base using the Lambda Bootstrapper and the custom runtime feature.

I have a suite of 16 lambdas that are deployed from one application, rather than a “monolith”.

This is achieved by using the _handler environment variable to pick the method to use at runtime, rather than the hard-coded one-to-one mapping shown in the blog post’s sample code.

I think of it as a console app which receives a switch that tells it what action to “become” when started up.

martincostello avatar Dec 15 '19 07:12 martincostello

@martincostello Thank you for the kind suggestion! I can figure out what your case may look like. You might have placed the switch logic in the Main or Startup class that it can be determined it's functionality on the first stage of the runtime. And it can solve the 'only-monolithic' issue, of course. Very clever approach :)

But still, there is one (if not many) consideration I have to think of, especially when I imagine working as a team. Using custom runtime and determining the 'functional identity' on startup will get rid of the possibility of SAM. For easy example for us, API gateway cannot be defined while deploying a lambda, which means we have to manually generate one for it. I know I'm exaggerating here because we can make something SAM-like configuration using the bootstrap script as aws tutorial explained. But it won't completely satisfy us since it is using a linux script which means (1) it can be embarrassing for new-comers, and sometimes it will become a learning curve. (2) it will discard the benefit of the serverless template's expressiveness because it is literally a script, not a document.

I think the serverless template works as a semi-document of what the server looks like and how it works, which will not only be shared within a development team but even with some insightful non-technicians. and SAM is a well-defined concept that in the near future one's abstract representations of an application will make it possible to be reused by another team using totally different languages and platforms. These aspects still undeniably motivate me to stick to use 'the serverless template' feature.

daseintheworld avatar Dec 15 '19 14:12 daseintheworld

Some nice dates ahead to release this, 25 dec, 1 january come to mind ;)

CumpsD avatar Dec 20 '19 12:12 CumpsD

Happy holidays all, I wish I could give you all .NET Core 3.1 Lambda runtime for Christmas but I think 2020 is going to be an exciting your for .NET and AWS.

normj avatar Dec 22 '19 05:12 normj

Happy holidays all, I wish I could give you all .NET Core 3.1 Lambda runtime for Christmas but I think 2020 is going to be an exciting your for .NET and AWS.

No worries, enjoy the holidays! Can't wait to see what you have for us in 2020! :)

raRaRa avatar Dec 22 '19 19:12 raRaRa

waiting for lambda native support on .NetCore3.1

neetika123 avatar Jan 07 '20 15:01 neetika123

There's a disk size limit to lambda functions. I think it's 250 megs and when using the custom runtime, we have to send all of asp.net core assemblies along with our app. I reached that limit when AWS was unzipping my zip package. I had to do some cleanup to reduce the space used by my app. When native support comes out, we don't have to package our app with .core's assemblies.

abukres avatar Jan 23 '20 01:01 abukres

Is there any estimate on when we can expect this to be released?

We are waiting to upgrade to .Net core 3.1 until there is native support for it.

erikdac avatar Jan 23 '20 09:01 erikdac