This project demonstrates a basic setup of a gRPC-based communication between a Django server and a Spring client.
Run the following command to start the gRPC server in the Django project:
python3 django_server/server/grpc_server/grpc_server.py
Follow the appropriate steps to start the Spring client application.
Send a request to the Spring client by accessing the following URL in your browser or using a tool like curl:
web: http://localhost:8080/send?message=hello
cmd: curl "http://localhost:8080/send?message=hello"
Response: Received your message: hello :)
syntax = "proto3";
package grpc_example;
service ExampleService {
rpc SendMessage(RequestMessage) returns (ResponseMessage) {}
}
message RequestMessage {
string message = 1;
}
message ResponseMessage {
string reply = 1;
}
Feel free to reach out to me at x1xgudwls@naver.com.