Understand the ƒun execution environment limitations
mainWhile ƒun closely resembles the AWS Lambda environment, be aware of these differences:
- User Identity: Processes run as your current local user, not the
sbx_user1051user used in AWS. - Sandboxing: Processes are not sandboxed or chrooted. Do not use hard-coded paths like
/var/task,/var/runtime, or/opt. Instead, use the environment variablesLAMBDA_TASK_ROOTandLAMBDA_RUNTIME_DIRto locate files. - Process Freezing: Processes are frozen/unfrozen using
SIGSTOPandSIGCONTsignals rather than the cgroup freezer. - Native Binaries: For runtimes like Go, binaries must be compiled for your local operating system (e.g., macOS) to run locally.