ruby - Is a global variable defined inside a Sinatra route shared between requests? - Stack Overflow
Link: ruby - Is a global variable defined inside a Sinatra route shared between requests? - Stack Overflow: "Say I've got: get '/' do $random = Random.rand() response.body = $random end If I have thousands of requests per second coming to /, will the $random be shared and 'leak' outside the context or..."