Skip to content
Contents

Using Background with Other Frameworks

Framework Compatibility

Background is designed to work with any framework that supports a server runtime. The integration process is straightforward and requires minimal configuration.

Framework Requirements

The only requirement for using Background is that your chosen framework must support a persistent server runtime environment.

Serverless Integration

For serverless environments, additional configuration is necessary due to the ephemeral nature of serverless functions.

Serverless Guide

For detailed instructions on implementing Background in serverless architectures, refer to our comprehensive Serverless Guide.

Worker Implementation

Running Queues as Dedicated Workers

Background queues can be deployed as independent worker processes:

  1. Create a separate process for queue processing
  2. Configure the worker to connect to your storage solution
  3. The worker will monitor your storage backend and process jobs as they arrive

Standalone Operation

Worker processes operate independently from your main application, allowing for:

  • Dedicated resource allocation
  • Independent scaling
  • Improved reliability

Framework Independence

It's important to note that Background doesn't require a specific framework to function. It can run as:

  • An integrated component within your existing application
  • A standalone worker process with storage connectivity
  • A distributed system across multiple environments

This flexibility ensures Background can adapt to your specific infrastructure requirements.