MVP: Respond to a chat request via RabbitMQ #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement a MVP that allows to generate chat responses to message requests on a RabbitMQ queue.
This pull request introduces several significant changes to enhance the chat request handling functionality by integrating RabbitMQ and adding necessary configurations. Key changes include new model classes for
ChatRequest
andChatResponse
, a handler for processing chat requests, and RabbitMQ configuration setup.Enhancements to Chat Request Handling:
New Model Classes:
ChatRequest
class to represent incoming chat requests (src/main/java/com/penguineering/hareairis/model/ChatRequest.java
).ChatResponse
class to represent responses to chat requests (src/main/java/com/penguineering/hareairis/model/ChatResponse.java
).Handler for Chat Requests:
ChatRequestHandler
to process incoming RabbitMQ messages, interact with the chat client, and send responses (src/main/java/com/penguineering/hareairis/rmq/ChatRequestHandler.java
).RabbitMQ Integration:
RabbitMQConfig
to set up the queue and message listener container (src/main/java/com/penguineering/hareairis/rmq/RabbitMQConfig.java
).application.yml
to include RabbitMQ virtual host and queue name properties (src/main/resources/application.yml
). [1] [2]Dependency Management:
jackson-databind
dependency to handle JSON serialization and deserialization (pom.xml
).Documentation:
README.md
to include new environment variables for RabbitMQ virtual host and chat requests queue (README.md
).