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 installBuild the container.
docker build -t myapp .Run the Docker container.
docker run -p localhost:9999 -it myappClone the MultiMQ repository into a directory (e.g., /root/):
git clone https://github.com/SaiTarun314/MultiMQ.gitCreate a build folder in the MultiMQ directory and navigate into it:
mkdir build && cd buildGenerate the gRPC code, stubs, and other dependencies by running:
cmake ..
makeRun the generated executable file:
./multimqUse an API testing application (e.g., Postman) to test the application endpoints.
Note: Make sure to import the
.protofiles into Postman to define the gRPC service properly.