In Sinatra(Ruby), how should I create global variables which are assigned values only once in the application lifetime? - Stack Overflow
Sinatra state management tips
2 posts
Sinatra state management tips
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...