Skip to content

Commit

Permalink
messaging update
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarvey committed Nov 6, 2024
1 parent c7ccae2 commit 4cdad8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo "Streams - HTTP to AMQP"
echo "Part 1: Listen for messages"
echo "Once connected, run part two of this example in a different terminal. The messages sent will appear here."
echo "Tyk enables server-sent events to consume messages from an AMQP queue."
echo "Once connected, run part two of this example in a different terminal. The messages sent by part 2 will appear here."
echo "Tyk enables messages in am AMQP queue to be consumed using server-sent events."
echo "Connecting to the SSE endpoint..."
curl -N http://tyk-gateway.localhost:8080/streams-http-to-amqp/sse
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo "Streams - HTTP to AMQP"
echo "Part 2: Send a message"
echo "Each time this script is run, the message 'Hello, Tyk Streams!' is sent via the message broker, RabbitMQ."
echo "Tyk converts the HTTP POST request into AMQP, which results in the message be placed on the RabbitMQ message queue."
echo "Tyk converts the HTTP POST request into an AMQP publish message, which is then placed in the RabbitMQ message queue."
echo "Check part 1 to see that the message is received."
curl -X POST http://tyk-gateway.localhost:8080/streams-http-to-amqp/post -d '{"message": "Hello, Tyk Streams!"}' -H "Content-Type: application/json"

0 comments on commit 4cdad8d

Please sign in to comment.