News for hackers. Stuff that matters.
Re:General Availability of .NET Aspire: Simplifying .NET Clo... by noworriesnate on Tuesday May 21, 2024 @01:25PM (#40431286)
Infrastructure as code in C# is already supported by Pulumi[1]. However, developing anything significant requires a lot of copying values from one part of the stack to another, lots of magic strings and lots of combinations of parameters that don't work. Plus sometimes you choose a combination of parameters that works until your cloud provider upgrades Kubernetes or whatever and now that specific version of k8s isn't supported with the parameters you chose.

You have no control over your cloud provider's updates, there's TONS of trial-and-error in developing the stack, and often error messages are extremely unhelpful. Your cloud provider's UI is so much easier on the initial setup vs. infrastructure as code.

Then there's TestContainer[2], which is infrastructure as code but only for tests. The syntax is a lot more natural, but it only runs Docker containers which are automatically destroyed when the tests are complete.

It looks like .NET Aspire is the best of both worlds: a simple syntax that deploys local resources (replacing docker-compose.yml dev files) AND it also supports deploying cloud resources. Which is really great! Only downside is you're tied into Azure.

[1] https://www.pulumi.com/docs/languages-sdks/dotnet/

[2] https://testcontainers.com/

Re:General Availability of .NET Aspire: Simplifying .NET Clo... by zihotki on Tuesday May 21, 2024 @04:04PM (#40433178)
Pulumni is a great example of a leaky abstraction. Even yaml is better in some regards.
Re:General Availability of .NET Aspire: Simplifying .NET Clo... by sbelskie on Tuesday May 21, 2024 @05:35PM (#40434281)
I don’t see anything about Aspire being Azure only. The docs specifically call out that it’s cloud agnostic, though Azure specific support appears to be a first class citizen.