Comments (9)
Thanks @adityamandaleeka let me go through these docs and understand how it works. Will comeback here.
from eshop.
The wrk load generator is able to run custom scripts before any request. This example https://github.com/wg/wrk/blob/master/scripts/auth.lua shows how a token can be injected in the request. And a pre-flight request can authenticate on eshop before that.
Maybe you can already get something in place while using anonymous endpoints? That would be a first step as it will also require to setup all the micro services as job instances.
from eshop.
Interesting, how we can do this? Do you accept results by postman?
from eshop.
@ks1990cn The intent here is to get automated scale/load tests going for eShop. We have some performance infrastructure that we use for ASP.NET Core (see https://github.com/dotnet/crank, which powers the benchmarks whose results are displayed on https://aka.ms/aspnet/benchmarks).
Given that, one approach here would be to identify a couple of flows in eShop and turn those into automated scenarios that Crank can run.
Once we have those, we can get fancier and do things like max latency tests (e.g. answering questions like "how high can you drive RPS while maintaing P95 latency below 5 ms?").
I suspect that as we get visibility into these numbers, we'll discover a bunch of low-hanging performance improvements that we can make since this isn't an area that people have spent much time on for this app.
from eshop.
I've never used https://github.com/dotnet/crank, trying to understand how we can do it. I've used https://github.com/dotnet/BenchmarkDotNet before, is both similar?
from eshop.
Not quite. BenchmarkDotNet is great and we use it too, but while it really shines with microbenchmarking, Crank's strength is in running tests with multiple nodes (e.g. client/server) and different load patterns, and the general coordination of things running in a dedicated performance testing environment. You can actually run BenchmarkDotNet benchmarks with Crank too.
You can find more info about Crank here and in the docs for it.
from eshop.
from eshop.
@adityamandaleeka I have question here similar question I've also asked at crank repo but here its quite specific to eshop.
How we can benchmark through crank, when authentication across APIs are present in microservice architecture. Do crank provide way to test through WebApp
or you want through API level only. But again I've question, what if we have authentication enabled for that API or any dependent API, do crank will be able to hit that API give right results?
from eshop.
@sebastienros wrk is any other tool than crank? I thought we are discussing how we can do this with crank. 😕 😕
I agree on that all services must be different jobs but how crank yml file can have token passed, bit confused here!
from eshop.
Related Issues (20)
- Update eshops to Aspire 8.1 candidate HOT 6
- missing dependencies in Rider HOT 1
- [WebToolsE2E][Aspire] Press F5 to run the eshop.web solution, click the webhooksclient endpoint and log in with the account. An exception is thrown: 'Microsoft.AspNetCore.Components.NavigationException'. HOT 1
- fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0] HOT 1
- How to implement AppInsights into eShop in one centralized location for all the microservices? HOT 3
- Update repo to .NET 9 RC 1 HOT 1
- Can't find API Getway project
- How vault is created?
- Duende Version 7.0.5 breaks build HOT 3
- Full rebuild of eshop solution fails on ClientApp HOT 2
- Upgrade EF to 9.0
- Duende.IdentityServer Has a known severity vulnerability HOT 1
- Availability of eShopSupport Project from Steve Sanderson's Presentation HOT 1
- BasketGrpcClient could not be found (after fixing Duende vulnerability) HOT 1
- Could not start proxy error HOT 2
- Make eShopSupport public HOT 4
- [WebToolsE2E][Aspire] Deployment of eShop failed with error: error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value') HOT 2
- Suggestion to Align Default Namespaces with eShop.* Pattern for Better VS Integration
- https://t.me/LosLacostee
- The SSL connection could not be established, see inner exception. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eshop.