Written by

Cofounder at snext
Question Blaise ZARKA · Jan 3, 2020

Sending messages from one production to another through a database?

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 :-)

Comments

Marc Mundt · Jan 3, 2020

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.

0
Blaise ZARKA  Jan 6, 2020 to Marc Mundt

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.

0
Blaise ZARKA  Jan 6, 2020 to Eduard Lebedyuk

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

0
Eduard Lebedyuk · Jan 4, 2020

Do you need to get answers back?

Or is it more init and forgot kind of thing?

0