Sossenbinder
Sossenbinder
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
That could be an ideal place to solve logging without being invasive in every other part of your codebase
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
What I'm not sure about yet is where you'd ideally capture this - I'd generally question what cqrs / mediatr solves in your case, but assuming it's there and established, does everything pass through that? In that case, does your mediatr-like construct offer behaviours or pipeline middlewares?
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
Building a logging sink yourself is quite a bit of work, especially in a high throughput scenario, due to the need for buffering / flushing and all sorts of potential bugs involved with that
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
The entire storage side of things I'd ideally solve by using something battle tested like Loki or Seq for logging sinks
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
For capturing contexts, you can use logging scopes and / or something like https://github.com/serilog/serilog/wiki/Enrichment when using Serilog
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
I'd definitely use ILogger in general
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
Is this like some kind of uni / homework exercise?
14 replies
CC#
Created by capslo on 4/28/2025 in #help
Logging System Design Advice for .NET CQRS Modular Monolith
That's a loaded question
14 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
I just use env vars, I don't like the implicit conventions for the most part
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
To be fair I never really used the connection strings config option for azure web apps
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
This states the connection strings are accessible with a specific prefix at runtime
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
In a default Linux app service or a custom Linux container, any nested JSON key structure in the app setting name needs to be configured differently for the key name. Replace any colon (:) with a double underscore (). Replace any period (.) with a single underscore (_). For example, ApplicationInsights:InstrumentationKey needs to be configured in App Service as ApplicationInsightsInstrumentationKey for the key name.
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
To quote from the docs:
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
There's a common issue with separators
20 replies
CC#
Created by Salman on 4/9/2025 in #help
✅ How to setup environment variables in Azure Web App
How did you define the env variables?
20 replies
CC#
Created by Clean Cock on 4/7/2025 in #help
✅ EF Core migrations with Docker
You could also build a startup dependency chain and run an init container after your db container is up and running
22 replies
CC#
Created by Clean Cock on 4/7/2025 in #help
✅ EF Core migrations with Docker
Anything wrong with running migrations on startup? If you're on compose, you (probably) run only a single instance anyways, unless you use replicas
22 replies
CC#
Created by thomas on 4/3/2025 in #help
Unit Testing in Minimal Apis
So this seems good to me
7 replies
CC#
Created by thomas on 4/3/2025 in #help
Unit Testing in Minimal Apis
If I want to unit test something I am looking for complicated logic and try to refactor it out into ideally pure functions which do not have dependencies on databases or similar
7 replies