Skip to content
Nawaz Khurshid edited this page Mar 24, 2022 · 2 revisions

RabbitMQ

A game action can produce multiple notifications. A notification is any form of information about how the player state changes, for example:

  • a badge gained,
  • the score the player gained,
  • a challenge won, and so on.

Gamification-engine provides an internal mechanism to manage these notifications and a set of APIs to read them.

It's possible to configure the gamification-engine to manage the game notification through RabbitMQ to implement a PUSH mechanism. These configurations are contained in game-engine.core/src/main/resources/engine.core.properties

rabbitmq.enabled=${RABBITMQ_ENABLED:false}
rabbitmq.host=${RABBITMQ_HOST:localhost}
rabbitmq.virtualhost=${RABBITMQ_VIRTUALHOST:playgo}
rabbitmq.port=${RABBITMQ_PORT:5672}
rabbitmq.user=${RABBITMQ_USER:user}
rabbitmq.password=${RABBITMQ_PASSWORD:password}
rabbitmq.pngExchangeName=${RABBITMQ_PNGEXCHANGENAME:ge-notifications}
rabbitmq.pngRoutingKeyPrefix=${RABBITMQ_PNGROUTINGKEYPREFIX:game}

Clone this wiki locally