[英]JMeter: In search of a meaningful 2-tier architecture
For a project, I need to build two client-server-architecture prototypes (2-tier and 3-tier).对于一个项目,我需要构建两个客户端-服务器-架构原型(2 层和 3 层)。 In a second step I want to test them in terms of performance & scalability with JMeter.
第二步,我想用 JMeter 测试它们的性能和可扩展性。 In a third step I want to compare the performance of both and give recommendations on the architecture.
在第三步中,我想比较两者的性能并就架构提出建议。
I have already built a 3-tier application, which looks like this:我已经构建了一个 3 层应用程序,如下所示:
What I had in mind was to build a 2-tier application, which looks like this:我的想法是构建一个 2 层应用程序,如下所示:
But then I realized that I cannot compare them properly.但后来我意识到我无法正确比较它们。 Since there is no possibility to start a function with a HTTP-request in the 2-tier-architecture.
因为在 2 层架构中不可能使用 HTTP 请求启动函数。
My question now, what would a meaningful implementation of a 2-tier-prototype look like?我现在的问题是,有意义的 2 层原型实现是什么样的? So that I can make a fair comparison of both.
这样我就可以对两者进行公平的比较。 and if I could use Java that would be great too.
如果我可以使用 Java,那也很棒。
I'm very inexperienced, so I am happy with any input!我非常缺乏经验,所以我对任何输入都很满意!
In general these 2 implementations look like 2 separate products so comparing their performance is not something you should be doing.一般来说,这 2 个实现看起来像 2 个独立的产品,因此比较它们的性能不是您应该做的事情。
Whatever.任何。
Your "Presentation" statement for the 2-tier architecture doesn't tell the full story:您对 2 层架构的“演示文稿”声明并未说明全部内容:
if it's some form of a thin client - then you can use JMeter for simulating load onto "Controller" by impersonating real users, check out How to Do Desktop Performance Testing for more details如果它是某种形式的瘦客户端- 那么您可以使用 JMeter 通过模拟真实用户来模拟“控制器”上的负载,请查看如何进行桌面性能测试了解更多详细信息
if the whole "Client" is a standalone application which just communicates with the database you can:如果整个“客户端”是一个仅与数据库通信的独立应用程序,您可以:
separate functions or larger code blocks can be tested for concurrency using microbenchmark frameworks like jmh可以使用jmh等微基准框架测试单独的函数或更大的代码块的并发性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.