DEV Community

Going Cloud

Rishabh Gupta on August 06, 2018

I few weeks back I decided to try out a new workflow for my assignments and projects. This involved doing all my work on a remote server including ...
Collapse
 
jillesvangurp profile image
Jilles van Gurp

You might want to try mosh. This adds a lot of convenience to ssh and allows you to deal with networking issues. Mosh basically uses udp and can keep the session alive as you roam between networks, go on and offline. This is great if you have a laptop. Additionally, it provides a bit better latency and you edit on a local buffer that is synchronized asynchronously. So, you are never blocked on network latency with your key presses. A few years ago when I was working out of coffee shops with generally not great networking, this was a great enabler.

Another thing you could consider is that instead of getting a really big vm on the off chance that you need to do some cpu intensive stuff once in a while, you can just spin up temporary instances and gather the results. Spinning up a huge vm can be expensive but if it only runs for a few minutes the cost becomes quite reasonable. In Amzaon you would do this using spot instances and do some scripting to spin those up and down using aws cli. I'm sure digital ocean has similar stuff. Mostly when doing command line stuff in a terminal you don't actually need a lot of hardware but it is nice to be able to spin it up on demand.

Collapse
 
zeerorg profile image
Rishabh Gupta

As a matter of fact I did try mosh, but found it slow compared to ssh on a reliable network. Will try to go for another type of vm, since tmux sessions sit in RAM they don't eat up a lot of cpu, but buiding huge projects while working do take up cpu cycles in burst, this workload can benefit from a different type of VM.

Collapse
 
basitali profile image
Basit Ali Mundia

Cloud9 IDE made for the lack of GUI editors. I remember Eclipse Che providing a similar experience. Only if we could get a vscode for the cloud.

Collapse
 
zeerorg profile image
Rishabh Gupta

Eclipse che takes up a lot of performance and runs poorly on a browser. Also, vscode for cloud is something that I need too.

Collapse
 
basitali profile image
Basit Ali Mundia

True, something like codesandbox would kill it.

Collapse
 
edh_developer profile image
edh_developer

This sounds like GNU Screen, which is cool when you don't want to rely on the presence of a window manager.

Regarding GUI editors, have you looked at Eclipse Orion?

Collapse
 
zeerorg profile image
Rishabh Gupta • Edited

I tried to install eclipse che on a personal vm, but found it slow. Coupled with the fact that there was no authentication by default literally anyone with the link to my vm could login, I had to choose another workflow.

GNU screen is an old project that is not in maintenance anymore, that is the reason I went with TMUX. it also has great shortcut support.