I have a GP service published on ArcGIS Server 10.2.2. This GP service is going to be used by multiple users at the same time and for intermediate data storage I use in_memory workspace.
I was not able to find on the Internet though whether the datasets I save in in_memory in one GP service session will be "visible" in another one, and thus result in lock issues when trying to overwrite an existing dataset or delete a dataset that is currently being used by another GP service session.
I am hoping for having in_memory encapsulated for each GP service run (session), but wanted to check if anyone knows for sure how it works with GP services.
I know that I can use arcpy.env.scratchGDB for the intermediate data storage in a file geodatabase (which will be unique for each GP service run), but it is way slower and since I have to write many times during the run, this will negatively affect the service performance.
The same question available here on GeoNet with no answer.