For context: I’m new to Workers but have used AWS Lambda / Azure Functions in the past for the use case I’m describing.
I need to expose a number of endpoints, e.g.
/customer-created-event so that an external system can send webhooks to us (via POST). When we receive these webhook events / data, we need to do some processing and more than likely make HTTP requests to third party vendors (e.g. payment gateway).
I have read https://developers.cloudflare.com/workers/platform/limits which seems to indicate that longer running tasks (as an example I’d expect MOST http requests to complete within a second or two, but it wouldn’t be impossible for a request to take as long as 10 seconds), but while reading through various posts here I’ve sort of gotten the impression that the intended use of Workers is for very short lived tasks (e.g. <100ms).
I am wondering if I’m going down the wrong path here thinking about using Workers? I am NOT a “serverless” architecture expert by any means, but at a high level in my mind I’ve been treating Workers as a reasonable analogue for Lambda / Functions.
FWIW, although I’m testing with free accounts and evaluating by myself, customers would likely have Enterprise accounts / SLAs / etc.
Thanks for any guidance / recommendations!