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 and ChatResponse, a handler for processing chat requests, and RabbitMQ configuration setup.
Enhancements to Chat Request Handling:
New Model Classes:
Added ChatRequest class to represent incoming chat requests (src/main/java/com/penguineering/hareairis/model/ChatRequest.java).
Added ChatResponse class to represent responses to chat requests (src/main/java/com/penguineering/hareairis/model/ChatResponse.java).
Handler for Chat Requests:
Introduced 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:
Configuration:
Added RabbitMQ configuration class RabbitMQConfig to set up the queue and message listener container (src/main/java/com/penguineering/hareairis/rmq/RabbitMQConfig.java).
Updated application.yml to include RabbitMQ virtual host and queue name properties (src/main/resources/application.yml). [1][2]
Dependency Management:
Dependencies:
Added jackson-databind dependency to handle JSON serialization and deserialization (pom.xml).
Documentation:
Environment Variables:
Updated README.md to include new environment variables for RabbitMQ virtual host and chat requests queue (README.md).
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
).