We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf957b9 commit 1eab7cbCopy full SHA for 1eab7cb
modelling/microservices-php/distributed-bus/distributed-bus-with-service-map/configuration.md
@@ -16,11 +16,17 @@ The minimum needed for enabling Distributed Bus with Service Map and start consu
16
#[ServiceContext]
17
public function serviceMap(): DistributedServiceMap
18
{
19
- return DistributedServiceMap::initialize()
20
- ->withServiceMapping(
21
- serviceName: "ticketService",
22
- channelName: "distributed_ticket_service"
23
- )
+ return DistributedServiceMap::initialize();
+}
+```
+
+and then we would define Message Channel, which we would use for for incoming messages:
24
25
+```php
26
+#[ServiceContext]
27
+public function channels()
28
+{
29
+ return SqsBackedMessageChannelBuilder::create("distributed_ticket_service")
30
}
31
```
32
0 commit comments