Skip to content

py3-coder/Rabbitmq-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Message-Queue-System 📌

Golang Message Queue System using RabbitMQ

Requirement ::

  1. Golang
  2. MongoDb
  3. RabbitMQ
  4. Postman Api testing tool

A Backend application Implementing Message Queue System

Task  

1.Create an REST API server in Golang which implements the endpoints to addProduct.

2.Push the code to GitHub and submit the URL of the git repository.

📢 Functional requirements:

● Create api to insert

Description HTTP METHODS & URL REQUEST Response
Endpoint for add Product [POST] /addProduct {
user_id:"int",
product_name:"string",
product_description:"string",
product_images:"[]string",
product_price:"int",
compressed_product_images: "[]string",
created_at:"time",
updated_at:"time"}
200 OK (on success)
400 Bad Request (if request format is invalid)

● Create 2 Services Producer and Consumer

● Make sure Producer can Consumer both should be connected to RabbitMQ Server

You Can Run this Message Queue Backed System

  1. Locally 🚀

Run Locally 🚀🚀

Check-Point :

a. Make Sure You have Go installed in your local machine

b. Make Sure You have Mongodb installed in your local machine

c. Make Sure RabbitMQ should be installed in your local Machine

d. Make Sure to Postman API Testing Tool installed ~ For Testing Purpose

Directory:

image

Screenshots ✔✔

Image 01 : Start Producer Services

image

Image 02 : Start Consumer Services

image

Image 02 : Add a Product

image

Image 03 : Producer Service

image

Image 04 : Consumer Services

image

Image 05 : Image Downloaded in local dir

image

Image 06 : DataBase Updated Details:

image

Tech Stack

Language: Go
Database: MongoDB
MessageQueue: RabbitMQ
API-Testing: PostMan

Authors

Saurabh Kumar

Releases

No releases published

Packages

No packages published

Languages