opendatacube / datacube-wps

Web Processing Service running on opendatacube
Other
7 stars 3 forks source link

Dispatch processing externally from web server #119

Open benjimin opened 3 years ago

benjimin commented 3 years ago

The OWS WPS spec facilitates two modes:

The problem is that asynchronous tasks should not be executed by the web host itself directly.

The solution will be to dispatch tasks to some form of queue, entrusting the core processing to a separate resource. (The implementation could involve SQS and a dask cluster, just for one example.) This will decouple the processing performance from the HTTP responsiveness. The decoupling may also reduce the resources that need be kept idling.

benjimin commented 2 years ago

A queue-based design would also facilitate a serverless implementation, to reduce hosting costs (assuming infrequent demand).