Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Caching in OpenBD
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ivo Verbeek  
View profile  
 More options Jun 20 2012, 2:10 pm
From: Ivo Verbeek <ivo.verb...@ritense.com>
Date: Wed, 20 Jun 2012 11:10:10 -0700 (PDT)
Local: Wed, Jun 20 2012 2:10 pm
Subject: Caching in OpenBD

Hi,

Just got back from a Railo presentation and one of the things that I find
usefull, which is not in OpenBD, is better support for caching. Well, I am
aware much is already in OpenBD, but maybe a bit difficult to find. Railo
has the option to cache in memory, cluster, EHCache, Infinispan, Memcached,
or in database (MongoDB, CouchDB). You can simply setup caching for
templates, resources, queries, sessions and in Railo 4 also functions. The
last one sounds an interesting approach, caching function returnvalue based
on its arguments.

Back to OpenBD. I know CFQUERY has a CACHETYPE attribute, but the manual is
not very clear about what is possible with that. Same for CFCACHECONTENT,
same attribute. What are our options?

Regarding sessions in DB or Memcached. In a previous post, some of you
already commented to me that the better approach is to enable J2EE sessions
and then setup different session storage on Tomcat/Jetty level. But a
setting like "sessionstorage=memcached" would simplify that. What is
against that?

Just wanted to hear what you think on the subject.

Ivo

**


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Williamson  
View profile  
 More options Jun 21 2012, 7:30 am
From: Alan Williamson <a...@aw20.co.uk>
Date: Thu, 21 Jun 2012 07:30:05 -0400
Local: Thurs, Jun 21 2012 7:30 am
Subject: Re: [OpenBD] Caching in OpenBD
We have a lot of caching inside of OpenBD ... our problem is simply we
haven't documented it terribly well.

We can cache to memory, file, database, mongo, and memcache.   I need to
simply start documenting this better.

On 20/06/2012 14:10, Ivo Verbeek wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David G Ortega  
View profile  
 More options Jun 21 2012, 9:09 am
From: David G Ortega <g.ortega.da...@gmail.com>
Date: Thu, 21 Jun 2012 06:09:44 -0700 (PDT)
Local: Thurs, Jun 21 2012 9:09 am
Subject: Re: Caching in OpenBD
that would be great Allan,

in Railo was really easy... you define the cache type using the
administrator and then you can specify it in the "type" value of
cacheput and cacheget functions.
Really powerful idea mixing diferent cache types upon your needs...

On 21 jun, 13:30, Alan Williamson <a...@aw20.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Williamson  
View profile  
 More options Jun 21 2012, 12:59 pm
From: Alan Williamson <a...@aw20.co.uk>
Date: Thu, 21 Jun 2012 12:59:24 -0400
Local: Thurs, Jun 21 2012 12:59 pm
Subject: Re: [OpenBD] Re: Caching in OpenBD
Yup ... we have the same feel ... but documentation not as uptodate as
it could be

http://openbd.org/manual/?/function/cachecreate

On 21/06/2012 09:09, David G Ortega wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivo Verbeek  
View profile  
 More options Jun 21 2012, 2:15 pm
From: Ivo Verbeek <ivo.verb...@ritense.com>
Date: Thu, 21 Jun 2012 11:15:53 -0700 (PDT)
Local: Thurs, Jun 21 2012 2:15 pm
Subject: Re: Caching in OpenBD
This caching part was one of the few things that impressed me in the
presentation, the fact that it is manageable through admin like
mappings and datasources. For the rest I only saw features for Railo 4
that I have been using with OpenBD for the last months :-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David G Ortega  
View profile  
 More options Jun 22 2012, 3:43 am
From: David G Ortega <g.ortega.da...@gmail.com>
Date: Fri, 22 Jun 2012 00:43:38 -0700 (PDT)
Local: Fri, Jun 22 2012 3:43 am
Subject: Re: Caching in OpenBD
I switched to openbd because the java scripting possibilities...

Also just because tomcat was leaking a lot of memory... To me Jetty is
simply better...

On 21 jun, 20:15, Ivo Verbeek <ivo.verb...@ritense.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seancorfield  
View profile  
 More options Jun 22 2012, 1:42 pm
From: seancorfield <seancorfi...@gmail.com>
Date: Fri, 22 Jun 2012 10:42:24 -0700 (PDT)
Local: Fri, Jun 22 2012 1:42 pm
Subject: Re: Caching in OpenBD
On Jun 22, 12:43 am, David G Ortega <g.ortega.da...@gmail.com> wrote:

> Also just because tomcat was leaking a lot of memory... To me Jetty is
> simply better...

Could you elaborate on the Tomcat issue David?

I ask because I've been primarily using Tomcat in production for
various projects since Tomcat 3 and I don't recall running into any
memory leaks. I'd definitely be interested in hearing more details
since I rely on Tomcat very heavily. I use Jetty for a few things
(since it's embeddable) but I haven't found any compelling reasons to
switch to Jetty for general production use so I'd also be interested
in hearing why you think it is "simply better".

Thanx,
Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Williamson  
View profile  
 More options Jun 23 2012, 11:17 am
From: Alan Williamson <a...@aw20.co.uk>
Date: Sat, 23 Jun 2012 11:17:33 -0400
Local: Sat, Jun 23 2012 11:17 am
Subject: Re: [OpenBD] Re: Caching in OpenBD
Feel free to take this Jetty vs. Tomcat discussion off list.

It is as futile as Pepsi vs. Coke.

The Java/J2EE forums are filled with such debates and it comes down to
simple preference 9 times out of 10 and being lazy (as oppose to loyal
to a given J2EE server - used it before, know how to install/configure
it, memory muscle)

thanks

On 22/06/2012 13:42, seancorfield wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David G Ortega  
View profile  
 More options Jun 23 2012, 12:03 pm
From: David G Ortega <g.ortega.da...@gmail.com>
Date: Sat, 23 Jun 2012 09:03:58 -0700 (PDT)
Local: Sat, Jun 23 2012 12:03 pm
Subject: Re: Caching in OpenBD
Hi Sean...

As Allan stated a lot of words has been spent in this debate, so here
I'm only clarifiying what happened to me using tomcat and railo.

My (bad) experience was with Tomcat and Railo 3.2

Nothing too much to say, java memory harvesting the whole memory of
the machine and putting the CPU into 99% in use... no apparently
explanation. Tested in several machines. Sometimes inmediately and
some times took a while where IIS simply returned 503. Instalation
supposed to be for production by the Railo Team.

Same code with openbd works even with 256mb in production. The funny
thing is that the jetty distribution of Railo for "development"
purposes was working.

The code in reality is an API that augmentates the data using some ML
code, in fact classification, language detection, clustering,
geolocation and phashing images...

My use of coldfusion is just only to have a scripting language instead
of java for faster coding... Core functions are mainly in Java, C.
I know that I could use Groovy or other scripting language but why not
cfscript?

So thats it... the code is working perfectly with jetty (railo,
openbd) and not with Tomcat... probably was a temporaly bug in
Tomcat... Maybe the Java version... Ihave to say that recently I
updated java and openbd was broken I had to return to previous java
update...  who knows...

On 23 jun, 11:17, Alan Williamson <a...@aw20.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seancorfield  
View profile  
 More options Jun 25 2012, 2:36 pm
From: seancorfield <seancorfi...@gmail.com>
Date: Mon, 25 Jun 2012 11:36:39 -0700 (PDT)
Local: Mon, Jun 25 2012 2:36 pm
Subject: Re: Caching in OpenBD
On Jun 23, 9:03 am, David G Ortega <g.ortega.da...@gmail.com> wrote:

> Same code with openbd works even with 256mb in production. The funny
> thing is that the jetty distribution of Railo for "development"
> purposes was working.
...
> So thats it... the code is working perfectly with jetty (railo,
> openbd) and not with Tomcat... probably was a temporaly bug in
> Tomcat... Maybe the Java version... Ihave to say that recently I
> updated java and openbd was broken I had to return to previous java
> update...  who knows...

Interesting. Thanx for sharing your experience.

> On 23 jun, 11:17, Alan Williamson <a...@aw20.co.uk> wrote:
> > Feel free to take this Jetty vs. Tomcat discussion off list.

LOL... Understood. Thanx!

Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »