|
1 | 1 | services: |
2 | | - identity.bot-requests-message-handler.topology: |
| 2 | + identity.transient-rpc-message-handler.topology: |
3 | 3 | class: Gaming\Common\MessageBroker\Integration\AmqpLib\Topology\QueueTopology |
4 | | - arguments: ['Identity.BotRequests', 'gaming', [ |
5 | | - !php/const GamingPlatform\Api\Identity\V1\IdentityV1::RegisterBotType, |
6 | | - !php/const GamingPlatform\Api\Identity\V1\IdentityV1::GetBotByUsernameType |
7 | | - ]] |
| 4 | + arguments: ['Identity.TransientRpc', 'gaming', ['Identity.TransientRpc'], {'x-expires': 7000}]] |
8 | 5 | tags: [{ name: 'gaming.message-broker.topology' }] |
9 | 6 |
|
10 | | - identity.bot-requests-message-handler.consumer: |
| 7 | + identity.transient-rpc-message-handler.consumer: |
11 | 8 | class: Gaming\Common\MessageBroker\Integration\AmqpLib\AmqpConsumer |
12 | 9 | factory: ['@gaming.message-broker.amqp-consumer-factory', 'create'] |
13 | 10 | arguments: |
14 | 11 | - !service |
15 | | - class: Gaming\Identity\Port\Adapter\Messaging\BotRequestsMessageHandler |
| 12 | + class: Gaming\Identity\Port\Adapter\Messaging\RpcMessageHandler |
16 | 13 | arguments: ['@identity.command-bus', '@identity.query-bus'] |
17 | 14 | - !service |
18 | 15 | class: Gaming\Common\MessageBroker\Integration\AmqpLib\QueueConsumer\ConsumeQueues |
19 | | - arguments: ['@identity.bot-requests-message-handler.topology'] |
20 | | - tags: [{ name: 'gaming.consumer', key: 'identity.command' }] |
| 16 | + arguments: ['@identity.transient-rpc-message-handler.topology'] |
| 17 | + tags: [{ name: 'gaming.consumer', key: 'identity.transient-rpc' }] |
0 commit comments