Custom Multi-threaded Messaging Queue system
Create a Dockerfile with gRPC and CMake installed.
FROM ubuntu:latest
RUN apt-get update && apt-get install -y cmake build-essential git
WORKDIR /deps
EXPOSE 9999
RUN git clone --recurse-submodules -b v1.66.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc
RUN mkdir -p /deps/grpc/build && cd /deps/grpc/build && \
cmake -DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
.. && \
make -j8 install
Build the container.
docker build -t myapp .
Run the Docker container.
docker run -p localhost:9999 -it myapp
Clone the MultiMQ
repository into a directory (e.g., /root/
):
git clone https://github.com/SaiTarun314/MultiMQ.git
Create a build folder in the MultiMQ
directory and navigate into it:
mkdir build && cd build
Generate the gRPC code, stubs, and other dependencies by running:
cmake ..
make
Run the generated executable file:
./multimq
Use an API testing application (e.g., Postman) to test the application endpoints.
Note: Make sure to import the
.proto
files into Postman to define the gRPC service properly.