askrobots / dbbasic-object-primitive
Public
Python functions as REST objects, with clustering, load balancing and state replication; no containers or orchestration.
__init__.py · 799 bytes · 29 lines
| 1 | """ |
| 2 | Runtime execution engine for the Object Primitive System. |
| 3 | |
| 4 | This module handles the execution of endpoint code: |
| 5 | - Endpoint execution (run user code) |
| 6 | - Compilation (Python bytecode compilation) |
| 7 | - Caching (compiled endpoint caching) |
| 8 | - Hot reload (update code without restart) |
| 9 | - Sandboxing (security isolation) |
| 10 | - Resource limits (CPU, memory, time) |
| 11 | |
| 12 | Philosophy: |
| 13 | The runtime executes endpoint code efficiently and safely. |
| 14 | It should be fast, secure, and isolated. |
| 15 | |
| 16 | Endpoint code is untrusted - we must sandbox it. |
| 17 | But we also want performance - cache compiled code. |
| 18 | |
| 19 | Hot reload enables live updates without downtime. |
| 20 | """ |
| 21 | |
| 22 | __all__ = [ |
| 23 | # To be implemented in Phase 4+ |
| 24 | # "EndpointExecutor", |
| 25 | # "CodeCompiler", |
| 26 | # "EndpointCache", |
| 27 | # "HotReloader", |
| 28 | # "Sandbox", |
| 29 | ] |