Skip to content

Commit 4e287e3

Browse files
authored
Merge pull request #304 from alexpunct/patch-1
Update async-topics.md
2 parents 637df07 + aa0c9ad commit 4e287e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/development/components/message-queues/async-topics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ Sort order is set to 0 by default. This allows developers to change some aspects
3636

3737
`\Magento\Framework\Communication\Config\CompositeReader::read()` collects configuration records from defined readers and merges these records into a single configurataion.
3838

39-
Because the generation of thge topics configuration is based on schema type, the generated `<topic>` XML is returned with `"sync"=true`. The `response` attribut is based on the service response definition. So the `WebapiAsync` module changes those settings to `"sync"=false` and `response` is set to null. These changes will allow the application to execute topics asynchronously.
39+
Because the generation of the topics configuration is based on schema type, the generated `<topic>` XML is returned with `"sync"=true`. The `response` attribute is based on the service response definition. So the `WebapiAsync` module changes those settings to `"sync"=false` and `response` is set to null. These changes will allow the application to execute topics asynchronously.
4040

4141
## Topics generation
4242

43-
Asynchronous and Bulk APIs are built on top of the standard Rest API. Topics for message processing fo asynchronous and bulk APIs are generated automatically, together with the `communication.xml` schema. This is done by `\Magento\WebapiAsync\Model\Config::getServices()`. The current method is responsible for retrieving all service contracts defined in `webapi.xml` files and generates topic names for the corresponding asynchronous requests.
43+
Asynchronous and Bulk APIs are built on top of the standard Rest API. Topics for message processing for asynchronous and bulk APIs are generated automatically, together with the `communication.xml` schema. This is done by `\Magento\WebapiAsync\Model\Config::getServices()`. The current method is responsible for retrieving all service contracts defined in `webapi.xml` files and generates topic names for the corresponding asynchronous requests.
4444

4545
`generateTopicNameFromService($serviceInterface, $serviceMethod, $httpMethod)` is responsible for generating a topic name based on the service contract interface, the service contract method, and the HTTP method.
4646

@@ -66,4 +66,4 @@ It consists of following parts:
6666
* lower cased service method
6767
* lover cased http method
6868

69-
Unfortunately, there are no easy way to get a list of all generated topic names, but knowing this pattern, developers can find the required topic name and use it for executing service contracts in asynchronously.
69+
Unfortunately, there is no easy way to get a list of all generated topic names, but knowing this pattern, developers can find the required topic name and use it for executing service contracts in asynchronously.

0 commit comments

Comments
 (0)