[MAGNOLIA-9197] Connector performance improvements Created: 30/Nov/23 Updated: 11/Dec/23 |
|
| Status: | Open |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Neutral |
| Reporter: | Michael Duerig | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | dx-core-6.3 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Epic Link: | ui push scalability |
| Description |
|
Initial report: when you close a category, it will load all the items expanded by id, one by one, causing lot of calls and closing the subapp for category detail consumea. lot of time. Everytime you open the commerce app it happens the same, and that will cause also for other connectors. More over, there is no cache layer implemented efficiently there. Questions for discovery
Steps to reproduceThis issue was detected with commercetools connector. It´s expected to happen with other connectors too. To reproduce:
Expected resultsA user closes apps and not delay is shown Actual resultsThe loading bar on the user blocks the interface when closing the detail sub app for a category, taking long time until the catalog browser is available. It happens the same when swapping app, closing ecommerce app, opening pages app, and going to ecommerce app again. Development notesWhen closing the subapp and vaadin goes into the focus for the main app, category request per id is triggered per each open item. In the image above it will trigger the request per "women", "clothing" "jackets", "Blazer"....etc reaching as many calls as open items. To detect while debugging, place a break point under https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/browse/magnolia-ecommerce-commercetools-connector/src/main/java/info/magnolia/ecommerce/commercetools/SphereClientProvider.java#59 You will see there is only on client cache connection, which is not caching the request properly. Moreover the different requests that blocks the UI are located at https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/browse/magnolia-ecommerce-commercetools-connector/src/main/java/info/magnolia/ecommerce/commercetools/categories/ByParentCategoryId.java#57 This same behaviour is expected to happen in other clients, although it has not been analysed yet.
|