SuiteCRM with RabbitMQ

Hi,

I need to integrate a SuiteCRM instance with another database. I would like to use a message queuing system for this (like RabbitMQ).

When a new contact record is added to the other database a message (containing the record details) will automatically be produced and sent to a queue. I want to build a mechanism within SuiteCRM which will poll this queue for new messages. When it finds a new message it should add the new contact to its own database using the API.

I also need to do the opposite. i.e. when a certain transaction is added for a given contact in Suite CRM, I need to automatically send a message to the queue, which the other database will consume.

Kind Regards

For the second one, use an after_save logic_hook: when some record is saved, run some PHP code to insert the item into the queue.

For the first… polling can be done with a custom Scheduler job. This can fetch data from the queue, and use the Beans to manipulate SuiteCRM objects.

There’s a developer guide in the Documentation, with chapters about each of these.