Relative Content

Tag Archive for patterns-and-practices

Decreasing MongoDB Load

I have some stream workers. They are listening to twitter stream and save into mongodb. I need to aggregate saved tweets for intermediate analyze result. I have analyzer workers. They are periodically aggregated with some (15 query) queries. At this time mongodb loads increase and use whole cpu and ram. This is reasonable, okey but I need to decrease loads.

Design Pattern for Cron/Schedule in MongoDB

I am looking for a good pattern to handle cron-type data in a MongoDB collection (or collections). I have been peeking at the O’Reilly book MongoDB Applied Design Patterns and poking around the MongoDB site’s Use Cases site but neither seems to to cover this type of data.

Design Pattern for Cron/Schedule in MongoDB

I am looking for a good pattern to handle cron-type data in a MongoDB collection (or collections). I have been peeking at the O’Reilly book MongoDB Applied Design Patterns and poking around the MongoDB site’s Use Cases site but neither seems to to cover this type of data.

Design Pattern for Cron/Schedule in MongoDB

I am looking for a good pattern to handle cron-type data in a MongoDB collection (or collections). I have been peeking at the O’Reilly book MongoDB Applied Design Patterns and poking around the MongoDB site’s Use Cases site but neither seems to to cover this type of data.

Design Pattern for Cron/Schedule in MongoDB

I am looking for a good pattern to handle cron-type data in a MongoDB collection (or collections). I have been peeking at the O’Reilly book MongoDB Applied Design Patterns and poking around the MongoDB site’s Use Cases site but neither seems to to cover this type of data.

TDD with repository pattern

In my new project, I decided to try with TDD. And in very beginning I encountered a problem. First thing that I want to do in my application is to give ability to read data from data source. For this purpose, I want to use repository pattern.
And now: