On 7 November 2014 at 12:27:51,
pa...@excellenceinfonet.com (
pa...@excellenceinfonet.com) wrote:
> I have been working on getting started tutorials of RabbitMQ
> and till now I am able to send the message.
> Now once I receive the message,the message is removed from the
> queue, now I want to keep history of the messages, so when user
> again logs in, I want to show him his already received messages,
> so how can I handle this?
>
> a) Should this be done using RabbitMQ server ?
> b) Or Should I create another sql server to push data there ?
RabbitMQ is not a data store in the traditional sense. I'd definitely store chat history
in a data store designed for long term storage, be it SQL Server, ElasticSearch or Cassandra.
In addition, data stores such as SQL Server and ElasticSearch provide you rich querying
capabilities, which RabbitMQ does not provide (it only has FIFO queues).
> c) or If I use Rabbit MQ with Google cloud engine it will help me
> doing this ?
RabbitMQ on GCE is just a pre-provisioned RabbitMQ cluster. It does not change
what RabbitMQ is good (and not good) at, and how it is intended to be used
(as a message distribution mechanism and a short term storage).
So use RabbitMQ for message/notification distribution and another data store
for chat history and search (ElasticSearch is a good option to investigate for both
of these if you ask me).
--
MK
Staff Software Engineer, Pivotal/RabbitMQ