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
1616#[ServiceContext]
1717public function serviceMap(): DistributedServiceMap
1818{
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")
2430}
2531```
2632
You can’t perform that action at this time.
0 commit comments