scalability

Just how scalable is Grails?

一曲冷凌霜 提交于 2019-12-05 15:06:32
问题 I'm looking to make a website that will probably get some heavy, repetitive traffic. Is grails up to the task? 回答1: I agree with lael, also because it's built on java technologies there are a lot of proven clustering and 'enterprisey' tools available which allow you to easily scale across multiple application services. The cloud tools around Grails are also becoming very good and make deploying to a cloud like EC2 very easy. I've recently been using Cloud Foundry and found it very good. As

MySQL in AWS EC2 - How does it scale?

↘锁芯ラ 提交于 2019-12-05 13:52:01
When you move beyond using one instance for your database, what is the best practice when using EC2? If the first instance is a master and you're spinning up slaves, they would need to scan the transaction log and bring themselves up to date before the slaves are useable correct? If the master had been running awhile and was busy, this could take a very long time, right? Is it smarter to use something besides master-slave on EC2? I've seen MySQL Enterprise has support for EC2 but it wasn't clear (to me) on the MySQL site what features this adds. Does it have some added functionality that makes

How to scale Lambda when /tmp is reused?

ぃ、小莉子 提交于 2019-12-05 12:24:30
问题 I have a lambda function that reads from DynamoDB and creates a large file (~500M) in /tmp that finally uploaded to s3. Once uploaded the lambda clears the file from /tmp (since there is a high probability that the instance may be reused) This function takes about 1 minute to execute, even if you ignore the latencies. In this scenario, when i try to invoke the function again, in < 1m, i have no control if i will have enough space to write to /tmp. My function fails. Questions: 1. What are the

Using Rails as a framework for a large website

廉价感情. 提交于 2019-12-05 06:15:24
问题 I've been playing around with Rails (version 3) for a few months now and I understand the framework fairly well. However, I have yet to develop a large website which offers lots of database access and user interaction. I'm fairly skeptical of the following: The Speed and Scalability of Ruby (I've heard that its up to 10 times slower than most other server-side languages). The extra background processing that Rails as a framework (multiple levels of abstration). The lack of enterprise-level

RavenDB - Planning for scalability

送分小仙女□ 提交于 2019-12-05 03:40:13
I have been learning RavenDB recently and would like to put it to use. I was wondering what advice or suggestions people had around building the system in a way that is ready to scale, specifically sharding the data across servers, but that can start on a single server and only grow as needed. Is it advisable, or even possible, to create multiple databases on a single instance and implement sharding across them. Then to scale it would simply be a matter of spreading these databases across the machines? My first impression is that this approach would work, but I would be interested to hear the

How to improve PHP performance?

*爱你&永不变心* 提交于 2019-12-05 02:49:24
问题 I've created PHP application for Facebook. It uses MySQL, Memcached and works on Lighttpd on Centos 2,6 Ghz and 2 GB RAM. it's basically one PHP file that after first run is cached and every next time it's served in 0,8 ms directly from Memcached. What more can I do to shorten this time? 回答1: Once you get to 0.8 ms, I'm not sure you can go any lower. However, you can set up multiple servers to handle many concurrent requests (with a common memcached). You will then be able to scale very high

Local SQLite vs Remote MongoDB

耗尽温柔 提交于 2019-12-05 02:34:13
I'm designing a new web project and, after studying some options aiming scalability, I came up with two database solutions: Local SQLite files carefully designed for a scalable fashion (one new database file for each X users, as writes will depend on user content, with no cross-user data dependence); Remote MongoDB server (like Mongolab ), as my host server doesn't serve MongoDB. I don't trust MySQL server at current shared host, as it cames down very frequently (and I had problems with MySQL on another host, too). For the same reason I'm not goint to use postgres. Pros of SQLite: It's local,

Parallel code bad scalability

穿精又带淫゛_ 提交于 2019-12-05 00:38:24
问题 Recently I've been analyzing how my parallel computations actually speed up on 16-core processor. And the general formula that I concluded - the more threads you have the less speed per core you get - is embarassing me. Here are the diagrams of my cpu load and processing speed: So, you can see that processor load increases, but speed increases much slower. I want to know why such an effect takes place and how to get the reason of unscalable behaviour. I've made sure to use Server GC mode . I

How to delete events from an Amazon SQS (Simple Queue Service) queue really fast?

妖精的绣舞 提交于 2019-12-04 21:46:46
问题 Suppose that I have many millions of events in a SQS queue and I want to get rid of them quickly, but I cannot just delete the queue and make a new one. What is the fastest way to delete/drain those events out of the queue? 回答1: I'm assuming that you don't care about the values in the messages, since you appear to want to drain it rather than process it. You can set the MessageRetentionPeriod to a very low value, and then drain any remaining messages out of the queue. After its drained, set

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

会有一股神秘感。 提交于 2019-12-04 18:45:58
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 services it needs to contact for different data so a unified view is presented to the users. The problem comes