KiritoXDone opened a new issue, #987:
URL: https://github.com/apache/burr/issues/987

   **Is your feature request related to a problem? Please describe.**
   
   #390 asks for deployment examples on additional cloud providers, with a 
separate issue for each target. There is currently no example showing Burr 
running inside Cloudflare Python Workers with state persisted through a D1 
binding.
   
   **Describe the solution you'd like**
   
   Add a self-contained example under `examples/deployment/cloudflare-workers/` 
that:
   
   - Runs a two-action Burr chat application inside the Python Worker runtime, 
using a configurable OpenAI-compatible model endpoint.
   - Implements Burr's async persistence interface in the example with D1 
prepared statements, saving and restoring action checkpoints across requests 
and deployments.
   - Demonstrates pausing before a model call, resuming a pending action, and 
reusing completed request IDs without another model call.
   - Includes bearer-token access protection, local setup and cloud deployment 
instructions, and an automated test using real workerd/local D1 with a mock 
model HTTP service.
   
   The D1 adapter would remain example code; this does not propose changing 
Burr core or deploying the tracking server/UI.
   
   **Describe alternatives you've considered**
   
   Run Burr on a conventional Python server or container with an existing 
database persister. That remains useful, but does not demonstrate using the 
Python Workers runtime and its D1 binding.
   
   **Additional context**
   
   Related to #390. An implementation is available in [my 
fork](https://github.com/KiritoXDone/burr/tree/examples/cloudflare-workers-d1), 
and I plan to open a PR for review. Validation so far includes 38 local Worker 
checks and 20 hosted checks with a real model endpoint and remote D1, including 
pending and completed state recovery across two redeployments.
   
   Tooling disclosure: the implementation and this submission were prepared 
with OpenAI Codex assistance.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to