Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVP: Respond to a chat request via RabbitMQ #2

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Conversation

penguineer
Copy link
Owner

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).

@penguineer penguineer added the enhancement New feature or request label Oct 29, 2024
@penguineer penguineer self-assigned this Oct 29, 2024
@penguineer penguineer merged commit 8cb1aed into main Oct 29, 2024
1 check passed
@penguineer penguineer deleted the mvp-handler branch October 29, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant