libraries - Exposing a library via zeromq -
i wanting know best way expose library via zeromq. say, install machine learning library (mll) on 1 machine, , have zeromq broker running on another. now, if have zeromq client needs call functions within mll, how can via broker.
i wanting know steps need take make work libraries in generic way.
basically need have "listener" picks data zmq , feeds machine-learning backend code, transmits results requestor.
there lot of design choices made, such format use serialize data between client , server (json? yaml? pickle? thrift? ...) , , how encode requests , request options. things considered, pretty straightforward zmq usage.
the problem comes when want more feature-rich, complete, robust, etc. design--things multi-threaded or multi-process servers, multi-machine scalability, secure user / request authentication , authorization, job reporting , dashboard, or job checkpointing. "extras" common "network job scheduler" or "(enterprise) message broker" functions tend come out-of-the-box packages celery or rq.
if don't want go full "message broker middleware" route, might start examining others' designs lightweight zmq-based job brokers, such this 1 jeff knupp.
Comments
Post a Comment