40

Roundup #35: Startup Hooks, HttpMaster, 7+M req/sec, Pre-Building Services, Dock...

 5 years ago
source link: https://www.tuicool.com/articles/hit/rYjAjuz
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Here are the things that caught my eye this week in .NET.  I’d love to hear what you found most interesting this week.  Let me know in the comments or on Twitter.

Follow @codeopinion

[C#] Have some fun with .net core startup hooks

One feature of .net core 2.2 that didn’t catch my mind immediately is the startup hooks . Put simply, this is a way to register globally a method in an assembly that will be executed whenever a .net core application is started. This unlocks a whole range of scenarios, from injecting a profiler to tweaking a static context in a given environment.

Link: https://medium.com/@kevingosse/c-have-some-fun-with-net-core-startup-hooks-498b9ad001e1

HttpMaster 4.3

HttpMaster 4.3 is out with new features for creating projects from #OpenAPI definition (OpenAPI.​NET package developed & maintained by @darrel_miller is used for parsing OpenAPI docs).

You can download new version at https://t.co/o7gzVR489o #testing #HTTP #API #Dotnet #swagger pic.twitter.com/0kIb4tW9z1

— HttpMaster (@http_master) February 4, 2019

Link: https://www.httpmaster.net/download

ASP.NET Core: Saturating 10GbE at 7+ million request/s

Looking at the latest run from the TechEmpower Benchmarks continuous results ASP.NET 2.2 is the 3rd fastest webserver (0.046% off the top spot); able to respond to 7 Million HTTP request per second

Link: https://www.ageofascent.com/2019/02/04/asp-net-core-saturating-10gbe-at-7-million-requests-per-second/

Reducing initial request latency by pre-building services in a startup task in ASP.NET Core

This post follows on somewhat from my recent posts on running async startup tasks in ASP.NET Core. Rather than discuss a general approach to running startup tasks, this post discusses an example of a startup task that was suggested by  Ruben Bartelink . It describes an interesting way to try to reduce the latencies seen by apps when they’ve just started, by pre-building all the singletons registered with the DI container.

Link: https://andrewlock.net/reducing-latency-by-pre-building-singletons-in-asp-net-core/

DockerComposeFixture

@jeremydmiller I know I asked this before, but do you have a skeleton for docker powered integration tests outside of Marten? Like a starter approach?

— Khalid :man:‍:rocket: (@buhakmeh) February 6, 2019

I happen to catch this twitter thread and noticed Khalid posted a link to this GitHub repo.

 A XUnit fixture that allows you to spin up docker compose files and then run tests against them. 

Link: https://github.com/devjoes/DockerComposeFixture

Follow @codeopinion

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK