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: Doc/docs/index.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,32 +157,33 @@ Let's test this by sending a simple TCP message `"Hello from proxy-sidecar"` fro
157
157
To communicate with the poe this JSON format is required:
158
158
```json
159
159
{
160
-
"direction":"<direction>",
161
160
"service": <destination-service.namespace>,
161
+
"direction":"<direction>",
162
162
"payload":{
163
-
"<message>": "<value>"
163
+
"<payload>": "<message>"
164
164
}
165
165
}
166
166
```
167
167
Here's the explanation of each key:
168
168
169
-
-**direction**: The direction of the message (Incoming). If there's no direction in the payload the system logs an error message and send a "Delivery failed" ACK message
170
-
-**service**: The name of the destination service. For example, if you want to send a message to the pod "test-proxy2" your destination is "test-proxy.cortexflow". In general, the default namespace is set to "cortexflow" as a fallback and can be not specified if your service lives in the cortexflow namespace,otherwise you must specify the namespace
169
+
-**direction**: The direction of the message (Incoming). If there's no direction in the payload the system logs an error message and send a "Delivery failed" message
170
+
-**service**: The name of the destination service. For example, if you want to send a message to the pod "test-proxy2" your destination is "test-proxy.cortexflow". In general, the default namespace is set to "cortexflow" as a fallback and can be not specified if your service lives in the cortexflow namespace,otherwise you must specify the namespace
171
171
-**payload**: The message you want to send encoded in base64 format. You can easily encode a text message in base64 using this command:
172
+
172
173
```bash
173
174
echo -n "Hello from proxy-sidecar"| base64
174
175
```
175
176
Result:
176
177
```bash
177
178
SGVsbG8gZnJvbSBwcm94eS1zaWRlY2Fy
178
179
```
179
-
If you try to send a message using a different format you'll get an error and a 'Delivery Failed' ACK message.
180
+
181
+
If you try to send a message using a different format you'll get an error and a 'Delivery Failed' message.
180
182
Now that all the assumptions have been made, we can try to send a message to test-proxy2 from the test-proxy pod using this command:
At this point we have done! We received a success response from test-proxy2. We can decode the payload using this command:
198
198
```base
@@ -225,5 +225,3 @@ Here's a detailed explanation of every key of the response:
225
225
### Summary
226
226
227
227
The **CortexFlow Proxy** is the workhorse of the CortexFlow service mesh, enabling secure, reliable, and efficient communication between services. By handling traffic interception, encapsulation, and secure channel establishment, it ensures that your applications can communicate seamlessly without requiring any modifications. Additionally, its support for observability and logging provides valuable insights into system performance, making it easier to monitor and troubleshoot your cluster.
228
-
229
-
With features like UDP/TCP traffic interception, protocol-agnostic communication, and advanced resiliency mechanisms, the CortexFlow Proxy is an essential component for building robust and scalable distributed systems.
0 commit comments