"Threadsafe" setting - (dis/)advantages and how to make app threadsafe?

60 views
Skip to first unread message

Alex Kerr

unread,
Jan 29, 2016, 5:30:58 PM1/29/16
to Google App Engine
Hi,

I'm building a PHP app on App Engine. What are the advantages and disadvantages of setting the "threadsafe" setting in app.yaml and how do I ensure my app is designed to be threadsafe?

Thanks!
Alex

Nick (Cloud Platform Support)

unread,
Feb 1, 2016, 7:19:05 PM2/1/16
to Google App Engine
Hey Alex Kerr,

The use of "threadsafe" is a question of whether you are declaring that your app can handle concurrent requests. This is described in the documentation for PHP. If you can ensure that won't cause problematic behaviour (involving sessions, perhaps), you can safely turn on "threadsafe" and see a potential performance increase.
Reply all
Reply to author
Forward
0 new messages