Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF Cluster - Application Scope

New Here ,
May 12, 2008 May 12, 2008
Hi,

In setting up a cluster of ColdFusion web app servers, how do you keep the Application scope synchronized across servers if there is a change? I understand this is not the ideal (Application scope shouldn't really change). But what if it does-- ?
501
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 12, 2008 May 12, 2008
It is not possible to keep the application scope in-sync across a cluster.

To clarify, it is possible to replicate the session scope in a cluster (via J2EE session replication), but the application scope only exists in its own "sandbox" so to speak on each server.

Session scope aside, if you're looking to share data across a CF cluster you should do so with a shared resource (e.g...a shared file system or preferably, a database)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2008 May 12, 2008
Thanks for the reply Grizzly. Is there a way to "communicate" to the other servers in a cluster that a change (any change, but in this case, an application variable) has been changed?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 12, 2008 May 12, 2008
LATEST
Short answer: no

Long answer: you may be able to accomplish the same thing (or close to it) by re-engineering your application with some sort of event-listener pattern, using a shared resource to register events (e.g...a database)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources