here is idea/workflow:
I have bunch of network devices that I need to communicate with.
a. client (flask/python) sends request: "mac-table sw1" to Celery.
b. celery look at available workers/tasks and if no workers responsible for sw1 exists - it will create one and pass job to it.
all consequent requests for sw1 will be forwarded to existing worker automatically (thus eliminating establishing sessions for every requests and limiting concurrent sessions to the device)
c. if worker idle for some time, it close connection to device and exit.
questions: is Celery good for this workflow ? do you know any example of similar workflow I can get ideas from.
Thank you!