Skip to main content
Participating Frequently
May 12, 2008
Question

CF Cluster - Application Scope

  • May 12, 2008
  • 3 replies
  • 540 views
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-- ?
    This topic has been closed for replies.

    3 replies

    Participating Frequently
    May 12, 2008
    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)
    fshinAuthor
    Participating Frequently
    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?
    Participating Frequently
    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)