axa-group / Parsr

Transforms PDF, Documents and Images into Enriched Structured Data
Apache License 2.0
5.86k stars 311 forks source link

Parsr AutoScaling on Kubernetes #674

Open Aareez01 opened 1 year ago

Aareez01 commented 1 year ago

Is your feature request related to a problem? Please describe. Currently we're trying to scale up parsr on our Kubernetes Cluster by using KEDA but the issue that we're facing is that we cannot be sure that the later GET requests to get the progress and the result, will arrive on the same pod to which I initially submitted the document to parse with a POST. This is causing the autoscaling to not work properly.

Describe the solution you'd like

I want an event driven approach, where I "fire-and-forget" submit a document to a service (without knowing the worker), get a pointer back, and eventually get the results (by polling or push).

Specifically, I would like the pod to:

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

We're using only "1 POD" for now.

Additional context Add any other context or screenshots about the feature request here.