TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Do you load-test?

1 点作者 Bladtman超过 8 年前
The most cursory google search reveals tonnes stress testing options, ranging from simple http-request tools, to distributed networks of servers to act as clients, available for rent.<p>Do you perform load-testing on your services? If so; How, and what are your experiences&#x2F;2 cents on the issue?

2 条评论

ajeet_dhaliwal超过 8 年前
I did this a couple of years ago to load test and stress a public web service. We used the results to determine how many servers to launch with and how many requests per second we would be able to handle with adequate response times. We were also able to measure improvements due our optimizations.<p>At the time, due to the company I worked at it, and because the service itself was a C#&#x2F;.NET service it made sense to be writing tests in C#&#x2F;.NET using Microsoft&#x27;s Visual Studio Test Framework. Visual Studio, I think starting from the 2013 version has a built in load testing capability that integrates with Azure (you have to create an account) that will automatically spin up instances temporarily for you in order to load test the endpoint(s) you specify using the parameters you provide in VS created web tests. It worked rather well for us. I understand this is highly specific to our use case but if you didn&#x27;t know this existed it&#x27;s something to be aware of.
评论 #13019078 未加载
yeraydarias超过 8 年前
We made some stress tests in the past and it is quite useful.<p>We did it with Gatling (a very known tool in the Java world) in some of our local machines requesting our machines in Amazon EC2.<p>As it was commented previously, the test depends on various points, to tell a few: * Do you want to test a complete web or just a few services? * The speed of your system depends on the number of instances or there are other points to look like the database connection? * Do you want to test vertical scale or you want to know about the horizontal scaling too?<p>We did the tests mainly to know the &quot;breaking point&quot; of our database that was our &quot;weakest link&quot;.<p>Anyway, stress tests are quite useful and give you an idea about how much your system can scale and helps to detect where to improve code before expending too much money in servers.
评论 #13032564 未加载