我构建了一个可以处理流量的API。试着来破坏它。

1作者: labubutoto4 天前原帖
我设计了一个可以承受严重压力的API端点——它就是不崩溃。 端点: http://60.30.55.101:8888/prod-api/activite/task/startProcessFromServer2 方法:POST 请求体: ```json { "bizUsername": "153二管轮" } ``` 无需身份验证。 没有限流。 没有验证码。 纯粹的后端工程。 我对这个端点进行了压力测试,使用了: - JMeter - Apache Bench - 并行curl洪水攻击 - Postman运行器 - 格式错误的负载 - 持续的多线程循环 结果如何? - 没有5xx错误 - 没有减速 - 没有崩溃 - 即使在数千个并发请求下,响应时间也保持一致 原始HTTP请求示例: ```bash POST /prod-api/activite/task/startProcessFromServer2 HTTP/1.1 Host: 60.30.55.101:8888 Content-Type: application/json Content-Length: 31 {"bizUsername":"153二管轮"} ``` 我希望大家可以随意测试——模拟负载、打破协议规则、进行洪水攻击——无论你的工具或脚本能做什么。如果它崩溃了,我会感到惊讶(并且印象深刻)。 让我们看看这个东西能走多远。
查看原文
I designed an API endpoint that can take a serious beating — and it just won&#x27;t go down.<p>Endpoint: http:&#x2F;&#x2F;60.30.55.101:8888&#x2F;prod-api&#x2F;activite&#x2F;task&#x2F;startProcessFromServer2 Method: POST Body:<p>json 复制 编辑 { &quot;bizUsername&quot;: &quot;153二管轮&quot; } No authentication. No throttling. No CAPTCHA. Just pure backend engineering.<p>I&#x27;ve stress-tested this endpoint with:<p>JMeter<p>Apache Bench<p>parallel curl floods<p>Postman runners<p>malformed payloads<p>persistent multi-threaded loops<p>Result? No 5xx No slowdown No crash Consistent response time even under thousands of concurrent requests<p>Raw HTTP Request Example:<p>bash 复制 编辑 POST &#x2F;prod-api&#x2F;activite&#x2F;task&#x2F;startProcessFromServer2 HTTP&#x2F;1.1 Host: 60.30.55.101:8888 Content-Type: application&#x2F;json Content-Length: 31<p>{&quot;bizUsername&quot;:&quot;153二管轮&quot;} I’d love for folks here to test it however they like — simulate load, break protocol rules, flood it — whatever your tools or scripts can throw at it. If it goes down, I’ll be surprised (and impressed).<p>Let’s see how far this thing can go.