Hi guys, can anyone help me to choose best approach for next scenario of message processing:
So, i code a custom protocol for my IM in order to study network programming and highly loaded applications and i decided to choose NoSQL for store and process history messages and some other big things.
As i understood for every packet (my message packet) i need to create new document and insert my data.
It’s correct way to create one document per message or i can use something like in relational sqls ID with autoincrement?
Example, like:
Document_1
UserID = "1"
Text = “Test1”
Document_2
UserID = "1"
Text = “Test2”
Document_3
UserID = "2"
Text = “Test1”
Thanks for amazing database and client SDK.