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

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

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