jdecool/scaleway-runtimepublic Fork
⑂ v0.1.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
docs(glossary): do not tie the Front Controller to public/index.php 2807a56Unverified · on v0.1.0 · Jérémy DECOOL · 10d ago
GLOSSARY.md · 51 lines · 1.8 KBmarkdown
Blame HistoryOpen raw

Scaleway Runtime

Symfony Runtime integration that runs PHP applications on Scaleway Serverless Functions.

Language

Invocation:
A single call of the function by Scaleway, carrying one Event and expecting one Function Response.
Avoid: Request (reserved for the Symfony HTTP request), call, execution

Event:
The array Scaleway passes to the handler, describing an HTTP call or a CRON trigger.
Avoid: Payload, input

Function Response:
The array returned to Scaleway (status code, headers, body).
Avoid: Output, result

Handler:
The global handle($event, $context) function Scaleway calls for each Invocation.
Avoid: Entry point, front controller

Front Controller:
The application's unchanged entry script, public/index.php by default, returning the closure that builds the Application.
Avoid: Handler, bootstrap

Application:
The object built by the Front Controller closure (Kernel, Response, PSR-15 handler, Console application, callable).
Avoid: App, service

Warm Process:
A PHP process that survives between Invocations and keeps the booted Application in memory.
Avoid: Worker, long-running process

HTTP Invocation:
An Invocation triggered by an HTTP call to the function's endpoint.

CRON Invocation:
An Invocation triggered by a Scaleway CRON trigger, carrying the trigger's configured arguments as body.
Avoid: Scheduled job, cron task

Command Invocation:
A CRON Invocation whose body names a console command to run instead of an HTTP route, and carries the CRON Secret.

CRON Secret:
The shared secret, known to the function and to its CRON triggers, that proves a CRON Invocation may run a console command.
Avoid: Token, API key

Emulator:
The local server that turns real HTTP requests into Events and calls the Handler, to run an application without deploying it.
Avoid: Local runtime, dev server

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Scaleway Runtime

Symfony Runtime integration that runs PHP applications on Scaleway Serverless Functions.

## Language

**Invocation**:
A single call of the function by Scaleway, carrying one Event and expecting one Function Response.
_Avoid_: Request (reserved for the Symfony HTTP request), call, execution

**Event**:
The array Scaleway passes to the handler, describing an HTTP call or a CRON trigger.
_Avoid_: Payload, input

**Function Response**:
The array returned to Scaleway (status code, headers, body).
_Avoid_: Output, result

**Handler**:
The global `handle($event, $context)` function Scaleway calls for each Invocation.
_Avoid_: Entry point, front controller

**Front Controller**:
The application's unchanged entry script, `public/index.php` by default, returning the closure that builds the Application.
_Avoid_: Handler, bootstrap

**Application**:
The object built by the Front Controller closure (Kernel, Response, PSR-15 handler, Console application, callable).
_Avoid_: App, service

**Warm Process**:
A PHP process that survives between Invocations and keeps the booted Application in memory.
_Avoid_: Worker, long-running process

**HTTP Invocation**:
An Invocation triggered by an HTTP call to the function's endpoint.

**CRON Invocation**:
An Invocation triggered by a Scaleway CRON trigger, carrying the trigger's configured arguments as body.
_Avoid_: Scheduled job, cron task

**Command Invocation**:
A CRON Invocation whose body names a console command to run instead of an HTTP route, and carries the CRON Secret.

**CRON Secret**:
The shared secret, known to the function and to its CRON triggers, that proves a CRON Invocation may run a console command.
_Avoid_: Token, API key

**Emulator**:
The local server that turns real HTTP requests into Events and calls the Handler, to run an application without deploying it.
_Avoid_: Local runtime, dev server