Web Service SmartApp instances

The Web Service SmartApp docs mentions that the SmartApp is installed in the user’s account /location upon authorization:

http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/overview.html#how-it-works

What I want to know is that does this installation creates a new/separate instance of smart app in the cloud for this account/location ? Or all the accounts uses the same SmartApp instance through different endpoints (with settings map and state variable scoped for that instance) ?

Not quite sure what you’re asking…?

I assume the code is reentrant (shared) but it still replicates across shards and server clusters as needed.

Settings and State are definitely distinct per SmartApp Object Instance (i.e., per instance per Account Location)… Referenced by unique appID.