Performance wasn't the reason I was looking for an alternative, but 
performance of the alternatives were important. Application has become very 
complex without a proper schema with redis as I had to keep the relation of 
the data within the app. If I could use simple javascript objects, it 
wouldn't solve all the problems I had but it would help a lot.

Then I tried mongodb with mongoose and I managed to remove 300+ lines of 
codes, which is 1/3 of the current application, because of having a proper 
schema and a semi relational data, and I regained my sanity. 

On Friday, March 16, 2012 6:26:43 PM UTC+11, Антон Бравин wrote:
>
> You have a large load on the server? Do not think that the replacement of 
> radis on Mongo may be quite lower power at server side?
>
> пятница, 16 марта 2012 г. 9:31:23 UTC+4 пользователь Murat T. написал:
>>
>> Hi Guys,
>>
>> Those are the exact things I wanted. I have played with clusterhub but in 
>> the end switched to mongo. It reduced the complexity of the application. It 
>> seems Redis wasn't suitable for this job, as I deleted 300+ lines of code 
>> after the switch.
>>
>> Thanks again,
>>
>> On Saturday, March 10, 2012 1:54:44 AM UTC+11, Murat T. wrote:
>>>
>>> Hi,
>>>
>>> I have been developing a game since last month and there are a couple of 
>>> things which bothers me.
>>>
>>> I am using socket.io, and storing all the data into redis. However, 
>>> most of my data is temporary and doesn't need to go into redis. If in case 
>>> I restart the node, those temporary information in redis must be deleted 
>>> anyway. The reason I am storing in redis is that I want to make sure it can 
>>> scale in the future. Current design allows that.
>>>
>>> However, I have been doing some small benchmarks and noticed that I 
>>> won't need to scale node to multiple machines. If I can have 8/16 cores in 
>>> one server, and fork workers using clustering mechanism, everything should 
>>> be more than enough. So, I want to eliminate redis and store everything in 
>>> javascript objects, which is fine for me, since I don't need to save any 
>>> state. (I have somethings to save and will still use redis for those cases, 
>>> but for most cases I don't need it)
>>>
>>> The main reason is that I read and write a lot of small data and I need 
>>> to write lots of code to do that, which I don't need if only I can use 
>>> simple javascript objects.
>>>
>>> If I eliminate redis, I will have some objects which may have more than 
>>> 100.000 elements. I have been testing the performance of interprocess 
>>> communication, and it takes almost a second to send large objects between 
>>> children. (If I am not doing something wrong)
>>>
>>> So, is there any way to simplify the app or improve this performance? Do 
>>> I have to use a key value store for sharing large objects across other 
>>> nodes. I just want to have a couple of objects, read and write a lot of 
>>> data and share between processes.
>>>
>>> Thanks in advance,
>>>
>>>
>>>
>>>
>>>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to