-
Notifications
You must be signed in to change notification settings - Fork 1
Check with ES team what is trigger message from central EGA for file ingestion #31
Comments
Answer from Jordi:
In other words, Jordi prefers an asynchronous communication. A solution for us (as a trigger-mechanism) is to contact their message broker directly, though using certificate for authentication, and pick the message if flagged with "Sweden", or something similar. |
If we connect to their Message Broker and pick an interested message, we should think of having several connections open, for fault-tolerance. Note: I think there is a functionality in RabbitMQ to handle that. Like routing to the right place, combined with queue filtering. |
Note from Jordi: they could send us a message to our message broker! If we have one, then we need to "secure" it. I prefer to let them do that. By simple laziness, and also to let them get the blame in case the broker is compromised. Nasty but nonetheless true.
|
Update: Jordi suggests to hook both message brokers, one from Spain and one from Sweden in a federated manner. That way, they could route messages to the swedish queue when necessary. Juha is concerned about separating the components, so that if one is upgraded, we won't have issues with dependencies or incompatibilities. It's important, and a solution is in AMQP (the Message Broker protocol). We're fine if both components, upgraded or not, do talk AMQP. Implementing code that handles message exchange between message broker is, to me, redundant. That code would sit and wait for messages to drop in the queues and forward them to other queues. It introduces an extra layer which is good for security. We are still very much in the discussion inside the LocalEGA Slack. |
I am in favor of hooking our MQ to their MQ (including SSL communication). That would be step 1.
|
Ok, after discussing with Oscar, I have bad and good news. Bad news: CRG does not handle submissions, so there is no message containing submission data, like file and checksum paths. Good news: We designed one. The message, as a first try, will look like this.
It contains some extra things I don't frankly care about, but Oscar said they will matter later. All I care is:
I raise some concern about the file path relative to the inbox, in case we setup several inboxes (like a plain FTP one, and some other one for Bianca, for example) The latter is part of issue #5 related to the inbox setup. Not the concern here. |
The |
We still need a discussion to settle all those bits. |
No description provided.
The text was updated successfully, but these errors were encountered: