4 ms·
Our python code does not handle user requests directly. Our team uses python to control the control plane of traffic — we flip dns records, control cross-region
by aaronblohowiak 8y ago
Our python code does not handle user requests directly. Our team uses python to control the control plane of traffic — we flip dns records, control cross-region proxying, re-steer cdn-based reverse proxying and scaling of the hundreds of micro services that power the Netflix experience. We’ve improvised various custom traffic distribution patterns, operated outside of our normal traffic-shifting workflows, and written/run quick scripts to modify scaling fleetwide.
- sandGorgon 8y agohi - so im actually curious about the infrastructure that allows you to connect bpython to it. Is it a rq process that you connect to, etc ? I would love to setup an architecture like this that lets me connect to stuff through a CLI. Also, I'm assuming you are on kubernetes (or something). How does this bpython business work through all those layers ?
- aaronblohowiak 8y agoWe ssh into a box in production, run bpython and import the libraries ( some environmental stuff, boto3, our own code, etc). At that point, there isn’t much difference from a bpython session and the regular application code... Ssh’ing into a production box does involve connecting through a bastion, and knowing which box you want to connect to, but that isn’t too hard with spinnaker.
- sandGorgon 8y agopretty cool. We have struggled with doing this in Flask, because the whole codebase starts getting peppered with flask_context everywhere. So importing some libraries and code starts spawning flask. Not sure if you use different frameworks that dont have this issue.