Sending messages from one production to another through a database?

Primary tabs

Hello community!

I have 2 productions A and B on the same IRIS instance sharing one operational database.

I'm looking for a simple and efficient way to send a message from production A to production B.
Any suggestion ? Could it be done through the database only?

And I wish you a happy new year!
Thanks :-)

  • 0
  • 0
  • 84
  • 3
  • 1

Answers

Have you considered using web services to exchange messages between the productions? This has the advantage of allowing the two productions to later be placed on separate instances.

If you want to do it through the mapped DB, you could write a custom business operation to store the records in a custom table which is mapped to from both namespaces and then write a custom business service that polls that table for new entries.

I have 2 productions A and B on the same IRIS instance sharing one operational database.

To be sure the two productions aren't conflicting with each other, I'm assuming that only custom tables/globals are mapped to the shared database and not any of the Ens* globals/tables/routines/packages.

Thanks Marc.

We think of writing a REST API to send the IDs of the messages to be sent to production B. The production B service will then read the appropriate records in the mapped table.

Comments

Do you need to get answers back?

Or is it more init and forgot kind of thing?

it's more a send and forget kind of thing but we will add a deferred response from production B to production A.