News for hackers. Stuff that matters.
Re:Instant dev environments for cloud-native apps by nihil75 on Thursday May 07, 2020 @11:37AM (#23104211)
Don't you tell me I'm living in "the dark ages" mister, I'm fully serverless. It's you who's grasping for a world soon to be gone.
Re:Instant dev environments for cloud-native apps by core-questions on Thursday May 07, 2020 @11:42AM (#23104280)
I just find it to be patronizing, and it made me not want to read further. We have developers using Emacs and Lisp, we have Python devs, we have people using browser IDEs all under the same roof. There are any number of capabilities in the former that are missing in the latter, not least of which is "more complete control", something none of these products offer me in a convincing way.
Re:Instant dev environments for cloud-native apps by pchico83 on Thursday May 07, 2020 @12:27PM (#23104815)
Sorry if you find it patronizing, I tried to describe the problem in a general way to make it interesting for the general reader, independently of how we solve the problem.

Okteto, in particular, does not impose any IDE. It works with online IDEs, vscode, vscode remote, IntelliJ, IntelliJ remote... it is one of our core values. What we move to the remote cluster is the development environment runtime.

Re:Instant dev environments for cloud-native apps by pchico83 on Thursday May 07, 2020 @12:25PM (#23104773)
How do you develop your functions? Using Kubernetes as a development platform also applies to serverless, we have articles with Cloud Run and OpenFaaS: https://www.openfaas.com/blog/painless-serverless-developmen...

The idea is to have replicable and production-like dev environments, no matter your deployment tool

Re:Instant dev environments for cloud-native apps by astuyvenberg on Thursday May 07, 2020 @12:31PM (#23104856)
I develop in the cloud!

Serverless Framework deploys are now less than three seconds. It's almost exactly like `run watch` now!

I deploy to a dev AWS account, then a staging AWS account, and then promote to prod out of github.

Check it out: https://github.com/serverless-components/

Re:Instant dev environments for cloud-native apps by pchico83 on Thursday May 07, 2020 @12:36PM (#23104917)
That really depends on the size of your app. You also lose the ability to run debuggers. Not to mention how hard is to run serverless java applications, which is the dominant enterprise programming language.
Re:Instant dev environments for cloud-native apps by pchico83 on Thursday May 07, 2020 @05:03PM (#23108299)
Don't take me wrong, I am a big fun of serverless. We use it in production too. But I also think it does not cover a large percentage of the deployment spectrum, at least for a few years. And serverless can also benefit from tools like Okteto
Re:Instant dev environments for cloud-native apps by astuyvenberg on Thursday May 07, 2020 @12:57PM (#23105206)
That's not entirely true anymore. Several third party services offer debugging experiences.

Are there issues running java using serverless? I've worked with a number of enterprises using lambda and java. Seems to be fine ¯\_(ツ)_/¯ YMMV

Re:Instant dev environments for cloud-native apps by ac360 on Thursday May 07, 2020 @02:24PM (#23106321)
Lambda layers, uploading caching and more make app size a non-issue.
Re:Instant dev environments for cloud-native apps by zomglings on Thursday May 07, 2020 @04:53PM (#23108167)
Docker setup that allows me to test my functions locally - I have a wrapper that simulates the handoff between AWS ALB and AWS Lambda.

When ready, I merge into master, push, and they deploy to AWS through CI - I have simple Python scripts that manage Lambda Layer creation, environment variable configuration, etc.

Don't really need much more than this.

Re:Instant dev environments for cloud-native apps by pchico83 on Thursday May 07, 2020 @05:00PM (#23108262)
Right, that works. I think that setup does not scale well for large teams or if you are not able to run all your services locally due to resource constraints