File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
modelling/microservices-php/distributed-bus/distributed-bus-with-service-map Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,17 @@ The minimum needed for enabling Distributed Bus with Service Map and start consu
16
16
#[ServiceContext]
17
17
public function serviceMap(): DistributedServiceMap
18
18
{
19
- return DistributedServiceMap::initialize()
20
- ->withServiceMapping(
21
- serviceName: "ticketService",
22
- channelName: "distributed_ticket_service"
23
- )
19
+ return DistributedServiceMap::initialize();
20
+ }
21
+ ```
22
+
23
+ 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")
24
30
}
25
31
```
26
32
You can’t perform that action at this time.
0 commit comments