Support calling inflight methods from different processes #4560
Labels
🐶 dogfood
Discovered while dogfooding Winglang
✨ enhancement
New feature or request
🎨 sdk
SDK
🕹️ simulator
Related to the `sim` compilation target
Milestone
Feature Spec
Allow compute resources (like
cloud.Service
,cloud.Function
, etc.) in separate processes to interact with simulated resourcesUse Cases
Today, the resources in the Wing Cloud Library are constrained to being part of the same Node.js process as the simulator. Each resource (like an a
cloud.Bucket
instance) maps to a single object in Node.js, and references to these objects are shared and passed around by inflight code. But this architecture won't work if the inflight code is running in a separate process, such as a Docker container. Instead, information about the resource and the method that needs to be called would have to be communicated through some form of IPC, like sockets, pipes, etc.Implementation Notes
An initial version of this was implemented in #4105 using an express server, but it was reverted in #4557 since it resulted in many flakey tests for contributors and in CI.
Component
SDK
Community Notes
The text was updated successfully, but these errors were encountered: