You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/en/getting-started/publishing/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,12 @@ search:
14
14
15
15
It offers several use cases for publishing messages:
16
16
17
-
* Using `#!python broker.publish(...)` method
18
-
* Using the `#!python @broker.publisher(...)` decorator
19
-
* Using a publisher object decorator
20
-
* Using a publisher object directly
17
+
* Using [`#!python broker.publish(...)` method](./publishing/broker.md){.internal-link}
18
+
* Using the [`#!python @broker.publisher(...)` decorator](./publishing/decorator.md){.internal-link}
19
+
* Using a [publisher object decorator](./publishing/object.md){.internal-link}
20
+
* Using a [publisher object directly](./publishing/direct.md){.internal-link}
21
21
22
-
All of these variants have their own advantages and limitations, so you can choose what you want based on your requirements. Please visit the following pages for details.
22
+
All of these variants have their own advantages and limitations, so you can choose what you want based on your requirements. This section will guide you through all the details.
23
23
24
24
## Serialization
25
25
@@ -39,11 +39,11 @@ By the way, you can use `application/json` for all of your messages if they are
39
39
40
40
## Publishing
41
41
42
-
**FastStream** can also be used as a Broker client to send messages in other applications. It is quite straightforward and similar to *aiohttp* or *requests*.
42
+
**FastStream** can also be used as a Broker client to send messages in other applications.
43
43
44
44
You just need to `#!python connect` your broker, and you are ready to send a message. Additionally, you can use *Broker* as an async context manager to establish a connection and disconnect when leaving the scope.
45
45
46
-
To publish a message, simply set up the message content and a routing key:
46
+
To publish a message, provide the message content and a routing key:
0 commit comments