[Tutor] Is this possible in Python?
Alan Gauld
alan.gauld at yahoo.co.uk
Wed Feb 17 18:45:24 EST 2021
On 17/02/2021 19:05, Matthew Ngaha wrote:
> Hi guys, my networking friend wants to get into programming to create
> an app. Can someone please tell me if this type of application is
> possible in python? and what libraries/frameworks are needed.
The standard library starts with the socket library which lets you do
pretty much anything you want at IP level. (You could go lower still
with the serial io libraries etc but sockets is usually where networking
starts)
On top of that are built lots of support libraries for most of the
common network tasks including ssh, email, web, ftp, xrpc and more
There are third party networking frameworks like twisted that
sit above all that and can create servers as well.
> 1) client makes DNS request to resolve apps url to an IP address.
> 2) client's DNS-proxy forwards the request to one of the 3 global load
> balancers fronting the application.
> 3) Responding load balancer uses geolocation info to direct user to an
> external server in the regional cloud closest to them.
> 4) Subsequent DNS requests from the same client's DNS-proxy is
> directed to the same server in the cloud.
> 5) client/user creates a TCP connection to the login server in the cloud.
> 6) The SSL session is terminated and re-encrypted and forwarded to
> another server.
> 7) If an existing user, a login prompt will be provided for the user
> to to input a username and password.
> 8) If a new user, they would have to enter registration details.
Its not clear where you expect Python to fit into that scenario.
Python could be programmed to do any of it or all of it. (A lot
of work but possible)
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list