Open Closed

ABP MVC Bundling Lazy Load #7513


User avatar
0
naeem76 created
  • ABP Framework version: v7.1.1
  • UI Type: MVC
  • Database System: EF Core MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

The docs say that

ABP creates the bundle as lazy from the provided files when it's first requested. For the subsequent calls, it's returned from the cache. That means if you conditionally add the files to the bundle, it's executed only once and any changes of the condition will not effect the bundle for the next requests.

Can this be automatically done during start, instead of the first request? I have a pretty complex UI with rive animations and such, and what is happening is when new instances spin up in a load balanced environment, and requests go to those, it takes a while for it to stabilize, and returns broken pages before its fully stabilized. It could even be some other issue. Help is appreciated.


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We have a PR to improve the web farm situation.

    https://github.com/abpframework/abp/pull/19870

    It is available on 8.1

  • User Avatar
    0
    naeem76 created

    Any easy way to migrate to 8.1 on a big project? I've tried following docs, but end up being too many package inconsistencies.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can add a CachedBundleDynamicFileProvider class to solve it temporarily.

    https://support.abp.io/QA/Questions/7209/404-error-because-of-inconsistent-bundle-hash-keys-across-multiple-instances-on-running-MVC-web-service-with-round-robin-setup#answer-3a12b527-36ba-b989-de9c-ad2e2aff17d9

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11