> For the complete documentation index, see [llms.txt](https://docs.hypertune.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hypertune.com/sdk-reference/serverless-environments.md).

# Serverless environments

Hypertune SDKs have been uniquely architected to work optimally in serverless and edge environments like:

* Vercel deployments
* Cloudflare Workers
* AWS Lambdas
* Google Cloud Functions
* Netlify Functions
* DigitalOcean Functions

Since serverless instances can be frozen between requests, background SDK tasks, like checking for flag updates and flushing logs, aren't guaranteed to execute.

Instead you can [manually check for flag updates](/sdk-reference/get-flag-updates.md#manually-check-for-flag-updates) with the `initIfNeeded` method, while capping the frequency of initialization requests with the `initDataRefreshIntervalMs` option.

And you can [manually flush logs](/sdk-reference/remote-logging.md#manually-flush-logs) with the `flushLogs` method.
