Open Closed

Redis -help me understand why it is needed? #1774


User avatar
0
improwise created

Hi,

Have searched for this but not found any good answer. Can someone please explain to me the reasoning for deciding to use Redis in ABP and be dependent on it for the "public website" features? Having researched it, my understanding is that in order to use it, you have to install the Linux subsystem and then a linux distro and then finally Redis. If that is the case, I would much rather just find some other solution for my needs for a public website/CMS that does not require all these extra steps and maintaining something I don't feel familiar with which might also have some additional concerns regarding stability, performance, security etc. in a production environment.

I know that .net core is supposed to be multi platform these days but would imagine that it is still mainly "Microsoft developers" using it and that it is also mostly hosted in Windows enviroments so having to go the extra mile here seems strange to me.

Obviously there are lots of smart people involved in the ABP project, so perhaps I am missing something here that would make me understand the reasoning here and why it is a better solution than the alternatives :)

Thanks.


6 Answer(s)
  • User Avatar
    0
    improwise created

    I should perhaps add that we have been able to install and configur Redis on a development machine and it seem to be working so this is more a question of WHY than HOW.

    For anyone reading this interested in the HOW:

    https://developer.redis.com/create/windows/ https://redis.com/blog/redis-on-windows-10/

    Thanks.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    To improve performance, we cache permissions and settings etc, so we need distributed caching to keep public and back-end website data consistent.

  • User Avatar
    0
    improwise created

    Related question, should we consider using something like Memurai instead which seems to run natively on Windows?

    https://www.memurai.com/

  • User Avatar
    0
    improwise created

    Hi,

    To improve performance, we cache permissions and settings etc, so we need distributed caching to keep public and back-end website data consistent.

    Thanks, but that isn't really an answer to why the choice was made to go with Redis in particular, just why caching in general is a good thing.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Redis is the most popular cache server. It has undergone a lot of tests and has extremely high performance and stability. so this is why we choose to redis.

    Memurai seems good, you can also try to use it, the code does not need any changes, because it is fully compatible with redis

  • User Avatar
    0
    improwise created

    Hi,

    Redis is the most popular cache server. It has undergone a lot of tests and has extremely high performance and stability. so this is why we choose to redis.

    Memurai seems good, you can also try to use it, the code does not need any changes, because it is fully compatible with redis

    Thank you.

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