Zmq architecture

I guess you'll have to define services here, is that right? Something like:

    service ZMQServerService {
        rpc ping(PingRequest) returns (PingResponse);
        rpc subscribe(SubscribeRequest) returns (SubscribeResponse);
        rpc unsubscribe(UnsubscribeRequest) returns (UnsubscribeResponse);
        rpc deal(SourceRequest) returns (TargetResponse);
    }
    
    service ZMQClientService {
        rpc ping(PingRequest) returns (PingResponse);
        rpc publish(SourceRequest) returns (TargetResponse);
    }

Note that the responses I put above are not yet defined also. I also don't know exactly which rpc calls should be defined for the application, if any.