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
The client is shipped with two types of producers. The first one sends messages immediately
25
25
where another one (it is called spool producer) collects them in memory and sends them `onTerminate` event (the response is already sent).
26
26
27
+
The producer has two types on send methods:
27
28
29
+
*`sendEvent` - Message is sent to topic and many consumers can subscriber to it. It is "fire and forget" strategy. The even could be sent to "message bus" to other applications.
30
+
*`sendCommand` - Message is to ONE exact consumer. It could be used as "fire and forget" or as RPC. The command message is always sent in scope of current application.
28
31
32
+
### Send event
33
+
29
34
```php
30
35
<?php
31
36
@@ -35,14 +40,40 @@ where another one (it is called spool producer) collects them in memory and send
0 commit comments