Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@paulmdevenneyАй бұрын
dude - your timing is impeccable. I was just tidying up my version of the same thing. Took some notes, made some refinements. Thanks as always.
@MilanJovanovicTechАй бұрын
Nice, happy to help!
@enricoroselino7557Ай бұрын
if girlfriend also have problem details, men doesnt need to think hard
@MilanJovanovicTechАй бұрын
You're screwed either way 😅
@ghoulking715Ай бұрын
we are waiting for the continuation of the series about authorization via keycloak and setting up user roles and attributes 😊
@MilanJovanovicTechАй бұрын
Working on it
@fakhrulhilalАй бұрын
I've been using Seq for logging for years, but I never realize we can use it for telemetry. Nice video as always.
@MilanJovanovicTechАй бұрын
Tracing is a new feature
@unknown.artist.track3Ай бұрын
you are so cool explainer. I'm ready to listen you all the time long)
@MilanJovanovicTechАй бұрын
Thank you!
@JuanOGАй бұрын
How about using the hellang problem details package which seems to do this all well enough.
@MilanJovanovicTechАй бұрын
Prefer not to use 3rd party packages for simple things
@androidsaviorАй бұрын
Where request it and trace it are stored in the server ? Where are the logs
@MilanJovanovicTechАй бұрын
They're managed during the HTTP request (Activity), and they can be part of structured logs. Typically you will export this to a third-party monitoring tool
@10TottiАй бұрын
Best tutorial! But Service ProblemDetails is add with .net 9 ?
@MilanJovanovicTechАй бұрын
No, it's there from way before
@luisnataren4149Ай бұрын
Hey Milan, do you know when the REST API course will be ready?
@MilanJovanovicTechАй бұрын
January
@ivansusic562Ай бұрын
A kinda offtopic, but - I faced issue with postgres, ef migrations and docker compose - api was trying to do a migration on startup before postgres was ready. Do you have any suggestions here? Btw., great video. I just bought one of your courses - looking forward.
@JollyGiant19Ай бұрын
Don’t run migrations on start up, run them outside the application. EF Core gives you a few ways to do that: script or binary.
@MilanJovanovicTechАй бұрын
Use "depends_on" to tell the API container to wait for the DB
@ivansusic562Ай бұрын
@@MilanJovanovicTech I think I tried it - but it does not meen that postgres is ready if its container is up and running.
@dinulilea4184Ай бұрын
Had the same issue with sqlx and postgres (rust project) where it tried to run queries at compile time before the posgres db was ready. Turns out there was an SQLX_OFFLINE env var that could be configured for docker compose. Maybe there is something similar with EF Cofe
@Crisicus_01Ай бұрын
@@ivansusic562You can add health checks to see if the container is actually ready
@sotsch9280Ай бұрын
How do you handle Results using the Result pattern? First naive thoughts would be simply using a middleware and checking for failed results?... I mainly use Results instead of throwing, except for Domain objects like ValueObjects, they throw if validation fails
@MilanJovanovicTechАй бұрын
if (Failure) - > return Result converted to Problem Details
@sotsch9280Ай бұрын
@MilanJovanovicTech sorry, I meant not the mapping part, i meant how to handle that globally like with global exception handling. I thought you must have encountered this problem. Or am I missthinking this?
@MahbuburRahman-uc7npАй бұрын
How are you showing inline values during debug in Visual Studio?
@MilanJovanovicTechАй бұрын
ReSharper
@jeancarlosreyesencarnacionАй бұрын
I know it's gonna be good. 🙌🙌
@MilanJovanovicTechАй бұрын
Was it?
@jeancarlosreyesencarnacionАй бұрын
@MilanJovanovicTech Yes, it was. 🤙
@emanuelcordovamontiel1017Ай бұрын
Thank a lots, Milan!. Where can I found the source code of this solution?
@MilanJovanovicTechАй бұрын
Here: www.patreon.com/milanjovanovic
@cuserroroАй бұрын
I realy like!!
@MilanJovanovicTechАй бұрын
Thanks
@Tldr205Ай бұрын
How are you gonna handling the difference between public and internal api? I don't think we won't to expose this much data in our public? Just modify the problem details to include less?
@MilanJovanovicTechАй бұрын
Yep, obfuscate the response
@lolyasuo1235Ай бұрын
How something that is fully opinionated can be wrong? Both approaches are just fine. I am sorry to say this, but I miss old era where developers were thinking about a solution. Today in many cases we are simply following guidelines (use ProblemDetails, use Result etc).