Featured image of post What's New in ASP.NET Core 7

What's New in ASP.NET Core 7

Casual Dive into the Latest Features

Servers and Runtime: Speed and Control, Baby!

  • Rate Limiting: Ever had that one friend who just won’t stop texting?

Now you can set boundaries—at least with your server.

Limit request rates with flexible endpoint configurations and policies.

No more server overwhelm! Learn more

  • Output Caching: Remember that time you memorized all the answers for trivia night?

This is like that but for your server responses.

Cache ’em and serve ’em up hot and fast. Learn more

  • Request Decompression: Got incoming requests all zipped up?

No worries.

ASP.NET Core 7 can now handle compressed content straight outta the box. Learn more

  • HTTP/3 Support: Faster, more reliable connections?

Yes, please!

Say hello to built-in HTTP/3 support, riding on the shiny new QUIC protocol. Learn more

  • WebSockets over HTTP/2: WebSockets are cool.

HTTP/2 is cool.

Together?

Super cool.

Now you can run WebSockets over HTTP/2 connections. Learn more

  • WebTransport (Experimental): Think of it as WebSockets’ cooler cousin.

Create streams and datagrams over HTTP/3.

It’s experimental, so tread lightly! Learn more

Minimal APIs: Less Code, More Power

  • Endpoint Filters: Ever wish you could run some code before or after your route handlers without the hassle?

Now you can with endpoint filters.

It’s like having a bouncer for your endpoints. Learn more

  • Typed Results: Strongly typed results in minimal APIs?

You betcha!

Keep things neat and type-safe. Learn more

  • Route Groups: Organize your endpoints like a pro with route groups.

Group ’em up with a common prefix and keep your codebase tidy. Learn more

gRPC: Now with Extra JSON Flavor

  • JSON Transcoding: Expand your gRPC services’ horizons by exposing them as JSON-based APIs.

It’s like giving them a second language. Learn more

  • OpenAPI with JSON Transcoding (Experimental): Generate OpenAPI specs for your gRPC JSON transcoded services.

It’s experimental, so handle with care! Learn more

  • gRPC Health Checks: Keep an eye on your gRPC server apps’ health with built-in health checks.

Because nobody likes unexpected downtime. Learn more

  • gRPC Client AddCallCredentials: Need to send authorized requests?

Now your gRPC clients can use bearer tokens with ease. Learn more

SignalR: Better Communication, Happier Apps

  • Client Results: Ever wanted your clients to send results back to the server in response to server requests?

Now they can!

It’s like having a two-way street for your data. Learn more

MVC: Nullable Awesomeness

  • Nullable View and Page Models: Embrace the null!

Now your view and page models support nullable reference types, making null state checking a breeze. Learn more

Blazor: Web Development, Evolved

  • Custom Elements: Build standard HTML custom elements with Blazor and integrate them into any JavaScript-based app.

It’s like having your cake and eating it too. Learn more

  • Handle Location Changing Events: Intercept location changes to create custom navigation experiences.

Because who doesn’t like a personalized touch? Learn more

  • Bind After/Get/Set Modifiers: Run async logic after data binding and control how data binding gets and sets data.

More control, less hassle. Learn more

Performance Improvements: Faster Than Ever

  • HTTP/2 Performance Boosts: Kestrel’s been hitting the gym.

Expect reduced CPU usage and higher throughput for HTTP/2 requests. Learn more

  • gRPC JSON Transcoding Performance: Serialize those messages faster and with less memory.

Your app just got a turbo boost. Learn more

Get Started Today!

Ready to dive in?

Grab the .NET 7 SDK and start exploring these features.

Your code will thank you.

Happy coding! 🚀


Key Ideas Recap:

FeatureDescription
Rate LimitingControl the rate of incoming requests to prevent overload.
Output CachingCache responses to serve repeated requests more efficiently.
Request DecompressionAutomatically handle compressed incoming requests.
HTTP/3 SupportLeverage the latest HTTP protocol for faster, more reliable connections.