Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize Construct and Call calls in the Node.js SDK #16427

Closed
wants to merge 1 commit into from

Conversation

flostadler
Copy link
Contributor

@flostadler flostadler commented Jun 20, 2024

Description

Due to global state issues in the nodejs runtime, we serialized MLC construct requests in #6452.
This had the downside that cloud resources were not created in parallel if multiple instances of the same component were instantiated in the same program.

This change removes the serialization of Construct and Call calls.
The global state issues were already fixed in #10568

Fixes #7629

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

Due to global state issues in the nodejs runtime, we serialized MLC construct requests in #6452.
This had the downside that cloud resources were not created in parallel if multiple instances
of the same component were instantiated in the same program.

This change removes the serialization of Construct and Call calls.
The global state issues were already fixed in #10568
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2024-06-20)

Features

  • [sdk/nodejs] Parallelize Construct and Call calls in the Node.js SDK
    #16427

@flostadler
Copy link
Contributor Author

I still need to figure out how to properly test this. There's existing tests covering this code (including the uncaught error handler), but I'd like to create a test that tests the parallel execution of MLC construct requests and Call requests.

@flostadler flostadler closed this Jun 20, 2024
@flostadler flostadler deleted the 7629-parallelize-node-mlc branch June 20, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support parallel construct requests for nodejs multi-lang components
2 participants