Fluent Validataion
2. Add dependency injection for that assembly
https://docs.fluentvalidation.net/en/latest/di.html#automatic-registration
AutoMapper
Health Check
https://www.telerik.com/blogs/checking-health-aspnet-core-apis
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-7.0
https://medium.com/aspnetrun/microservices-monitoring-with-health-checks-using-watchdog-6b16fdae0349
How To Read configuration
builder.RegisterConfiguration<HealthCheckOptions>("{Appsetting.json.TagName}");
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-7.0
https://medium.com/@dozieogbo/a-better-way-to-inject-appsettings-in-asp-net-core-96be36ffa22b
Serilog
https://code-maze.com/structured-logging-in-asp-net-core-with-serilog/
https://medium.com/aspnetrun/microservices-observability-with-distributed-logging-using-elasticsearch-and-kibana-79df919997d2
Logger
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0#bilp
Database
services.AddDbContext
Entity Configuration
2. Add entity configuration for student modal class
a. derived student entity configuration class from EntityTypeConfiguration ()
EntityTypeConfiguration is defined in System.Data.Entity.ModelConfiguration
b. public class StudentEntityConfiguration: EntityTypeConfiguration<Student>
3. In DBContex class, OnModelCreating function need to add entity configuration
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Configurations.Add(new StudentEntityConfiguration());
}
https://www.learnentityframeworkcore.com/configuration/fluent-api
Unit of work DI Register
https://www.crispy-engineering.com/p/registering-all-types-as-generic-interfaces-in-assembly-in-dotnet-core
Mediator and RabbitMQ
Mediator has 3 method, we can call this method with object derived from IRequest and INotification or using mapper construct object(IRequest/INotification) with plain object
2. Send (Request)
3. Send (Request, Response)
IRequest
INotification
Need to handle the eventhandler IRequest and INotification handler
public sealed class MsgEventHandler<T> : IAsyncNotificationHandler<PublishCommand<T>>, IAsyncRequestHandler<SendCommand<T>>
where T : class
https://www.programmingwithwolfgang.com/rabbitmq-in-an-asp-net-core-3-1-microservice/
https://kaushikroychowdhury.com/blog/microservice-communication-in-asp-net-5-with-rabbitmq/
https://markgossa.com/2022/06/masstransit-and-mediatr.html
https://masstransit-project.com/getting-started/
Swagger
Refit
https://codetosolutions.com/blog/10/use-refit-library-to-call-rest-api-endpoint-in-c%23-and-asp.net-core
hangfire
Redis
https://learn.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-dotnet-core-quickstart
https://learn.microsoft.com/en-us/aspnet/core/performance/caching/response?view=aspnetcore-7.0
Cors
https://geeksarray.com/blog/how-to-setup-cors-policies-in-aspnet-core-web-api
MassTransit
https://masstransit-project.com/getting-started/
Statemachine
https://github.com/dotnet-state-machine/stateless
Polly
https://medium.com/@niteshsinghal85/retry-with-polly-in-net-89ae44be241d
https://www.webdevtutor.net/blog/build-resilient-http-clients-in-c-sharp-on-dotnet-with-polly
https://medium.com/@therealjordanlee/retry-circuit-breaker-patterns-in-c-with-polly-9aa24c5fe23a
https://medium.com/dhl-supply-chain-brazil/building-resilient-applications-with-circuit-breaker-pattern-184b98f4482c
https://medium.com/aspnetrun/microservices-resilience-and-fault-tolerance-with-applying-retry-and-circuit-breaker-patterns-c32e518db990
React Redux Saga
https://medium.com/ascentic-technology/introduction-to-redux-saga-374cf397a72a
React security-best-practices
https://aglowiditsolutions.com/blog/reactjs-security-best-practices/
Java script
https://levelup.gitconnected.com/7-interview-questions-every-senior-react-developer-should-know-d85730fb04d5
https://javascript.plainenglish.io/5-react-design-patterns-you-should-know-629030e2e2c7
https://javascript.plainenglish.io/as-a-front-end-engineer-10-javascript-tricks-and-tips-you-should-know-about-6f4df0082407
No comments:
Post a Comment