phodal / mooa

Mooa 是一个为 Angular 服务的微前端框架。A independent-deployment micro-frontend Framework for Angular from single-spa.
http://mooa.phodal.com/
Other
850 stars 109 forks source link

Recovering from failure. #18

Closed GeoffSeloana closed 5 years ago

GeoffSeloana commented 5 years ago

Hi,

It seems as if the child applications cannot reload when they fail. How can i ensure that the applications can load again when they fail?

How can the child applications recover from failure when they load.

Highly appreciate your assistance.

phodal commented 5 years ago

Actually, I don't have some assume about this. At the first, the child application can be load again. In my option, If a application can not be load, it will be a resources issue.

Can you provide some really use cases?

GeoffSeloana commented 5 years ago

Yes you are right. If an application cannot load then it is a resource issue. In my case the applications are not always available, sometimes they are offline. How do we implement a retry to be able to retry to load a child application again?

phodal commented 5 years ago

It's a business domain relative logic. In this case, I think you need to record a failure loading. And then, when you need, you can reload this application. But if you know time to reload application, you can just load application like first time.