# Backend Services

> Create reports without a browser in .NET and Node.js: the request flow, PDF responses in ASP.NET Core, pooled controls, application data and deployment checks.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > Document Processing > Backend Services
- **578 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/document-processing/backend-services/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/document-processing/backend-services/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/document-processing/backend-services/llms-full.txt

---

You can create reports without a browser. Use the .NET server package `TXTextControl.TXSheetControl.Server` or the Node.js server package `@txtextcontrol/tx-sheet-control-server` to create them in a backend service, and keep document processing separate from host authentication, storage, data retrieval and delivery.

The sections below describe the flow of a request, the response, pooling, where the data comes from and what to check before a deployment.

### Handle a Request

Handle a request for a report in this order:

1. Validate the requested template and the authorized data.
2. Load a clean workbook.
3. Apply the values or the merge.
4. Check the warnings and results.
5. Export.
6. Return the bytes.

> Warning
>
> **Untrusted Paths.** Do not accept arbitrary filesystem paths or server resource directories from an untrusted request.

### Return the Result

- **In ASP.NET Core**, return the PDF bytes with an appropriate content type and download name after awaiting the processing operation.
- **In Node.js**, send a `Buffer` or `Uint8Array` through the framework's response API.

Preserve cancellation and error handling rather than writing a partial success response before the export completes.

### Reuse Controls in a Pool

A warm pool can reduce repeated initialization, but each job needs isolated document state:

- Bound the pool.
- Implement timeouts and cancellation.
- Reload a clean template for reused owners.

Measure actual job latency and queue time. Backend capacity is not determined by a single small-document test.

### Get the Data

Fetch application data through your authorized service layer. The [generic and HTTP data](https://docs.textcontrol.com/tx-sheet-control/dashboards/data-connections/llms-full.txt) APIs are optional integrations exposed through the main packages. No SQL or Ado.NET connector package and no database setup is required for worksheet-based reports and dashboards.

### Check the Deployment

- **Run from the normal build and publish folders** of the application to verify the copied fonts and resources.
- **Test non-English glyphs** and long reports.
- **Log useful warning and error summaries** without including license strings or private customer data.

### Next Steps

- [.NET Server Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/dotnet/llms-full.txt): deploy a .NET backend that creates reports.
- [Node.js Server Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/nodejs/llms-full.txt): deploy a Node.js backend that creates reports.
- [Mail Merge With JSON](https://docs.textcontrol.com/tx-sheet-control/mail-merge/overview/llms-full.txt): merge data into a template as part of a request.
- [Lifetime and Concurrency](https://docs.textcontrol.com/tx-sheet-control/document-processing/lifetime/llms-full.txt): dispose controls, isolate jobs and bound parallel requests.
- [Measuring Performance](https://docs.textcontrol.com/tx-sheet-control/document-processing/performance/llms-full.txt): measure job latency, queue time and throughput.

---

## Nearby

- **Previous:** [Document Properties](https://docs.textcontrol.com/tx-sheet-control/document-processing/properties/llms-full.txt)
- **Next:** [Lifetime and Concurrency](https://docs.textcontrol.com/tx-sheet-control/document-processing/lifetime/llms-full.txt)
