Coder Social home page Coder Social logo

henriquelima12 / order-management-worker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

This project is a worker responsible for receiving, processing and performing actions based on messages that are sent by another system through RabbitMQ.

Java 100.00%

order-management-worker's Introduction

Order Notification Worker

This project is a Worker Service that receives and processes real-time order notifications from the Order Management System through RabbitMQ. It is designed to work seamlessly alongside the Order Management System, ensuring that all order-related events are handled efficiently and reliably.

Features

  • Message Consumption: Listens to the RabbitMQ queue for new order notifications.
  • Order Processing: Processes the incoming orders and performs the required business logic.
  • Error Handling: Implements robust error handling to ensure no message is lost or mishandled.
  • Scalable Architecture: Built with Spring Boot, allowing easy scaling and integration into larger systems.

Technologies Used

  • Spring Boot: Provides a robust framework for building the worker service.
  • RabbitMQ: Handles message queuing and delivery for real-time processing.
  • Lombok: Reduces boilerplate code in Java classes.
  • Maven: Manages dependencies and builds the project.
  • Docker Compose: Simplifies the setup and management of the RabbitMQ service via containerization.

Getting Started

Prerequisites

JDK 17 or higher Maven 3.8.1 or higher RabbitMQ server installed and running

Running the Project

  1. Clone the repository:
    git clone [email protected]:yourusername/order-management-worker.git
    cd order-management-worker
    
  2. Start RabbitMQ using Docker Compose:
    docker-compose up -d
    
  3. Configure RabbitMQ (Queue, Exchange, Routing Key): Access the RabbitMQ management console at http://localhost:15672 (default username/password: guest/guest) and manually create the necessary queue, exchange, and routing key:
  • Queue: Define the queue that the worker will listen to (order-request-queue).
  • Exchange: Create an exchange and bind it to the queue (order-request-exchange).
  • Routing Key: Set up the routing key that directs messages from the exchange to the queue (order-request-rout-key).
  1. Install dependencies:
    mvn clean install
    
  2. Run the project: ´´´bash mvn spring-boot:run

order-management-worker's People

Watchers

Henrique Lima avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.