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

Requests not handled after hot-code replacement #82

Closed
danielwiehl opened this issue Jun 7, 2021 · 2 comments
Closed

Requests not handled after hot-code replacement #82

danielwiehl opened this issue Jun 7, 2021 · 2 comments

Comments

@danielwiehl
Copy link
Collaborator

Describe the bug

It turned out that after reloading the application due to hot code replacement, requests sent from a microfrontend to its activator may not be handled. This applies to both, intent- and topic-based requests.

When a micro application reloads during development, e.g., due to a code change, both its activators and regular microfrontends will reload at the same time. When the microfrontend initiates a request-reply communication with its activator, the handler may not yet be installed in the activator.

This problem does not exist for regular startups since the host app waits for all activators to complete initialization. However, in the process of hot code replacement, the host app is already operational and activators and regular microfrontends will boot simultaneously, causing the described bug.

There are several ways to address this problem:

  • Add support for retained intents
  • Wait to dispatch intents and messages to activator clients until they signal readiness
  • ...

Environment

Please complete the following information:

  • SCION Microfrontend Platform version: 1.0.0-beta.15
@danielwiehl danielwiehl added this to Triage in SCION via automation Jun 7, 2021
@danielwiehl danielwiehl moved this from Triage to Backlog Microfrontend Platform in SCION Apr 20, 2022
@danielwiehl
Copy link
Collaborator Author

We added support for retained intents in issue #142.

@k-genov
Copy link
Contributor

k-genov commented Apr 20, 2023

Solved by #142.

@k-genov k-genov closed this as completed Apr 20, 2023
SCION automation moved this from Backlog Microfrontend Platform to Done Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
SCION
  
Done
Development

No branches or pull requests

2 participants