Skip to main content
Brainiac
April 3, 2019
Question

REDIS (Azure) and ColdFusion 2018 Enterprise

  • April 3, 2019
  • 2 replies
  • 2317 views

Hi,

Can anyone please tell me if ColdFusion2018 and REDIS (on Azure, or even another REDIS service) are currently viable?

Thanks,

Mark

This topic has been closed for replies.

2 replies

Charlie Arehart
Community Expert
November 27, 2019

Mark (tribule), did you ever get any further with assessment of Redis? And if you did, can you clarify if it was using Redis for sessions or Redis as an alternative distributed caching engine for CF caching?

/Charlie (troubleshooter, carehart. org)
tribuleAuthor
Brainiac
May 7, 2020

Sorry, missed a reply to this one.

 

We were originally on Azure and so REDIS was a built-in option. We tried it again for 2 months, for sessions. No noticable performance gain was noted. It did cause a lot of reported errors, and none could be fixed, we just had to live with them. We eventually moved from Azure since its performance was poor and the costs of using it too complex, so we ended using REDIS at that point.

BKBK
Community Expert
May 7, 2020

Thanks for your update.

Charlie Arehart
Community Expert
April 3, 2019

Viable, as in what? Do they work? Yes. Can cf2018 session vars in Redis be stored in an azure redis cache (or any other)? Yes.  Do I mean I've done it? Yes. Can I confirm it's highly scalable? No I cannot, because that depends on so many variables, both in terms of your traffic volume and nature, what you store in the session vars, the cf config, and the configuration of the Redis store, its redundancy, etc.

But viable as in, does it work? Again, yes.

/Charlie (troubleshooter, carehart. org)
tribuleAuthor
Brainiac
April 3, 2019

Thanks Charlie. Our ISP told us that there were some problems with REDIS for their customers, in that sessions were lost and that there were bugs, and Adobe could not find them or assist. We will give it a go and see anyway. We'd use it for login sessions and other data primarily (nothing complex). I just wanted to see if performance could be improved.

BKBK
Community Expert
August 12, 2019

Wait, let's not mix things up. What Tribule was referring to initially and until his last comment was CF's ability to use Redis as an alternative session store. The only choices are that or the default of storing them in CF's heap (not even in ehcache).

The "alternative caching" you refer to now BKBK (and in tribule's very last sentence of his previous comment) is instead about the change in CF2018 to allow "alternative caching engines". That's quite different.

As background for some who may come upon this thread, from CF9 until then, the only caching engine was ehcache. Now in CF2018 Standard one can switch to JCS (Java's caching engine), while in CF2018 Enterprise one can switch among those or memcached or redis.

So BKBK, when you say you have been looking for anyone who has used REDIS as "the main caching engine" for CF, let's just be clear that while you may not have been able to find "anyone" using that, just know that the ONLY people who COULD do it would be a small percent of the CF population: those who are a) running CF2018, b) running Enterprise, c) use CF's caching features, d) knew that CF2018 let you change the caching engine, e) chose to change it, and f) chose redis (vs memcached or jcs). And then g) they'd have to be people who had reason to somehow discuss publicly their use of it. That may well be a very small population. :-) But it doesn't mean they've had a problem with it, of course.

Still, I realize you may prefer (or simply hope) to see more word of people using it. That will come in time.

Another challenge is that implementing Redis on Windows is challenging, and lots of CF shops really do use Windows--yep, even large scale enterprises.

But that's where alternatives like Azure's Redis service (as Tribule mentioned) or others will help ease the transition. Of course, then it's an outside resource, with network latency, and its managed elsewhere (so one has to learn how to monitor and twiddle its knobs). I have more hope that Windows shops might instead leverage a Docker container running Redis (in Linux) just to make it easier.

If you are a Windows shop and might be intrigued about leveraging redis, either for sessions or for caching, and you've tripped over implementing redis, do consider using a docker container of it instead. I'll be curious to hear if folks try that, especially those who either test or just run a large load against it.

And of course, like you both, I would look forward to hearing more from ANYONE using redis (in any implementation) for those. But let's do keep distinct the original question (using it for CF sessions--where it's the only alternative and is in CF 2016 and 2018 Std and Enterprise) vs this later discussion (using it for CF caching in CF2018, where it's one of 4 alternatives, but along with memcached it's in CF2018 Enterprise only) .

HTH.


The explanation may be useful to others, but is not relevant to my question. My question was to tribule​. I wish to hear of his experience with REDIS. His original post is, in my opinion, on REDIS as a caching solution in ColdFusion in general. Not only as a cache for sessions. In any case, any information from anyone who has used REDIS will be greatly appreciated.