0

non zk app loading from multiple zk-embedded-app slow due to zk.wpd loading in each app

asked 2020-11-01 10:23:49 +0800

wastemails gravatar image wastemails
30

In microservices kind scenario, while loading content from multiple zk-embedded-app. Each zk-embedded-app is loading zk.wpd file thereby performance is getting degraded.

Any way to implement single single Ui having multiple backend zk apps

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-06 10:17:11 +0800

cor3000 gravatar image cor3000
5409 2 7
ZK Team

updated 2020-11-27 14:07:12 +0800

During my local tests I made the same observations: You definitely won't be able to embed zk-pages running on multiple ZK versions since ZK loads its JS packages into the global namespace. This is a hard constraint, the ZK versions need to match exactly. Also styles in ZK are not scoped you'll need the same theme everywhere. (ZK is still a frontend framework so I'd not call it 'backend')

Besides that there seem to be race conditions initializing multiple embedded divs simultaneously. It seems this scenario hasn't been considered during the development. We'll investigate further and post the relevant issues.

Issue: ZK-4715

Update 2020-11-27: ZK-4715 fixed for 9.5.1 - testable since 9.5.1.FL.20201126(-Eval)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2020-11-01 10:23:49 +0800

Seen: 11 times

Last updated: Nov 27

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More