.NET 🚀🔥 : New Features of .NET 8 Unveiled 🔥🔥🔥

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
last week Microsoft release 8 and this has been one of the most anticipated releases innot history because of the speed that actually brings to our application it contained a lot of new features in order for us to make our application Cloud native ready we're going to be going through some of the release notes that Microsoft had released and then once we have done that we're going to be going through a step-by-step guide of how actually we can upgrade ourn application fromn 7 toot 8 and we're going to be seeing why do we want to use that as well regard of how we can actually get net 8 available on our machine machine so let's get started so basically this is the main blog post that has been released along with nut conference that has happened last week and we can see here that the main iteration or the main focus that actually um focusing within nut 8 is going to be performance Cloud nativeness as well doot Maui Blazer as well as Ai and the main item here we're going to speak about is performance and not not 8 handle performance in so many different ways and basically it it actually makes sure our application is running way more faster than any current JavaScript framework as we can see here these are the different items that uh net8 provide from observability to resiliency health check and testing etc etc but this is the part that I'm really excited about so we can see here for any Json performance we can see we got an 18% jump and this 18% jump might not sound a lot but if we take a look at this 18% jump it shows us here that from Net 7 we were able to do up to 800,000 call uh per second up to almost Now 1 million call per second and this 1 million call per second is basically like mindblowing uh the amount of performance that we that we had to do in order for us to jump almost like 200,000 requests per second and this is going to be the main items or main reason or a lot of people who might want to upgrade from net 8 to sorry from Net 7 to net 8 in order for them to get this benefit of performance and this is has been mainly due to the dynamic profile guided optimization which is going to be the dynamic PG and this PGG allows basically to have a lot of performance enhancements within our application performance another items that has also been introduced on top of that other than performance which is net Aspire and net Aspire is basically a game changer so right now if we're trying to actually build an application what do we need to do we need to basically build our services build our connectivity create uh our own uh retry policies and our observability uh solution create build everything together and bundle it everything together go to the cloud configure the cloud to take all of that make sure we have some kind of a deployment process that actually support all of this etc etc so we can see here in order for us to make our application fully uh cloud ready and fully Cloud native there's a lot of manual work that we need to do and a lot of processes that we need to actually adjust to in order for our application to be uh compliant with that but withot 8 we're going to have doot aspire andot Aspire basically take all of this heavy lifting from us and actually do it itself the main power that do not Aspire provide is everything going to be out of the box so basically it's like a service or a template that we can actually utilize within net currently in preview it's going to have its main full release in spring so it's really good for us from now to start experimenting with and preparing our code once it has a full release in Spring we can actually directly utilize it when I go down we can see here that it's currently in preview today and if we go to this uh GitHub link we're going to be able to see it we're going to be able to see all of the different implementation for it it's a really fascinating one I highly highly suggest that you can actually download it and actually experiment with it I'm going to be creating a video about it in more details but for now we're just going to be glancing over it so basically here we can see that net uh with net Aspire we're going to have a lot of new enhancements specifically when it comes to make sure our application are Cloud native and ready then we can see that there is a lot of enhancement to Containers nut loves containers and basically all of the recent nut framework I think from nut 1.0 to 2.0 has been fully fully Docker and container compatible and the main uh the main introduction or new feature that has been introduced within this release it's going to be security aspect of our containers where we're going to actually able to have a 100 based image which is going to allow us to have a much more secure application the size is going to be much more smaller so our net container is going to be used in size that leads to faster deployment faster upload etc etc and it's going to be uh more productive because we're going to have a lot of different operating system that we can utilize the cross compilation is really going to be the main thing as well as we're going to be able finally to utilize azer authentication within our containers other than the containers there's going to be native iot and that's something that we have been asking for for a long time and if you don't know what aot mean is called ahead of time compilation so what that means is going to allows us to uh have a much more faster application at run time uh Native iot basically what it means it's going to actually compile our application in a way where we don't really have to rely on that jet compilation that's part of the nut for so long in order for our application to run so aot will basically uh have a lot of enhancement when it comes to saving memory a lot faster startup time and basically a lot of performance enhancements so as we can see here an application that's running onnut 8 native aot we can see first of all the size is much more smaller than a normal one we can see that the working set or the Bing memory is much more smaller we can see that the startup time goes from 142 34 millisecond and that's on Linux we can see the major Improvement on the other hand on Windows we can see the almost same Improvement where basically our publish size is like the fraction of what we had before our uh startup time is much more faster than before etc etc the only thing with uh Native iot currently is not fully supported on all of the net Services it's currently being targeted for minimal apis and grpc but full support is coming down the line so if you're already working with grpc and not uh minimal API that's something that you really need to implement if not it's something that might come down the road so again with the entire focus with what happening with EP AI net8 Embrace AI fully by actually embedding the AI within the actual framework itself there's a lot of enhancements when it comes to AI within net A8 ml.net has got a lot of major boost as well it make it much more easier to actually have some kind of a artificial in intelligence model inside our code in order for us to utilize it uh I'm going to make a specific video about Ai and nut 8 how those two work together the main benefit the main implementation I hope you're excited as I am about it and we're going to be basically going through it and uh the last two items that we want to speak about is going to be Blazer as well as doat Maui so the main benefit that Blazer got currently is currently when we want to build a full full stack application what do we have we have a HTML front end we have an API back end or a basic MVC etc etc in order for us to uh build um the full stack application uh but uh with this new. net8 release we got something different is we can actually choose a full stack application with a Blazer so our front end will be Blazer our back and will be an API and we can actually utilize all of this uh together so directly we're going to have a template that we can actually build this out of the box so that's going to be one of the highlights or basically one of the main feature in order for us to build directly a full um stack application directly from scrap the other thing is Blazer got a lot of major Improvement when it comes to speed these new performance it's going to give us up to 20 20% rendering we're going to be able to see also some uh rendering streaming so that's going to be really as well helpful when it comes to performance on top of that we're going to have a lot of new components like the display data for a quick grid the section out authentication and identity as well a lot of different enhancement to the Blazer we're going to be delving into BL in much more detail in future videos but now we're just giving over it it comes to actual features it's going to beut Maui and as we known Maui is a cross uh platform framework where we actually write once and we can actually run our application on different platforms so we can build an IOS and Android and a Windows application within a single source code and this is the power for the the power of NM we don't really have to reinvent the wheel every single time we want to develop for a new platform all we need to do is Target it and adjust our source code for that specific platform and within nut 8 we got a lot of new enhancements so we got full support of wiui within a single system with a single Source base we can actually write for wiui Mac Catalyst IOS and Android we're going to have a lot of performance uh enhancement so last year we got the full for version of Maui now we got a lot of more stability and performance enhancement with so that should be really exciting and on top of all of that and all what basically support all of this is going to be C 12 C 12 has a lot of new features and enhancement in order for us to make our life much more better from basic The Collection expression to default valuable for parameters and Lambda etc etc all of these are going to provide additional and much more needed enhancements to the uh not needed a lot more new enhancement to C C 12 in order for us to have a better experience with it and lastly we can see here a lot of enhancement for the visual studio family etc etc so now that we have covered all of this and why do we might want to upgrade and the new enhancement that have come with the net 8 now let's check the lifetime support or the main reason that we actually want to upgrade our not Net 7 um now rather than later to to get all of these features we're going to be exploring step by step how we can actually upgrade our application from 7 to 8 we're going to be discussing why do you want to upgrade and what's the main benefit of upgrading and we're going to be go throwing all of this in a step-by-step Journey based on an application that we have built previously so let's get started before we can actually check into the upgrade itself we want to actually understand why do we want to upgrade basically the main reason we want to upgrade is every NET Framework that currently exists has an end of life and currently we are on net 8 and net 8 is a long-term support as we can see here and long-term support means that it's going to last until uh few years from from now and as the name said the long-term support So as we can see usually it's 3 years and the underly support for theet 8 is going to be until November 10 2026 on the other hand the current uh version ofet which we're currently using is going to beet 7 and we can see that the end of life support for n 7 is going to be on May 14 2024 and it's always good when we have a uh shortterm support which is going to be the7 STS uh and we have the s version which is going to be theut 8 it's always to upgrade from a short-term support to a long-term support as we can see the last uh long-term support was not nut 6 which has been released in November 8 2021 is still supporting and will be still be supporting until November 12th 2024 so we can see here the main benefit of the long-term support that net will get by upgrading into the latest version and for this reason we're going to be upgrading our application fromn 7 to 8 in order for us to make sure first of all it's compliant now that we have this the second thing is in order what do we need to do is we need to actually getn 8 and in order for us to go to to getnet 8 just go to Google type download.net 8 and you're going to be able to see this version here and this page here you'll be able to see all of the different downloads the net a provide and basically what we're interested in is to download the SDK in order for us to be able to build application and based on your operating system you can choose whatever you want and I have already downloaded mine have installed it and now if I go back to my terminal and inside my terminal here I'm just going to put net let me zoom in a bit Das Dash version as you can see I'm on the latest version of theut application okay perfect so what are we going to be doing now first of all what I'm going to do is I'm going to open the application that I want to upgrade which is an application that we have built previously which is called the uh Formula 1 application and and here as we can see I'm going to open this up let's go to edit CS Pro we can see here is still running on Net 7 this is my main API this is my main class library for my data services again edit CS Pros we can see it's still running on Net 7 again if I go here edit for my entities we can see everything is running on. 7 and that should be fine for now but as we said we want to upgrade everything to net 8 and if I try to run now my application we can see it will not run because it's saying theut 7 framework is missing because I have already upgrated theut 8 which is great so now what I want to do is I want to make sure that my application is actually uh8 compatible so let's see how we can do that so in order for us to understand what do we need to do and what are the steps that we need to take in order for us to upgrade the best resource is currently the Microsoft website so this is what we're going to be following so I'm going to navigate to that website here and as you can see here in in order for us to upgrade to the latest version of the N we need to first of all upgrade our Target framework so that's what we're going to be doing so we're going to come here we're going to upgrade our Target framework to version 8 save this come here version 8 save and version 8 and save perfect so now that I have done this all I'm going to be doing I'm going to go to my terminal and I'm just going to putot build and now we can see it's actually building onnut 8 perfect we didn't get any errors okay perfect so now what I want to do I'm going to go to my application and I'm going to do the n build there and as we can see we got build succeeded on the latest version of net 8 which is exactly what I want so now if I write my application we can see it's running on Port 5,000 and it's running as it should perfect but now this is not what the last part that we need to do the last part that we need to do here is we can actually we need to upgrade our packages so I'm going to go to my n package I'm going to make this a bit bigger and as we can see here all of the packages that currently have an upgrade to net 8 we can see 8 is available so let's start first of all by upgrading our open AI uh open API sorry not open AI perfect now that has been updated let's update this one okay perfect so now I want to do is I want to choose the solution so I'm going to come here manage new get package we can see I have all of these here let's start with the tools upgrade oops I think there's an older structure of which one we need to be upgrading first let's start one by one I think this should be it yep so this one has been upgraded let's upgrade the other one design has been upgraded SQL light let's try this and the last one which is going to be the tools okay perfect now if I go to my entities I don't think I have any new get packages let's see no I don't have any new get packages here okay so now if I take a look at my CS Pro cancel let's put this down okay if I go to my CS Pro we can see everything has been applicated to net 8 and all of the main packages at least and here I can see that all of my data um and Entity framework libraries has been up also upated to net8 and that's exactly what I need so right now let us run this and see what do we get okay so now if I go to the bug I can see my application is running on Port 5,000 so let me open this up here I'm going to go look Local Host port five port oops Port 5,000 and I'm going to go this to this one and as we can see here I have my uh end points available for me and I'm going to do a simple get all drivers try it out I think we only have one driver execute we got the response and we can see I have one driver available if I take this ID try it out get it okay perfect we can see I got the driver so that mean that my AP is running smoothly everything is running as it should be and basically and my application is actually running perfectly in net 8 and this is how simple it was to upgrade my current application fromn 7 to n 8 it has been it took me literally a few minutes to do that just to make sure that all of my new get packages has been upgraded all of my different class libraries as well as my main API I hope this video was helpful please like share and subscribe if you did and thank you very much for watching any questions please make sure you put them in the comments down below
Info
Channel: Mohamad Lawand
Views: 4,410
Rating: undefined out of 5
Keywords: dotnet, dotnetconf, dotnet conference, dotnet8, .NET 8 Features, .NET 8 Updates, .NET 8 Performance, ASP.NET Core 8, .NET MAUI, Blazor WebAssembly, Entity Framework Core 8, C# 12, .NET AI Integration, Cloud-Native .NET Development, .NET 8 Enhancements, Microsoft Developer Tools, .NET Programming, Software Development Trends, Tech Update 2023, .NET Application Optimization, Cross-Platform Development .NET
Id: 2PE892d6tZE
Channel Id: undefined
Length: 18min 8sec (1088 seconds)
Published: Mon Nov 20 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.