scalability

PHP performance considerations?

爷,独闯天下 提交于 2019-12-06 07:08:05
问题 I'm building a PHP site, but for now the only PHP I'm using is a half-dozen or so includes on certain pages. (I will probably use some database queries eventually.) Are simple include() statements a concern for speed or scaling, as opposed to static HTML ? What kinds of things tend to cause a site to bog down? 回答1: Strictly speaking, straight HTML will always serve faster than a server-side approach since the server doesn't have to do any interpretation of the code. To answer the bigger

How can I cache Model objects in Rails?

巧了我就是萌 提交于 2019-12-06 05:51:41
问题 Is there a technique that I can use in Rails so that whenever a simple "find" is performed on a Model object, memcached is first searched for the result, only if no result is found will a query by then made to the database? Ideally, I'd like the solution to be implicit, so that I can just write Model.find(id), it first checks the cache and if a database query is required that the object returned is then added to the cache i.e. I don't need to wrap the Model.find(id) with additional code to

Scaling up Multiple HttpWebRequests?

时光怂恿深爱的人放手 提交于 2019-12-06 05:48:18
问题 I'm building a server application that needs to perform a lot of http requests to a couple other servers on an ongoing basis. Currently, I'm basically setting up about 30 threads and continuously running HttpWebRequests synchronously on each thread, achieving a throughput of about 30 requests per second. I am indeed setting the ServicePoint ConnectionLimit in the app.config so that's not the limiting factor. I need to scale this up drastically. At the very least I'll need some more CPU horse

SignalR scaleout in Azure for high frequency scenario

醉酒当歌 提交于 2019-12-06 05:28:12
From my reading on SignalR scaleout in Azure, the recommended way is to use Azure ServiceBus as a backplane. But in the same time there is limitation on using backplane for high frequency messaging. In terms of Limitation chapter in Scaleout in SignalR , I would characterize my app as something between chat and real-time game. Any tips how to implement SignalR scaleout (in Azure) for this? You can set the # of topics (queues) that you use to increase throughput and scale up 来源: https://stackoverflow.com/questions/18150865/signalr-scaleout-in-azure-for-high-frequency-scenario

How to make a node.js server with rooms scalable

拈花ヽ惹草 提交于 2019-12-06 05:16:52
I have designed a Node.JS server that allows users to log in, join a room and exchange data with other users in this room using websockets. However I am now looking for a way to make this setup scalable. I spend all afternoon researching various loadbalancers such as nginx and haproxy, but I still can't figure out how to organise my setup. Initally users can login and view the active rooms. No biggie to makes this part scalable. However then they can join a specific room and at that point they need to be connected to the same node.js instance as the others in the room. It's this part I have

Scaling a decoupled realtime server alongside a standard webserver

隐身守侯 提交于 2019-12-06 04:48:18
Say I have a typical web server that serves standard HTML pages to clients, and a websocket server running alongside it used for realtime updates (chat, notifications, etc.). My general workflow is when something occurs on the main server that triggers the need for a realtime message, the main server sends that message to the realtime server (via a message queue) and the realtime server distributes it to any related connection. My concern is, if I want to scale things up a bit, and add another realtime server, it seems my only options are: Have the main server keep track of which realtime

What does a web-based framework scalable?

这一生的挚爱 提交于 2019-12-06 03:50:57
thanks you very much in advance. First of all, I conceive scalability as the ability to design a system that doest not change when the demand of its services, whatever they are, increases considerably. May you need more hardware (vertically or horizontally0? Fine, add it at your leisure because the system is prepared and has been designed to cope with it. My question is simple to ask but presumably very complex to answer. I would like to know what you I look at in a framework to make sure it will scale accordingly, both in number of hits and number of sessions running simultaneously. This

Are there well-identified patterns for software scalability testing?

匆匆过客 提交于 2019-12-06 03:01:21
问题 I've recently become quite interested in identifying patterns for software scalability testing. Due to the variable nature of different software solutions, it seems to like there are as many good solutions to the problem of scalability testing software as there are to designing and implementing software. To me, that means that we can probably distill some patterns for this type of testing that are widely used. For the purposes of eliminating ambiguity, I'll say in advance that I'm using the

limit the number of cores used by erlang

若如初见. 提交于 2019-12-06 02:20:22
问题 I'm running experiments on a node with 2 x Quad-Core Xeon E5520 2.2GHz, 24.0GB RAM, and Erlang R15B02 (SMP enabled). I wonder if I can limit the number of cores used by the Erlang VM so that I can temporarily disable some cores and increase the number step by step in order to test scalability. I don't have root access on this node. So I'm expecting some method which is either by specifying parameters to erl or by Erlang code. 回答1: You can limit the number of cores Erlang uses via the +S

Does Node.js scalability suffer because of garbage collection when under high load?

被刻印的时光 ゝ 提交于 2019-12-06 02:13:26
问题 Though Node.js is pretty hot topic, I happens to find that it is reported Node.js might not be appropriate for real-time application due to its Garbage Collection model (http://amix.dk/blog/post/19577). And, some benchmark shows that Node.js responds slow compared to RingoJS(http://hns.github.com/2010/09/29/benchmark2.html). For the time being, Node.js is bound to V8 JavaScript engine which use generational stop-the-world GC. So, would Node.js be busted when incoming requests are massive? If