Running the containerized solution
We are ready to run the solution in Docker containers. We have been running the solution with the IDE or command line, but now we will spin up some container and test the solution and Spring profiles as well.
Before that, let's do a quick recap of the solution:
- The first operation, the Tracked Hashtag Service, will persist the hashtag in the Redis database.
- After that, the Tracked Hashtag Service will send the newly tracked hashtag to a queue in the RabbitMQ Broker.
- Tweet Gathering is listening to the queue to track Tweets and trigger the event and starts by listening to the Twitter stream.
- Tweet Gathering starts to get Tweets from the Twitter stream.
- Tweet Gathering publishes Tweets to a queue in the RabbitMQ broker.
- Tweet Dispatcher consumes the message.
- Tweet Dispatcher sends the message to the Client using SSE.
Now that we have understood the solution, let's starts the containers.
Running the Tracked Hashtag Service container
The image has been created in the...