Open Closed

Why do I need the Redis cache for the public website? #6533


User avatar
0
ageiter created
  • ABP Framework version: v8.0.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

We have already made several ABP applications with Blazor Server (without Redis Cache). But never with the "Public Website" so far. Now we would like to integrate it and were surprised that the Redis cache is necessary here. We do not have a distributed / tiered application.

I know that this is a prerequisite for the CRM module.

I would be interested to know why the cache is absolutely necessary? What are the reasons for this? Does it have to do with the fact that the Blazor app and the public website share certain things?

I also have the question of how large the cache needs to be if I host the application on Azure... that costs extra money again...

Thanks, Adrian


59 Answer(s)
  • User Avatar
    0
    ageiter created

    For 4 entries in the list 823 ms instead of 61 ms is not nothing and from my point of view not usable. You can see this in the behavior of the UI (see video with the delay and the "flickering" of the buttons). The user experience suffers greatly as a result. I can still do tests to see how it looks with large lists...

    With 20 items it already takes 1315 ms... I don't want to know how long you have to wait with many more items.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://streamable.com/o7d2wv?src=player-page-share

    There is no problem in my local environment.

  • User Avatar
    0
    ageiter created

    Ok... strange... but yes, it runs smoothly in your video. Redis is really enabled? ;-)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, Redis is enabled.

  • User Avatar
    0
    ageiter created

    Thank you for taking the time to do the test.

    I have now installed Redis directly in Ubuntu with WSL2 (without Docker). And it's already running twice as fast. It's not perfect yet, but it's much better.

    I'm looking forward to seeing how fast it runs in an Azure deployment.

    Do you run Redis the same way? (Ubuntu) or are you running it in Docker?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I'm using Mac M1 and docker desktop.

  • User Avatar
    0
    ageiter created

    Ok... hm... these are my stats:

    But something is still completely unclear to me. Why do I NOT notice these delays in the admin views? (e.g. language management texts or security logs)? These are loaded very quickly, although there are many more entries there.

    The most annoying thing is that the buttons in the toolbar are reloaded with every click in the grid. Why is this the situation? Permissions only need to be checked when the page is loaded.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I don't have much experience with this.

    But I'm sure it's not about the code. It is about the environment.

  • User Avatar
    0
    ageiter created

    Ok, I have found the cause and asked a separate question.

    Thank you for your support, I think we can now close the question.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11