Library topic

Architecture

Design patterns, domain modelling and code quality. 36 links, all featured in The .NET Insider.

50 practical improvements for projects staying on .NET 10

Mukesh Murugan · codewithmukesh.comIssue 37

Works well as a code-review companion: follow a list endpoint from HTTP to SQL and check that it passes the cancellation token, selects only the columns in the response and paginates the result. Also covers startup validation for configuration, consistent API errors with ProblemDetails and named EF Core query filters, most small enough for the next pull request.

Do union types replace the Result pattern?

Milan Jovanović · milanjovanovic.techIssue 36

Uses a booking example to compare a Result built as a union of T and Error with giving each failure its own type. A single Error type keeps the familiar shape but leaves individual failure codes outside the compiler's exhaustiveness checks. CS8509 is normally a warning, so teams that want missing switch cases to fail the build need to configure that.

Outbox processing in Postgres: workers or the WAL?

Milan Jovanović · milanjovanovic.techIssue 34

Compares concurrent polling workers, LISTEN/NOTIFY and reading the Postgres write-ahead log through logical replication, publishing outbox messages to RabbitMQ and measuring latency, throughput and crash recovery. The WAL reader lowers latency in his tests but adds replication-slot management and more duplicate deliveries after a hard kill, so both approaches need idempotent consumers. The WAL implementation is a prototype with failover untested.

Links go to the original articles. Short descriptions are dotnetdevs.io commentary, not the authors' words.