Logging chat messages

2012-10-22 Thread Shashwat Srivastava
Hi, I want to inquire about feasibility of using riak for logging chat messages. My architecture is as follows: There are multiple sites where a user can either send message to another user or to a room (on the same site), and these messages need to be logged. Is riak a good fit for this use case?

Re: Logging chat messages

2012-10-22 Thread Shashwat Srivastava
Thanks Sergej. I will try this with Leveldb backend and use another db for incremental ids. Shashwat On Mon, Oct 22, 2012 at 2:34 PM, Rapsey wrote: > > On Mon, Oct 22, 2012 at 10:29 AM, Shashwat Srivastava > wrote: > >> >> Now, each bucket would have conversation b

Re: Logging chat messages

2012-10-22 Thread Shashwat Srivastava
database sequence or a UUID generator. > > HTH, > > Guido. > > > On 22/10/12 10:04, Rapsey wrote: > > > On Mon, Oct 22, 2012 at 10:29 AM, Shashwat Srivastava > wrote: > >> >> Now, each bucket would have conversation between two users or of a room

Re: Logging chat messages

2012-10-23 Thread Shashwat Srivastava
me a problem later on. I am apprehensive of imposing any design limitation. I will think more about it. Thanks, Shashwat > > > On Tue, Oct 23, 2012 at 6:00 AM, Shashwat Srivastava wrote: > >> Thank you Guido. Yes, a secondary index based on date would be immensely >> help

Re: Logging chat messages

2012-10-23 Thread Shashwat Srivastava
know in advance how >> big N can get (it has to be larger than the number of your app servers). >> >> >> Sergej >> >> >> On Tue, Oct 23, 2012 at 6:00 AM, Shashwat Srivastava >> wrote: >> >>> Thank you Guido. Yes, a secondary index b

Re: Logging chat messages

2012-10-23 Thread Shashwat Srivastava
have a number between 1 and N. The number assigned to the server >> is your starting ID, then increment by N every time you generate an ID from >> that server. The only limitation is that you have to know in advance how >> big N can get (it has to be larger than the number of your app serv

Re: Logging chat messages

2012-10-24 Thread Shashwat Srivastava
> any more ideas, it would be great, I ran out of them... > > Guido. > > > On 23/10/12 11:47, Shashwat Srivastava wrote: > > > On Tue, Oct 23, 2012 at 3:35 PM, Guido Medina wrote: > >>I know you want to follow a criteria for sorting messages, you could >> s