scalability

Scaling a decoupled realtime server alongside a standard webserver

余生长醉 提交于 2019-12-07 21:09:45
问题 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

Mongo for non regular time-series

六月ゝ 毕业季﹏ 提交于 2019-12-07 09:15:46
I'm using MongoDB to handle timeseries, this is working fine as until now there is not too many data but I now need to identify what is needed to scale to a larger number of data. Today, there are +200k data received per day, each data received every couple of seconds, that is not huge but this should increase soon. The data collection used is far from beeing efficient as each piece of data (parentID, timestamp, value) creates a document. I've seen several approaches that uses a document that keeps the timeseries for a whole hour (with, for instance, an inner array that keeps data for each

Silverlight: Enterprise-grade push notifications

夙愿已清 提交于 2019-12-07 08:44:29
问题 We are building a Silverlight-based system in the financial domain. We need to push notifications/stream data from the server to the Silverlight client. We use Silverlight 4 for the client and Windows Server 2003/IIS6 on the server side (this excludes AppFabric). So far I haven't been able to find a Silverlight-compatible data push solution that would be secure and scalable. Out of the box sockets don't seem to support SSL and the PollingDuplexHttpBinding doesn't seem to scale for the web

Combining cache methods - memcache/disk based

流过昼夜 提交于 2019-12-07 04:56:12
问题 Here's the deal. We would have taken the complete static html road to solve performance issues, but since the site will be partially dynamic, this won't work out for us. What we have thought of instead is using memcache + eAccelerator to speed up PHP and take care of caching for the most used data. Here's our two approaches that we have thought of right now: Using memcache on >>all<< major queries and leaving it alone to do what it does best. Usinc memcache for most commonly retrieved data,

Using Redis to Scale Web Services

℡╲_俬逩灬. 提交于 2019-12-07 02:37:32
In my latest project, I have to write a web service API to return data from a database. Techs are - SQL Server 08 R2 - WCF The data is mainly key-value pairs, e.g. for get user X's favourite colour. The load isn't massive, but not small-fry either - about 1,000 requests / sec at peak. My initial thoughts are to use Redis as the cache, meaning we don't hit SQL Server as often. However I've been trying to get some benchmarks etc out of this configuration, and it's not great, making me wonder if Redis will really offer any benefit for my problem! Architecture is - separate db server - WCF App

Multiple indexers on same storage location in Lucene

两盒软妹~` 提交于 2019-12-07 00:18:25
I want to build a highly scalable application where I intend to use Lucene as my search engine library. While browsing through the docs and faqs, I realize that it only allows one index writer to be open on a storage location by creating some write.lock in index directory. We can open multiple IndexReaders on that index. I am interested in building an architecture where there are number of indexers running on different machines/servers and multiple searcher answering various types of queries on the indexes created by these indexers. Both searchers and indexers will be running on different

How to mitigate against long startup times in firebase workers when dataset gets large

最后都变了- 提交于 2019-12-06 21:19:27
Firebase has an interesting feature/nuisance where when you listen on a data ref, you get all the data that was ever added to that ref. So, for example, when you listen on 'child_added', you get a replay of all the children that were added to that ref from the beginning of time. We are writing a commenting system with a dataset that looks something like this: /comments /sites /sites/articles /users Sites have many articles and articles have many comments and users have many comments. We want to be able to track all the comments a user makes, so we feel it is wise to put comments in a separate

Can someone interpret these apache bench results, is there something that stands out?

隐身守侯 提交于 2019-12-06 14:27:49
Below is a apache bench run for 10K requests with 50 concurrent threads. I need help understanding the results, does anything stand out in the results that might be pointing to something blocking and restricting more requests per second? I'm looking at the connection time section, and see 'waiting' and 'processing'. It shows the mean time for waiting is 208, and the mean time to connect is 0 and processing is 208..yet the total is 208. Can someone explain this to me as it doesn't make much sense to me. Connect time is time it took ab to establish connection with your server. you are probably

Design pattern or code smell, denormalised data as a result of functional decomposition

孤者浪人 提交于 2019-12-06 13:43:12
问题 I'm a big fan of http://highscalability.com/ and have been looking in my current development to decompose my application along functional boundaries as a route to being able to scale out the server side, specifically the database layer. What this involves is implementing different functional components of the application (we have several separate modules customers can use) as their own independent application on the server, the client which contacts the server is aware of the distinct

DB4O scalability

独自空忆成欢 提交于 2019-12-06 10:26:09
问题 I'm looking for information about DB4O object database. I know it has client/server mode, but I have no idea how scalable it is. I'm a big lover of object db idea, but still couldn't find an appropriate OODB to use in any of my projects. So my questions are: I'm interested if anyone deployed DB4O in a multi client environment and how does it perform compared to RDBMS? Is any web app to date powered by DB4O? Can I use DB4O as a replacement for SQL Server (SQL Express at least)? How many