-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7ccae2
commit 4cdad8d
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
deployments/tyk/scripts/examples/streams/http-to-amqp/http-to-amqp-1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
deployments/tyk/scripts/examples/streams/http-to-amqp/http-to-amqp-2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |