Hi,
we’re considering using Redis as a distributed cache.
Our applications run on the .NET stack and 95% of our customers don’t really need a distributed cache to support their workload.
For the 5% that really need it is OK for us to go through the extra work of setting up linux servers.
In any case, we would like to use Redis Pub/Sub mechanism in every customer (to invalidate local caches).
Could someone briefly summarize why the build from Dušan Majkić is not production ready for Windows?
Is it good enough for PUB/SUB?
Thanks in advance
Then set up Linux servers ;)
> In any case, we would like to use Redis Pub/Sub mechanism in every customer
> (to invalidate local caches).
>
> Could someone briefly summarize why the build from Dušan Majkić is not
> production ready for Windows?
Background saving and AOF rewriting (BGSAVE, BGREWRITEAOF, as well as
the BGSAVE that is induced when a slave connects to a master) is
implemented in Linux as a fork operation. Since fork doesn't exist on
Windows, those commands have been replaced with ones that don't fork,
and will block the server until the save/rewrite is complete. For most
people who want to save their data, this makes the Windows build
unusable. There have been discussions on how to remove the need to
fork, but none have been implemented.
> Is it good enough for PUB/SUB?
Yes.
Regards,
- Josiah
The win32 ports of Redis are not "official" and we'll not be able to
help if it crashes or if there are other issues.
From our point of view those ports are cool projects, but we don't
support them because it's a modified code base.
Cheers,
Salvatore
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/P9X7fzx1wHcJ.
>
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.
--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele
> Thank you for the heads-up Salvatore.
You are welcome, I wonder if you are also aware that there is a new
win32 port made by Windows people, partially based on the code (or
ideas?) written by Dušan. This port used to be a patch, but now there
is a repository and so forth.
https://github.com/Microsoft-Interop/redis
Cheers,
Salvatore
Thanks Salvatore for pointing out our effort to port Redis on Windows (that is based on both Dusan's code and ideas).
The current version of the code is still a prototype and definitively not ready for 'production' use. We are about 2 weeks away from releasing a new version of our code that should provide a better solution for the Fork/COW mechanism that is not available on Windows. If we don't see a big gap in performance between our implementation and Linux we will focus on testing and provide a stable version that could be considered 'beta', not yet ready for production but definitively more stable. In the meanwhile we will focus on testing another solution and see if it get us even better performance, anyway our roadmap is available (https://github.com/Microsoft-Interop/redis/wiki/Ideas-for-snapshotting-improvements-and-current-roadmap-for-Redis-on-Windows).
Claudio
https://github.com/Microsoft-Interop/redis
Cheers,
Salvatore
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
On Mon, Feb 27, 2012 at 2:37 PM, Claudio <ccal...@hotmail.com> wrote:
> Just chiming in to provide some details.
>
> [snip]
>
> If we don't see a big gap in performance between our implementation and Linux we will focus on testing and provide a stable version that could be considered 'beta', not yet ready for production but definitively more stable. In the meanwhile we will focus on testing another solution and see if it get us even better performance, anyway our roadmap is available (https://github.com/Microsoft-Interop/redis/wiki/Ideas-for-snapshotting-improvements-and-current-roadmap-for-Redis-on-Windows).
Thanks for sharing the roadmap and the details.
Something I noticed in Microsoft-Interop fork compared to Dusan is the
dependency and usage of pthreads-win32
Is there any plan to move to a shim approach where uses Windows API
more directly?
Thank you.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
> The current version of the code is still a prototype and definitively not ready for 'production' use. We are about 2 weeks away from releasing a new version of our code that should provide a better solution for the Fork/COW mechanism that is not available on Windows
Hello Claudio,
thank you for sharing. About the Fork/COW mechanism, I think there are
ways to do it so that will perform pretty well at least for small
values. Actually for small values that are specially encoded in
ziplists/zipmaps/... it is possible to do it *better* than OS copy on
write, because to duplicate the value all you have to do is
alloc+memcpy of a piece that is smaller than a 4096 page.
Probably for bigger objects it will be slower, like big lists, but at
least the implementation has some interesting point where it is also
better, and it's pretty cool.
Claudio
-----Original Message-----
From: redi...@googlegroups.com [mailto:redi...@googlegroups.com] On Behalf
Of Luis Lavena
Sent: Monday, February 27, 2012 11:10 AM
To: redi...@googlegroups.com
Subject: Re: Redis on Windows - Dušan Majkić - is good enough just for
PUB/SUB?
Hello Claudio,
--
But I also hope to get some feedback from You and the Redis community to
help us to focus on the right scenarios.
Claudio
-----Original Message-----
From: redi...@googlegroups.com [mailto:redi...@googlegroups.com] On Behalf
Of Salvatore Sanfilippo
Sent: Monday, February 27, 2012 11:16 AM
To: redi...@googlegroups.com
Subject: Re: Redis on Windows - Dušan Majkić - is good enough just for
PUB/SUB?
Hello Claudio,
Cheers,
Salvatore
--