c++ - What is best design pattern for handling rpc requests? -
i'm developing json-rpc project in c++. i've not decided yet how handle rpc's requests. client side, server receives jsons below.
{"method":"app1hoge", ...} {"method":"app1fuga", ...} {"method":"app2foo", ...}
the server side handles applications, app1, app2, etc. think should design applicationrule class each class. in case, app1rule , app2rule classes needed. , should design applicationrulemanager handle each rule. i'm not sure how design applicationrulemanager.
in general, how should design relationship between applicationrulemanager , each applicationrule? strategy pattern familiar case?
any appreciated.
Comments
Post a Comment