Grails:企业级 Grails
我正试图说服我的老板使用 Grails。 我告诉他这是实施我们的购物网站最有效的方式。
但当流量越来越高时,他对其可扩展性表示怀疑。
那么您能举出企业级网站的例子吗 Grails 中实现的流量显着。
另外,在构建时有什么需要考虑的吗? 这样的企业级网站可能会有很高的 交通。
注意:我们预计每日点击量为 10K。
I am trying to persuade my boss about using Grails.
I tell him it is the most productive way to implement our shopping web site.
But he has doubts about its scalability when traffic gets higher and higher.
So can you give examples of enterprise level web sites with
notable traffic implemented in grails.
Also is there anything that I have to take into account when building
such an enterprise level web site that will probably have high
traffic.
Note: We may expect 10K daily hit.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 Grails 成功案例。最受欢迎的网站可能是:Sky.com 和 mp3.walmart.com
Take a look at the Grails Success Stories. The most popular sites may be: Sky.com and mp3.walmart.com
Groovymag 有一些关于这方面的好信息,但每期收费 5 美元。 本期有来自 Sky 的一个人的采访,一个使用 grails 的非常大的站点以及使用 Grails 实现电子商务站点的信息。我从一位 sky.com 开发人员的采访中得到的要点是,他们通过巧妙地使用缓存来扩展至数百万页面浏览量没有问题。尽管您的网站每天可能有 10000 次浏览,但大多数浏览量不需要访问数据库。您可以缓存每个可用产品的信息,以限制查看站点时所需的查询数量。这应该会减少数据库上的流量,并使 GORM 不再成为可能的瓶颈。我无法了解 GORM 在重负载下的执行情况,但如果情况变得更糟,您可以使用纯 JDBC 调用编写性能关键的数据库代码并将其放入服务中。
Groovymag has some good information on this but costs $5 per issue. This issue has both an interview with a guy from Sky which is a very large site that uses grails as well as information in implementing an e-commerce site using Grails. The main point I got from reading the interview from one of the sky.com developers is that they have no problem scaling to millions of page views by smart use of caching. Although your site may have 10000 views a day most of those views should not need to access the database. You can cache information on each product available in order to limit the number of queries necessary when viewing the site. This should reduce the traffic on your database and make GORM less of a possible bottleneck. I have not been able to find out how GORM performs under heavy load, but if worse comes to worse you could write your performance critical database code using pure JDBC calls and put it in a service.
如果您计算一下,即使所有 10K 次点击都发生在 3 小时的“高峰流量”窗口内,每日 10K 次点击量也少于每秒 1 次点击量。即使假设您的意思是“页面呈现”而不是点击,您所谈论的流量也非常小。
If you do the math, 10K daily hits is less than one hit per second- even if all 10K hits happened during a 3 hour "peak traffic" window. Even assuming you meant "page renders" and not hits, you are talking about a really miniscule amount of traffic.