Re:Growler: Asyncio Micro-Framework in Python
by bullen on Thursday May 05, 2016 @07:05AM
(#11635097)
Yep, languages are like religion. But you can't hotdeploy any other language properly.
[ Parent
| on HN ]
Re:Growler: Asyncio Micro-Framework in Python
by fleetfox on Thursday May 05, 2016 @07:20AM
(#11635149)
I'm not sure what exactly categorizes as "hot deploy" but how about erlang, elixir?
Re:Growler: Asyncio Micro-Framework in Python
by bullen on Thursday May 05, 2016 @10:52AM
(#11636590)
Rupy can switch code on the fly, meaning you can have users hitting your server and they will run the old code one request and new code the next. No other system I know of works like this, hot-deploying on a remote machine over HTTP seamlessly. Maybe erlang can do it but then again I can't write a 3D game in that language so Java still has the upper hand for my requirements.
Re:Growler: Asyncio Micro-Framework in Python
by akubera on Thursday May 05, 2016 @11:38AM
(#11637047)
Off the top of my head, if you write a custom MiddlewareChain class that exposed its own management port, you could inspect and modify the state of the chain at any time, checkboxes to disable middleware, change endpoints, insert debug middleware, etc.
I like this... definitely worth thinking about. Thanks, all!
Re:Growler: Asyncio Micro-Framework in Python
by akubera on Thursday May 05, 2016 @11:57AM
(#11637196)
Also, if you're talking about specifically replacing a source files (i.e. modules), one could hack around with
https://docs.python.org/3/library/importlib.html#importlib.r.... I think it would work with enough indirection/factory functions.