Developer! Developer! Developer! East Anglia

DDD East Anglia

Cambridge, UK
Saturday 22 September 2018

Let's talk HTTP

In the world of microservices (yes, there's that buzzword again!) and distributed systems we often find ourselves communicating over HTTP. What seems like a simple requirement can quickly become complicated! Networks aren't reliable and services go offline. Dealing with those inevitable facts and avoiding a cascading failure can be quite a challenge. In this talk, Steve will explore how we can build .NET Core applications that make HTTP requests and rely on downstream services, whilst remaining resilient and fault tolerant.

This session will focus on some of the improvements which have been released in .NET Core and ASP.NET Core 2.1, such as the HttpClientFactory and the new more performant socket based handler. Steve will identify some HTTP anti-patterns and common mistakes and demonstrate how we can migrate existing code to use the new HttpClientFactory to work more correctly with HttpClient instances.

Next, Steve will demonstrate Polly; a fantastic resilience and transient-fault-handling library which can be used to make your applications less prone to failure. Now integrated with the Microsoft HttpClientFactory; wrapping your HTTP calls in retries, timeouts and circuit-breakers has never been easier!

If you're building .NET services which make HTTP calls, then this talk is for you!