Skip to content

The Sleeping Beauty - Serverless for General Virtual Infrastructures

Latest
Compare
Choose a tag to compare
@dealfonso dealfonso released this 04 Mar 12:33
· 2 commits to master since this release

The sleeping beauty is a system that helps to implement serverless infrastructures: you have the servers aslept (or not even created), and they are awaken (or created) as they are needed. Later, they go back to sleep (or they are disposed).

The original problem was to have a VM that was powered off, and start it whenever an incoming ssh connection was received, and then forward the network traffic to that VM to serve the ssh request. In this way, I could have a server in a cloud provider (e.g. Amazon), and not to spend money if I was not using it.

The Sleeping Beauty is a system that listens for incoming TCP connections, spawns servers to serve them, and redirects the network traffic to the selected server. The effect for the client is that the server was always available (although it was actually not available, and the sleeping beauty has awaken it upon the connection).