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

300 requests per hour reading from Application scope Good/Bad idea

Explorer ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

I am saving some html in application scope & reading with <cflock readonly.
Will it be a problem if more than 5 requests are made per second?
Does deadlocks occurs with readonly-cflock?
Thanks
TOPICS
Advanced techniques

Views

193

Translate

Translate

Report

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
Contributor ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

LATEST
While creating/changing application scope variables in a lock, I think there must be an exclusive lock. You must be careful not to set any shared variable such as application inside a read only cflock tag.

I also would suggest to check the usage of Application.cfc and onApplicationStart method. You can set application default variables and constants in onApplicationStart method in your Application.cfc.

Votes

Translate

Translate

Report

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
Documentation