> ## Documentation Index
> Fetch the complete documentation index at: https://hercules.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Backend

> Serverless backend with API routes, database access, scheduled functions, cron jobs. Scales automatically.

Your app runs on a scalable, serverless backend. It can handle millions of function calls per day, and run events at scheduled times.

<div className="screenshot rainbow">
  <img src="https://mintcdn.com/zeus-0f6dadbf/kr00GTozD-mEFvWE/images/apps/backend-logs.png?fit=max&auto=format&n=kr00GTozD-mEFvWE&q=85&s=e2548c109968fc738a401ed515799e2e" alt="Hercules backend logs" width="2232" height="1300" data-path="images/apps/backend-logs.png" />
</div>

### What can the backend do?

* **API routes:** Handle requests from your frontend
* **Database access:** Query and update your data
* **Scheduled functions:** Run functions at a specific times
* **Cron jobs:** Run functions on a recurring schedule
* **Public API:** Expose endpoints that other apps can call to query your data

### How do I view backend activity?

Open the **Backend** tab to see:

* Function execution history (including logs and errors)
* Scheduled jobs (pending and completed)
* Recurring/cron jobs

### How does it scale?

The backend is serverless meaning it can scale up and scale down as needed. This means it's cheap and fast.

<AccordionGroup>
  <Accordion title="What are Hercule backend's public IP addresses?">
    The Hercules backend uses the following public IP addresses:

    **US East (N. Virginia)**

    * IPv4: `216.235.222.0/24`
    * IPv6: `2600:1f18:77e:2300::/56`, `2600:1f10:4a09:7c00::/56`

    **EU West (Ireland)**

    * IPv4: `3.248.173.188`, `34.242.144.108`, `54.170.181.63`, `54.195.47.143`, `54.73.189.39`, `63.33.186.66`
    * IPv6: `2a05:d018:6f:e900::/56`, `2a05:d018:3aa:3c00::/56`
  </Accordion>
</AccordionGroup>
