Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
spaceKeyGrouper
pageTitleNavigation


Info


The info on this page applies to Grouper 2.5 and above.


Grouper AWS SQS messaging system works with Standard and FIFO queues.

...

  • We don't support creating the queues. Setting autoCreateObjects property to true will do nothing. The name of the queue you send in the method calls must exist already.
  • Grouper messaging with SQS only supports queue types so setting queueType property to topic will throw IllegalArgumentException
  • Make sure you call acknowledge method after receiving the messages otherwise you will keep receiving the same messages over and over.
  • We use message based deduplication for FIFO types. We assign a UUID to each message to make it unique.
  • return_to_end_of_queue acknowledgment type can only work with FIFO type. 

 


All the properties you can set in grouper.client.properties for AWS SQS.

Code Block
# name of a messaging system. note, "awsSystem" can be arbitrary
grouper.messaging.system.awsSystem.name = awsSystem

# class that implements edu.internet2.middleware.grouperClient.messaging.GrouperMessagingSystem
grouper.messaging.system.awsSystem.class = edu.internet2.middleware.grouperMessagingAWS.GrouperMessagingSqsSystem

# sqs settings
grouper.messaging.system.awsSystem.accessKey = ABC123 

grouper.messaging.sqssystem.messagingawsSystem.secretKey = xyz789 

grouper.messaging.sqssystem.messagingawsSystem.defaultPageSize = 5


#SQS can return maximum of 10 messages at once so don't set the value higher than 10.
grouper.messaging.system.awsSystem.maxPageSize = 10

# default system settings to this messaging system, note, there is only one level of inheritance. (optional)
grouper.sqs.messaging..messaging.system.awsSystem.defaultSystemName = awsSystem


grouper-loader.properties file must have the same messaging system name as defined above. See example below:

Code Block
changeLog.consumer.esb.publisher.messagingSystemName = awsSystemmaxPageSize = 10