Skip to content

Commit 1eab7cb

Browse files
dgafkagitbook-bot
authored andcommitted
GITBOOK-889: No subject
1 parent cf957b9 commit 1eab7cb

File tree

1 file changed

+11
-5
lines changed
  • modelling/microservices-php/distributed-bus/distributed-bus-with-service-map

1 file changed

+11
-5
lines changed

modelling/microservices-php/distributed-bus/distributed-bus-with-service-map/configuration.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ The minimum needed for enabling Distributed Bus with Service Map and start consu
1616
#[ServiceContext]
1717
public 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

0 commit comments

Comments
 (0)