Senior Software Engineer working since 2008 with Ruby / Ruby on Rails. I also poke through other people's code and makeprojects that sometimes make it. Currently looking for new opportunities.
I'm just wondering how awful this is if I use this solution production.
I have a case where I need to update a config that is called in middleware. e.g. creating a hostname redirect for a multi-tenant application based on a YAML config. It would be wasteful to restart the whole application, but inefficient to read a file in on every request.
I'm just wondering how awful this is if I use this solution production.
I have a case where I need to update a config that is called in middleware. e.g. creating a hostname redirect for a multi-tenant application based on a YAML config. It would be wasteful to restart the whole application, but inefficient to read a file in on every request.
Good question. This article is particurlarly meant for development, I'd be hesitant to use this approach in production.