Monthly Archives: November 2018

Trust the ASP.NET Core HTTPS development certificate on macOS

Installing the .NET Core SDK installs the ASP.NET Core HTTPS development certificate to the local user certificate store. The certificate has been installed, but it’s not trusted. To trust the certificate perform the one-time step to run the dotnet dev-certs tool: console dotnet dev-certs https –trust

Circuit Breaker Pattern

An implementation of the Circuit Breaker pattern prevents an application from attempting an operation that is likely to fail, acting much like the circuit breaker for the electrical system in a house The circuit breaker acts like a proxy for the application when invoking operations that may fail, particularly where the failure is long lasting.… Read More »

Retry Pattern

If your application experiences a short-lived, temporary (or transient) failure connecting to an external service, it should transparently retry the failed operation. The most common example of this type of transient failure is connecting to a database that is overloaded and responding to new connection requests by refusing the connection(A website retrying to connect with… Read More »

Some Useful Patterns for Web Sites and WebJobs

USEFUL FOR WEBSITES AND WEBJOBS ■ Static Content Hosting pattern ■ Cache-Aside pattern ■ Health Endpoint Monitoring pattern ■ Compensating Transaction pattern ■ Command and Query Responsibility Segregation pattern USEFUL FOR WEBJOBS ■ Competing Consumers pattern ■ Priority Queue pattern ■ Queue-Based Load Leveling pattern ■ Leader Election pattern ■ Scheduler Agent Supervisor pattern

Throttling Pattern

When a website returns a 503 Service Unavailable status to a client, it is typically informing the browser that it is overloaded. This is an example of throttling in action. The throttling pattern quickly responds to increased load by restricting the consumption of resources by an application instance, a tenant, or an entire service so… Read More »